Architecture / Decision records / ADR-HIS-109
ADR-HIS-109 The encounter console and the bed board: one bed finder on the board reached by a handoff, summaries in place under the patient, a wall display without occupants, and what the screens leave to the contracts¶
| Status | Accepted |
| Decided | 2026-11-30 by session RC-3-S18 |
| Record | Drafted 2026-11-30; approved 2026-11-30 by the Enterprise Architecture Board |
| Where the rule lives | web/domains/adm/UI-ADM-003/ (handoff.tsx, confirm.tsx, Transactions.tsx, model.ts, api/registry.ts) and web/domains/adm/UI-ADM-004/ (handoff.tsx, Finder.tsx, WallDisplay.tsx, board.tsx) |
Context¶
RC-3-S18 builds two screens of Domain 1: - UI-ADM-003, the encounter and ADT console; - UI-ADM-004, the bed board and bed management.
They work against the RC-3 contracts of ADR-HIS-083 (encounters.v1 1.2, adt.v1, beds.v1) and the D10 registry and terminology services.
The screens share one function, the eligible bed finder. OV-21 puts it on the bed board alone: admission confirmation, return from leave and transfer open it, and none has a bed search of its own. A screen folder imports nothing from another one (session rule 10), and an encounter identifier may not reach a URL (ADR-HIS-078 point 2).
Four parts of the brief need care: - The brief shows the confirmation summaries "with the patient context zone visible" (CUX-11). The shared confirmation dialog of UI-ADM-011 is a modal that covers the zone. - Several things the brief shows are served by no contract yet: - the Domain 3 medication reconciliation check (CFG-CLI-013); - a way to tell the death member of the discharge disposition list; - registration completeness; - the encounter class and type lists for a correction; - a care-team entity in the D10 registry; - an occupant privacy setting for the bed board's wall display.
Decision¶
- Shared files as identical copies.
api/adt.ts,api/beds.ts,handoff.tsx,fields.tsxandconfirm.tsxare identical in UI-ADM-003 and UI-ADM-004.- The copies of ADR-HIS-078 point 4 (
failure.tsx,intents.ts,ui.tsx,time.ts,fake-gateway.ts,patients.tsx,api/persons.ts,api/terminology.ts,check-against-stubs.sh) are identical to UI-ADM-008's. api/http.tsis UI-ADM-011's, with theaccountIdandstepUphooks (ADR-HIS-079 point 4).- The governed lists each screen reads are named in its own
model.ts, soapi/terminology.tsstays identical. - All of them move to the SDK or the design system together.
- The finder belongs to the bed board; the console reaches it by a handoff.
- The console hands
{ finder: { purpose, encounterId, admissionRequestId?, patient, draft } }to UI-ADM-004 and follows a React Aria link through the shell's router. It uses the window-memory store of ADR-HIS-078 point 2, under the same key. - The purpose is one of confirm-admission, admit-from-emergency, return or reverse-discharge.
- With an admission request, the board reserves the bed (
reserveBed, overrides included). Without one, it offers "Use this bed" for an eligible bed only, because an override is recorded on a reservation and a reservation needs a request. - The board then hands
{ encounterId, chosen: { purpose, bed, responsibleUnit?, reservationId? }, draft }back.draftis the console's form entries, returned untouched, so they survive the round trip. - Without a request, the finder asks the user for the isolation need instead of assuming "none" (FR-ADM-BED-002 part 6.1).
- The board's "Open encounter console" hands over the encounter alone.
- The wall display is
/adm/ui-adm-004/display?unit=<unit>(as ADR-HIS-079 point 2 for the flow boards). - It is read-only, in large type, with no action and no patient-detail or history call.
- It shows each bed's state and the isolation precaution (PH-04).
beds.v1serves no privacy setting and no initials, only anoccupantDisplay"as the role may see it". So the display shows no occupant at all, which is stricter than "initials and bed". The follow-up is a compatible field.- A refusal reads "This display is not configured for this unit."
- Registry references.
- The responsible unit and the care team are chosen among the facility's organizations (
master-data.v1 listOrganizations), because the registry has no care-team type and theadt.v1examples reference the team as an Organization. - The destination of a discharge is chosen among the external organizations, and practitioners among the active ones.
- The requesting clinician defaults to the practitioner whose
accountis the signed-in user (accountId). - The unit decides whether each is active ("Select an active practitioner.").
- Summaries in place, then the sign step.
- The confirmation summary is a region in the transaction area, below the patient context zone, not a modal (
confirm.tsx). "Cancel" has the first focus, Enter does not confirm, and the button repeats the action (CUX-10 to 12). - Discharge, end of visit and "Admit from emergency" confirm with the summary alone.
- Cancellation, cancellation of an admission, reversal of a discharge and correction then ask for the sign step of PH-03. The stepped-up credential goes with that one request.
- Without a step-up host the confirming button is disabled, with its reason. Three failed attempts cancel the step and nothing changes.
- The transition by class.
- An inpatient encounter (
IMP) is discharged withadt.v1 recordDischarge("Discharge patient"). - Any other is ended with
encounters.v1 transitionEncounter end-visit("End visit", brief [A]). - A reversal reverses the latest transition in the history (
dischargeorend-visit). - An emergency encounter (
EMER) offers "Admit from emergency" instead of "Confirm admission", once it has an admission request. - What the screens do not invent.
- Medication reconciliation check (review round 1): FR-ADM-ADT-003 part 6.2 and CFG-CLI-013 (default: discharge reconciliation due before the discharge is confirmed; the check is shown on the Domain 1 discharge confirmation, which warns and asks for an override reason) make the check part of confirming an inpatient discharge. No Domain 3 contract serves it yet, so the console does not confirm an inpatient discharge: "Discharge patient" is disabled with its reason, and nothing is sent. This is the reading of the specification's default, not a relaxation of it. The end of an outpatient or emergency visit is not affected. When Domain 3 serves the check, the confirmation shows it and sends
medicationReconciliationOverridewhen it warns. Any interim relaxation is for the owner of D01-ADM and the clinical safety officer, asked on the session's issue. - Death disposition: the screen does not tell which member of the governed list is a death, so it shows no death statement of its own (PR-ADT-003-3 is carried out by the unit). The brief's statement waits for the owner's ruling on how the member is identified.
- Other fields:
- registration completeness is not shown;
- a correction offers start time, service and attending practitioner only;
- the bed tile shows no pending discharge, which
beds.v1does not carry; - "Open transfer panel" is disabled with its reason until UI-ADM-009 exists.
- Each is a follow-up.
- The board's freshness.
- The board reads
listBedsand the census every 5 seconds and reports its watermark to the status line. - It shows "Not updated for [n] minutes" in amber when the unit flags the board stale, or when the copy is older than the CFG-ADM-021 threshold of 5 minutes (BR-ADM-024, CUX-53).
Rationale¶
- One finder keeps every eligibility rule, conflict message and override in one place (OV-21). The window-memory handoff is the one way between two screen folders that keeps the encounter out of the URL.
- Returning the console's entries with the bed means the user does not retype them. A form that loses its entries invites skipped fields.
- A summary that covers the patient defeats the point of CUX-11, which is to confirm the change on the right patient.
- Showing less on a wall display is the safe reading of UX-ADM-008 while the contract gives the screen no privacy setting.
- Rule 3 leaves clinical behaviour to the specification. Where a contract does not serve what the brief shows, the screen says so rather than guessing a code, a member or a result.
Consequences¶
- The two screens and UI-ADM-009 (transfer, RC-3-S19) should use the same handoff to reach the finder. The
Handoffstype ofhandoff.tsxgrows when UI-ADM-009 needs it. - Inpatient discharges are not confirmed in the console until Domain 3 serves the medication reconciliation check: a dependency of this screen on a Domain 3 contract (session rule 4), recorded in the handover.
- Contract follow-ups for Domain 1 and Domain 3:
- a medication reconciliation check readable by Domain 1;
- an occupant privacy field on
beds.v1; - pending discharge on the bed;
- a care-team type in
master-data.v1; - the encounter class and type lists in the terminology service.
- When the SDK offers a service client, a step-up and navigation with a payload, the copies and the handoff move there together.