One "under a form" rule on Home, the ED desk and the TV
Merged
BI
3d ago+86+86+01234567890123456789-34-34-01234567890123456789
Requested by Josh · project thread
Why
Home's ED strip said Armadale had 15 on forms; the ED desk said 13. Home counted a recorded form or a detained/involuntary legal status; the ED desk counted a recorded form only. The gap is the two synthetic "Involuntary inpatient" rows with no form entered (WF-RD05, WF-RD12).
What
- New
isUnderAFormined-home-derivations.ts: a recorded form, or status "Detained awaiting examination" / "Involuntary inpatient". Voluntary and referred-only people still need a recorded form (keeps P3-2). - Used by Home's ED strip, the ED desk index, the ED board chip, filter and Forms list, and the bed-meeting TV.
- Forms list shows "Form not recorded" for a person held under the Act with no form entered.
- Clinical rule signed off by Josh (option A, 9 Nov 2026).
Checks
- New
tests/ward-under-a-form-one-rule.test.ts(every scenario; standard Armadale reads 15). - 24 related test files, 234 tests pass locally; full
tscand eslint pass; journey check passes. Hosted CI not yet observed.
Generated by Claude Code