Signal/python-backend/core
Kisa a53728e424 feat: device-keyed staff overrides + recompute contract (plan 02, P4)
Ends the override leak: an SWO/PA save now applies to one device's line, not
every device the patient has. doc_status gains device_type ('' = legacy
patient-scoped row, applies until re-saved); the old unique key is dropped by
introspected name and replaced with the 4-col scope key. Staff overrides now
FEED THE VERDICT (device-scoped, staff wins over the CSV cell) instead of
display-only; visit overrides keep their patient-scoped fan-out via
confirmed_visits. PUT /api/doc-status and /api/confirm-visit accept an
optional echo of the patient's lines and return {lines, rollup_status}
recomputed through the same engine (stateless, no batch rebuild). Frontend
minimal fix: doc-status state and writes keyed patient:device. Independent
audit: SHIP (migration reproduced empirically on both old-key shapes; guard
scoped per its nit). 162 tests green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-07 05:36:26 -04:00
..
__init__.py feat: FastAPI backend + full deployment stack (Railway + Vercel) 2026-05-18 19:01:35 -04:00
audit_logger.py fix(audit): add Supabase client support to audit logger, format cleanup, update cascade test 2026-06-21 16:16:34 -04:00
coverage_calculator.py feat: citation rule IDs on every documentation requirement (plan 02, P2) 2026-07-07 05:10:52 -04:00
dedup.py Add readiness-model dedup + coverage-line grouping foundation 2026-06-27 00:22:01 -04:00
doc_state_machine.py add pitch assets, fix UI and backend bugs, add test utilities 2026-06-19 12:52:29 -04:00
overrides.py feat: device-keyed staff overrides + recompute contract (plan 02, P4) 2026-07-07 05:36:26 -04:00
persistence.py feat: device-keyed staff overrides + recompute contract (plan 02, P4) 2026-07-07 05:36:26 -04:00
readiness.py feat: citation rule IDs on every documentation requirement (plan 02, P2) 2026-07-07 05:10:52 -04:00
rollup.py feat: patient rollup + nested patients payload (plan 02, P3) 2026-07-07 05:20:45 -04:00
rules.py feat: citation rule IDs on every documentation requirement (plan 02, P2) 2026-07-07 05:10:52 -04:00
supabase_client.py add phase 2 supabase persistence layer 2026-05-29 06:50:34 -04:00
worklist_readiness.py feat: device-keyed staff overrides + recompute contract (plan 02, P4) 2026-07-07 05:36:26 -04:00