Skip to content

Architecture / Decision records / ADR-HIS-112

ADR-HIS-112 The transfer panel and the ADT worklists: the panel reached by a handoff or its own list, a transfer bed search in the panel until the board's finder takes transfers, offers the unit decides, a replay from the event's retained position, and what the screens leave to the contracts

Status Accepted
Decided 2026-12-01 by session RC-3-S19
Record Drafted 2026-12-01; approved 2026-12-02 by the Enterprise Architecture Board
Where the rule lives web/domains/adm/UI-ADM-009/ (handoff.tsx, TransferPanel.tsx, Actions.tsx, model.ts) and web/domains/adm/UI-ADM-010/ (Worklists.tsx, ItemDetail.tsx, model.ts, api/reconciliation.ts, api/http.ts)

Context

RC-3-S19 builds the last two Domain 1 screens of slice RC-3: - UI-ADM-009, the transfer and handover panel, from its entry in D01-ADM section 6.3; - UI-ADM-010, the ADT reconciliation and operational worklists.

They work against transfers.v1, beds.v1, adt.v1, encounters.v1 and registration.v1 of ADR-HIS-083, the D10 registry and terminology services, and the D02 event-operations.v1 of slice RC-1.

The card allows changes only in the two screen folders. The encounter console and the bed board of ADR-HIS-109 keep "Open transfer panel" disabled until they change, and the bed board's finder knows four purposes, none of them a transfer.

Points the specification or the contracts leave to the screens: - the panel's entry points (ward home, bed board, encounter console) send no encounter yet; - "accept and confirm are shown only to the receiving unit", while the shell does not say which unit the user belongs to; - requestReplay of event-operations.v1 replays dead letters by exception or a subscription from a retained position, while a reconciliation item names an event, not an exception; - the brief's work list row (OV-01) has an assignee and Claim, Assign and Defer, while a reconciliation item carries no task.

Decision

  1. Shared files as identical copies, with three named differences.
  2. UI-ADM-009 and UI-ADM-010 copy the files of ADR-HIS-109 point 1 unchanged, except:
    • handoff.tsx, identical in both, adds the entry "UI-ADM-009": { encounterId } and the link targets UI-ADM-002, 005, 009 and 010. The console and the board take this copy when they enable "Open transfer panel";
    • UI-ADM-010's api/http.ts adds the domain ise, and its check-against-stubs.sh also serves the ISE stub.
  3. All of them move to the SDK or the design system together, as before.
  4. How the panel opens. No encounter reaches a URL (ADR-HIS-078 point 2). The panel opens:
  5. on an encounter handed to UI-ADM-009;
  6. on the open transfers of the facility (listTransfers, Requested and Accepted), the receiving unit's way in from the ward home;
  7. by a search by No. RM or NIK. A patient with one Admitted or On leave encounter opens on it, otherwise the user chooses.
  8. The panel offers, the unit decides who. What the transfer state permits is offered (model.ts permittedActions). Accept, reject, change of receiver, arrival and the urgent path are for the receiving unit, a correction for a registration supervisor. The policy decision point decides (x-his-cross-facility: policy), and a refusal reads "Only the receiving unit can do this." (ADR-HIS-078 point 1).
  9. The destination bed is searched in the panel until the board's finder takes transfers.
  10. The panel asks the isolation need (no default) and searches the destination unit with the transfer (searchEligibleBeds with transferId). It reserves with reserveBed and transferId, replacing an earlier reservation.
  11. Beds failing only a soft constraint are listed apart with what they fail, and not offered. An override stays with the bed manager on the bed board.
  12. On the urgent path an eligible bed is chosen without a reservation, and recorded with the confirmation (FR-ADM-TRF-001 part 6.2).
  13. This is a second bed search beside the board's. OV-21 wants one, so the follow-up gives the board's finder the purpose transfer and the panel a handoff to it.
  14. A replay from the event's retained position.
  15. "Request replay" on an item of a subscription consumer calls event-operations.v1 requestReplay:
    • source retained-position;
    • target the item's subscription and owning domain;
    • fromTime and toTime both the event's publication time (readEventDelivery);
    • the reason in words.
  16. The original event is re-sent with its identifier, so the consumer applies it once, and no business transaction is created (PR-ADT-002-3). The item is then resolved replay-requested with the replayId.
  17. The two calls are separate intents. A replay already requested is not requested again when only the resolution has to be repeated.
  18. A replay-sensitive target waits in Domain 2 for its second authorization. The screen says so.
  19. Not offered, each with its reason:
    • an interface consumer, whose messages are replayed by exception on UI-ISE-001;
    • a sequence gap, whose missing events the item does not locate.
  20. Seven worklists. These are the five of the brief and the two that contracts/adm README points at this screen: future appointments after death (PR-ADT-003-3) and encounters awaiting attribution after an unmerge (FR-ADM-MPI-005 part 6.9.2).
  21. An ADT row opens its item detail.
  22. Aged open, overdue return and cancelled-with-activity rows hand the encounter to UI-ADM-003.
  23. Incomplete registrations open UI-ADM-001, appointments UI-ADM-005 and unmerge attribution UI-ADM-002, each without a patient: those screens take no handoff yet.
  24. Critical consumers (clinical) are listed before secondary ones, oldest first within each (PR-ADT-002-2).
  25. What the worklists do not invent.
  26. Claim, Assign, Defer: disabled with the reason. The item has no task or assignee, and the row has no assignee column.
  27. "Downtime" source tag: shown on no row. No item carries its origin.
  28. Compensating events and the causation identifier: not shown. EventDelivery carries neither.
  29. Unit and bed held of an overdue return; reason and actor of a cancellation: not shown. WorklistItem carries none of them.
  30. Each is a contract follow-up.
  31. Completeness and freshness.
  32. Completeness (REP-ADM-010): for each consumer with an open item:
    • a subscription shows today's published and acknowledged counts of Domain 1 event types (UTC day, readSubscriptionCounts);
    • an interface shows "No count for interfaces";
    • the open rejected and unmatched items are counted from the list.
  33. Freshness: every list is read again each minute, and the status line carries the oldest watermark.
    • The ADT tab is stale after 5 minutes, or at once when the status feed cannot be read. The last list is kept.
    • The indicator then says "not current".
  34. The transfer actions as the contract has them.
  35. No acknowledge or decline action: both are made in Domain 3.
  36. "Accept responsibility" is changeResponsibility, with the attending practitioner defaulting to the practitioner the registry links to the signed-in account.
  37. Reject and cancel reasons are words. The contract names no governed list for them.
  38. A correction confirms with the summary and the sign step (PH-03), as the console's corrections do (ADR-HIS-109 point 5).
  39. A request between facilities is not offered: the screen has no list of the enterprise's facilities.

Rationale

  • A screen session may not change another screen's folder. The handoff entry and the transfer bed search are what the panel needs without it. Each names the change that brings it back to one way of working (OV-21, ADR-HIS-109).
  • The shell does not say which unit a user belongs to. A screen that hid actions by guessing would be wrong both ways, so the policy decision point, which knows, decides (rule 3: access behaviour is not the screen's).
  • Replaying from the event's retained position re-sends exactly the original event, so the consumer applies it once and no new transaction is created (PR-ADT-002-3). Interface messages have their own exceptions and replay on the D02 console.
  • Showing what a contract does not carry as empty would read as "nothing there". The screens leave it out and the handover names it.

Consequences

  • UI-ADM-003 and UI-ADM-004 enable "Open transfer panel" by taking this handoff.tsx and handing { encounterId } to UI-ADM-009 (follow-up of a later screen session on those folders).
  • The bed board's finder should take the purpose transfer (reserve with transferId, overrides included), and the panel then hands off to it instead of searching itself.
  • Contract follow-ups:
  • Domain 1: the origin and the assignee or task of a reconciliation item, the causation identifier and compensating events of an event delivery, and the unit, bed hold, cancellation reason and actor on worklist items;
  • Domain 1 and Domain 3: the decline of a handover (Q2 of RC-3-S02);
  • Domain 2: counts for interface consumers.