Implementation plan / Session plan / Handover RC-3-S07
Handover RC-3-S07 Build: Patient administration (part 2 of 3)¶
Card: RC-3-S07. Issue: cema-care/his#63. Branch: session/RC-3-S07. Slice: RC-3. Decision record: ADR-HIS-102.
Comes after RC-3-S06, whose bed occupancy ledger, admission requests and worklists this extends. It also builds on RC-1-S09 and RC-2-S04 (the encounter and its history). The contracts served are RC-3-S02's (handover): beds.v1 1.0, validateEncounterContext of encounters.v1 1.2, and contract points 1 to 8 of RC-3-S07 in contracts/adm/README.md. RC-3-S03's handover holds the scenario RC-3-E2E-001, which uses them.
What was built and where¶
All of it is in services/adm-patient-administration, plus ADR-HIS-102, its index row and this handover. The unit's README.md lists every module, setting and stand-in. No contract was changed.
| Module | What was added |
|---|---|
mod-adm-006 (FR-ADM-BED-001, FR-ADM-BED-002) |
beds.v1, all 12 operations (Beds, web/BedController; 409 through web/BedConflictAdvice).BedLedger, reworked on RC-3-S06's ledger:
V2__bed_management.sql.Test fixtures: FakeD10 and TestClock, and FakeBedRegistry with rooms and listLocations |
mod-adm-004 (FR-ADM-ENC-003) |
validateEncounterContext (EncounterValidation), on POST /v1/encounter-validations.ValidationPolicy, the CFG-ADM-023 stand-in: the DEC-ADM-007 matrix, the windows and the emergency exceptions.MergeLinks, from PatientMerged and PatientUnmerged (subscription person-merges on his.adm.person.v1), with the encounters that await attribution.api.EncounterRecords.withLinkedActivity, for the worklist.Migration V4__merge_links.sql |
mod-adm-005 |
AdmissionRequests implements ReservationPurposes. Worklists fills cancelled-with-activity (part 6.7).Module tests: BedStateTest, BedReservationTest and EncounterValidationTest (ADR-HIS-102 point 10); the bed helpers are added to AdtTestSupport |
app |
The provider contract test covers the 13 new operations beside the 37 of RC-3-S06 (50 in all). The consumer contract test adds listLocations, notification.v1 requestNotification and workflow.v1 createTask |
Events.
- Published: BedStateChanged for every state change, isolation designation or end, room hold and registry flag; BedReserved. Both are on his.adm.bed.v1, ordered per bed. The precaution type is never in the event (part 13).
- Consumed: PatientMerged and PatientUnmerged (his.adm.person.v1) and MasterDataChanged (his.ess.masterdata.v1, locations).
Dependencies: none added. mod-adm-006 now depends on mod-adm-002 and mod-adm-004 (project dependencies through their api packages, ModuleBoundaryTest). Its lockfile is unchanged.
Policy: the actions of ADR-HIS-102 point 7 on adm.Bed and adm.BedReservation, validate on adm.Encounter, and the redact obligation (fields isolation, encounterId) on bed reads, for D10 to register (follow-ups).
Checks and their result¶
The integration environment ran as HIS_SESSION=RC-3-S07 (his-rc-3-s07), light profile.
| Check | Command | Result |
|---|---|---|
| Build and all tests | ./gradlew build --rerun-tasks in services/adm-patient-administration |
passed, 195 tests:
|
| Provider contract test | ProviderContractTest (tag contract): his-contract verify contracts/adm --operation <each of the 50> against the unit, with a token permitted for RSU-01 and RSU-02 and denied otherwise. The beds.v1 commands run with the clock at the examples' time (2026-11-26T02:20Z), since their expiry and expected end are dated. Then his-contract validate-event contracts/adm on everything published |
passed, 210 of 210 cases, the facility cases included. validate-event passed, BedStateChanged and BedReserved among the events |
| Consumer contract test | ConsumerContractTest: each client against his-contract serve of contracts/adm, ess and fin |
no violation recorded, listLocations, requestNotification and createTask included. It caught a relative URI in the first listLocations client, now fixed |
| Static analysis | platform/delivery-pipeline/bin/static-analysis services/adm-patient-administration |
no blocking finding; no clinical artifact |
| Secret scan | platform/delivery-pipeline/bin/secret-scan code origin/main HEAD; secret-scan docs origin/main HEAD |
no secret, in the files or in the commits |
| Dependency scan | platform/delivery-pipeline/bin/dependency-scan services/adm-patient-administration |
0 blocking (8 medium, as before); no dependency added by this card |
| Documentation | python3 docs/implementation_plan/tools/check_links.py; mkdocs build |
0 broken links, 0 duplicate anchors; the site builds |
Requirements and test scenarios¶
Tests carry the requirement and scenario tags (session rule 5). The classes are in mod-adm-005/src/test/java/care/cema/his/adm/mod005/ (BedStateTest, BedReservationTest, EncounterValidationTest) and app/src/test/java/care/cema/his/adm/app/contract/.
| Requirement, criterion | Test | Scenario |
|---|---|---|
| FR-ADM-BED-001 AC-01, AC-02, PR-BED-001-2, BR-ADM-023 (discharge sets Cleaning with a task carrying no patient; not offered; cleaning steps; Available with the duration; BedStateChanged; board current) | BedStateTest.dischargeAndTurnover |
TEST-ADM-018 |
| FR-ADM-BED-001 AC-03, parts 6.1 and 12 (effective and recorded time, actor and responsible unit on every entry; the ADT transaction named; effectiveTo; append-only) | BedStateTest.history |
TEST-ADM-018 |
| FR-ADM-BED-001 AC-04, part 6.7, PR-BED-001-1 (in each state, every change outside 4.3 refused with nothing changed; the modelled ones taken; cleaning while blocked) | BedStateTest.onlyModelledTransitions |
TEST-ADM-018 |
| FR-ADM-BED-001 parts 7 and 10 (reason "Enter the reason."; effective time; expected end; stale If-Match 412; one result per key) | BedStateTest.inputs |
TEST-ADM-018 |
| FR-ADM-BED-001 AC-05, PR-BED-001-4, part 6.5 (isolation on an occupied bed of a shared room; "Blocked · isolation"; "Isolation exposure · review" and its task; the census adds up with isolation counted apart; the thin event) | BedStateTest.isolationInSharedRoom |
TEST-ADM-018 |
| FR-ADM-BED-001 AC-06, PR-BED-001-5 ("Cleaning · terminal clean", not Available until done; room-mates released after it) | BedStateTest.terminalCleanReleasesRoomMates |
TEST-ADM-018 |
| Section 4.3, isolation ended (terminal clean owed at the next turnover; an empty bed "Blocked · terminal clean" until cleaned; reason, precaution and source order mandatory) | BedStateTest.isolationEnded |
TEST-ADM-018 |
| FR-ADM-BED-001 PR-BED-001-3 (removed while Occupied: kept and flagged; a free one leaves the board; flagged beds never offered; registry down: stale, not empty) | BedStateTest.registryChanges |
TEST-ADM-018 |
| FR-ADM-BED-001 part 13, architecture 7.5 (another facility not found, 403, a denied change audited, outage 503, the redact obligation) | BedStateTest.facilityPolicyAndRedaction |
TEST-ADM-018 |
| FR-ADM-BED-001 part 6.5, AC-05 (census per unit of every state, adding up; rooms available; no patient) | BedStateTest.census |
TEST-ADM-018 |
| FR-ADM-BED-002 AC-01, BR-ADM-013 (blocked, out of service, occupied (409), cleaning refused; nothing changed) | BedReservationTest.unavailableBedsRefused |
TEST-ADM-019 |
| FR-ADM-BED-002 AC-02, PR-BED-002-1, BR-ADM-014 (two at once: one 201, one 409, three rounds; "Bed was just reserved by another user. List refreshed.") | BedReservationTest.concurrentReservations |
TEST-ADM-019 |
| FR-ADM-BED-002 parts 6.3 to 6.5, PR-BED-002-4 (Reserved, request Bed allocated, BedReserved; one result per key; the CFG-ADM-013 default; a request must exist; the admission consumes it) | BedReservationTest.reservationAndAdmission |
TEST-ADM-019 |
| FR-ADM-BED-002 AC-03, PR-BED-002-2 (an isolation need: only an isolation-capable room not shared; hard; the reservation checks again) | BedReservationTest.isolationRequirement |
TEST-ADM-019 |
| FR-ADM-BED-002 AC-05, PR-BED-002-5 (a shared room with isolation: not offered; cohort only for the same precaution type) | BedReservationTest.sharedRoomWithIsolation |
TEST-ADM-019 |
| FR-ADM-BED-002 AC-03, AC-05, PR-BED-002-2, from the room-mate's side (beside a reserved or occupied patient whose admission request needs isolation, before any designation: no bed for a patient without that need or with another precaution type; cohort placement for the same one) | BedReservationTest.roomMateNeedingIsolation |
TEST-ADM-019 |
| FR-ADM-BED-002 AC-04, part 6.4 (expiry: Available, request Accepted, the bed manager notified once, also after a D10 outage) | BedReservationTest.expiry |
TEST-ADM-019 |
| FR-ADM-BED-002 PR-BED-002-3 (a reserved bed blocked or taken out of service: invalidated, request back to awaiting bed, notified) | BedReservationTest.invalidation |
TEST-ADM-019 |
| FR-ADM-BED-002 part 6.2, parts 10 and 13 (soft constraints listed apart; override with a reason by the distinct privilege, 403 otherwise, recorded and audited; hard rules never overridden; no other patient disclosed) | BedReservationTest.softConstraintsAndOverride |
TEST-ADM-019 |
| FR-ADM-BED-002 AC-02, AC-03, BR-ADM-013, D01-ADM 11.1 (two reservations at the same moment for different beds of one shared room: exactly one is made, by isolation need and by sex, three rounds each; the test fails without the room lock) | BedReservationTest.concurrentReservationsInOneRoom |
TEST-ADM-019 |
| FR-ADM-BED-002 part 6.5, BR-ADM-013, D01-ADM 11.1 (an admission straight into an Available bed applies the hard rules: refused into a cohort bed of another or no precaution, beside a patient of the other sex, for an isolation need into a room that is not isolation capable, and beside a patient needing isolation; nothing changed; allowed where the rules are met; the test fails without the rules) | BedReservationTest.directAdmissionAppliesHardRules |
TEST-ADM-019 |
| CFG-ADM-014, the sex of a shared room (hard; the person index unreachable is 503 on reservation) | BedReservationTest.sexOfSharedRoom |
TEST-ADM-019 |
| Section 4.3, release and replace (Reserved to Available, request Accepted; reason; If-Match; replacesReservationId; another facility not found) | BedReservationTest.releaseAndReplace |
TEST-ADM-019 |
| FR-ADM-ENC-003 AC-01, AC-02, PR-ENC-003-2 (Cancelled not valid for a routine order or a charge, audited adm.context.deny; Pre-admitted unconfirmed; scheduling and future-dated orders valid) | EncounterValidationTest.cancelledAndUnconfirmed |
TEST-ADM-014 |
| FR-ADM-ENC-003 AC-03, PR-ENC-003-3 (valid under emergency exception with its identifier, audited; never on Cancelled; an exception not on the list refused) | EncounterValidationTest.emergencyException |
TEST-ADM-014 |
| FR-ADM-ENC-003 AC-04, PR-ENC-003-1, PR-ENC-003-4 (mismatch without context; merge links from the index and from the person events; unknown CIN; another facility; index down 503, never valid) | EncounterValidationTest.mismatchAndMerges |
TEST-ADM-014 |
| FR-ADM-ENC-003 AC-05, part 6.6 (Admitted: valid, with the location and responsible unit of the ward board; the state at the activity time from the history) | EncounterValidationTest.admittedContext |
TEST-ADM-014 |
| FR-ADM-ENC-003 part 6.4, DEC-ADM-007, CFG-ADM-023 (on leave; discharged with its windows and no new orders; closed addenda only; results always accepted, Closed and on leave included; no exception reopens a Closed encounter) | EncounterValidationTest.matrixAfterAdmission |
TEST-ADM-014 |
| FR-ADM-ENC-003 part 6.2, FR-ADM-MPI-005 part 6.9.2 (attributionPending after an unmerge; the link no longer holds) | EncounterValidationTest.attributionPending |
TEST-ADM-014 |
| FR-ADM-ENC-003 parts 7, 12 and 13 (fields checked; deny 403 audited; outage 503; a service identity of an owning domain) | EncounterValidationTest.requestAndPolicy |
TEST-ADM-014 |
| FR-ADM-ENC-003 part 6.7 (cancelled with linked activity on the worklist with the owning domains) | EncounterValidationTest.cancelledWithActivityWorklist |
TEST-ADM-014 |
| Every operation of beds.v1 and validateEncounterContext; every new client against its provider's stub | contract/ProviderContractTest, contract/ConsumerContractTest.bedClients |
TEST-ADM-014, 018, 019 |
Safety-critical function "Bed allocation" (D01-ADM 11.1): hard state rules, atomic reservation, isolation constraint. The control is built as specified: - the hard rules (state, isolation, sex of a shared room) that no one overrides; - the reservation under the row locks of every bed of its room, taken in one order, so that the rules of a shared room hold against a reservation of a room-mate at the same moment, with the unique active reservation per bed and per encounter as a second guard; - the isolation constraint, checked at the search, again at the reservation, and at an admission straight into an Available bed, which takes the same room lock.
Its verification, TEST-ADM-019 (BedReservationTest), passes.
Safety-critical function "Encounter creation and validation": CIN uniqueness, patient and encounter match, no default "valid". The validation service never answers "valid" for what it cannot check: an unreachable person index or decision point is 503. Its verification passes:
- TEST-ADM-014 (EncounterValidationTest);
- TEST-ADM-012 for CIN uniqueness, EncounterCreationTest of RC-1-S09, unchanged and passing.
Both controls are implemented as the specification states and not altered, so there is no hazard log entry to update. The card names no safety review.
Non-functional targets designed for:
- NFR-ADM-005 (security).
- Every operation asks the decision point, each manual bed change and the override as actions of their own.
- A facility not permitted is refused before "not found". An outage is 503.
- Bed changes, reservations, releases, expiries and overrides are audited as adm.bed.change.
- Not-valid and exception decisions are audited as adm.context.deny, and reads carrying a patient as adm.person.view.
- Occupant and isolation detail is removed under the redact obligation.
- NFR-ADM-009 (interoperability). 210 provider cases pass, the events validate, and the consumer stubs record no violation.
- NFR-ADM-012 (observability). The kit's traces and correlation identifiers. Valid decisions are logged with the policy version, and registry flags, D10 delivery failures and expiries are logged.
- NFR-ADM-013 (localization). The constraint catalogue, turnover steps, windows and exceptions are settings or stand-ins; user messages are those of the requirements.
- NFR-ADM-014 (time integrity).
- Effective and recorded times are kept in UTC to the millisecond.
- A bed's effective time is not before its last change and not in the future beyond the CFG-ADM-011 clock tolerance.
- Validation reads the state at the activity time from the history.
- NFR-003 latency. A bed change is on the board in the same request and on his.adm.bed.v1 through the outbox. p95 propagation is measured at integration (RC-3-S24).
Differences from the specification or the contract¶
None of these is a guess at clinical, financial or access behaviour: each follows the text and takes the stricter reading where it is open. ADR-HIS-102 records them.
- Bed type, bed class, equipment and age band are not in master-data.v1. DEC-ADM-015 puts them in D10, but the Location of master-data.v1 carries only the room's isolation capability and bed count. A request naming them leaves the bed unmet with "not recorded in the location registry", among the soft constraint failures. It is never offered as eligible without an authorized override. The service line is the requested unit, as the beds.v1 example shows.
- What meets an isolation need. A room D10 defines as isolation capable and not shared with another patient, or cohort placement with the same precaution type. A single room that is not isolation capable does not meet it. The rule holds from both sides: a room-mate's need counts too, whether isolation is designated on its bed or only named by its admission request (ReservationPurposes.isolationNeed). No one is placed beside a patient who needs isolation, except as cohort placement of the same precaution type. A patient admitted without an admission request has no need known to this unit until isolation is designated on the bed.
- Two transitions for one step. Where a requirement names a step that 4.3 does not have, the unit takes two transitions of 4.3:
- a reserved bed that is blocked: Reserved to Available, then Available to Blocked;
- a bed that becomes Available in a room held for isolation: Available, then Blocked;
- the terminal clean of an empty bed: Available to Blocked, then back to Available.
A bed blocked while Cleaning is not unblocked until its cleaning is done.
- Isolation in force ends when the patient leaves the bed. The room hold stays until the terminal clean (PR-BED-001-5). A reserved room-mate's reservation is invalidated when isolation is designated in the room, since it was made without the constraint.
- A reservation is accepted for an admission request that is Requested, Accepted or Bed allocated. Section 4.3 lists Accepted to Bed allocated. The RC-3 scenario reserves without an acceptance, and RC-3-S06's listener moves a Requested request to Bed allocated. A transfer is refused ("Transfer not found.") until MOD-ADM-009 implements the port (RC-3-S08).
- 409 for a bed held for another encounter. reserveBed answers 409 when the bed is Reserved or Occupied for another encounter (BR-ADM-014; the scenario expects 409 for an occupied bed), and 400 for Blocked, Cleaning and Out of service.
- Validation checks the state at the activity time and the current state (FR-ADM-ENC-003 parts 6.2, 6.4 and 11).
- The emergency exceptions and the windows are stand-ins of CFG-ADM-023 (ADR-HIS-102 point 9), for governance to approve.
- Results of orders placed during the encounter are accepted in every state but Cancelled. DEC-ADM-007's specific rule ("results for orders placed during the encounter are always accepted") is applied over the lists of its matrix, so that no result is lost (review round 7). Cancelled stays "none".
- Late charges are checked against their 48-hour window only. DEC-ADM-007's "and before the bill is final" needs the bill's state from Domain 5, which has no contract yet (follow-up).
- The bed manager is the recipient role adm.bed-manager. The notification types are registered, but no D10 role name for the bed manager exists yet (follow-up).
- attributionPending stays set after an unmerge. It is set from PatientUnmerged, but the reattribution that clears it (correctEncounter with unmergeId, FR-ADM-MPI-005 part 6.9.1) is not served by this unit yet. The encounter stays pending, which is the safe side.
- The cancelled-with-activity worklist is filled, but empty in practice until the subscriptions to the Domain 3 to 6 events report activity through DownstreamActivity.
- The alternatives of searchEligibleBeds in the admission refusal (FR-ADM-ADT-001 part 10, a RC-3-S06 follow-up) are not added. The card bounds this session to BED-001, BED-002 and ENC-003. The screen can call searchEligibleBeds after a refusal.
Review round 1¶
The pipeline failed in EncounterTransitionTest.concurrentTransitions, which RC-2-S04 wrote (FR-ADM-ENC-002 AC-04, TEST-ADM-013): the losing request got 400 instead of 412. The race was in EncounterLifecycle.transition, not in this card's code:
- the loser passed the version check on a read taken before the winner committed;
- it then checked its effective time against a history that already held the winner's entry, and was refused as "time inconsistent".
A refusal of the effective time is now answered as the 412 version conflict whenever the encounter changed since it was read. The test passed three runs in a row on its own, and the whole build passes again.
Review round 2¶
The review asked for two changes, both made on this branch:
- The isolation rule from both sides. Eligibility.evaluate checked the isolation need of the patient being placed only. A patient without the need could be offered, and reserve, the bed beside a reserved or occupied patient who needed isolation, as long as no isolation had been designated yet. A room-mate's need now counts as well: it is read from the isolation in force on its bed, or else from its latest admission request that is not cancelled (ReservationPurposes.isolationNeed, implemented by AdmissionRequests). The bed is refused ("The room holds a patient who needs isolation."), except as cohort placement with the same precaution type where cohort placement is allowed. The rule is hard, as before. BedReservationTest.roomMateNeedingIsolation covers it beside a reservation and beside an admitted patient (TEST-ADM-019).
- Age band. CFG-ADM-014 lists age band as soft, with service line and bed class. The question for clinical governance now names only bed type and equipment as unclassified. The code already treated age band as soft.
Bringing the branch up to date¶
Main took ADR-HIS-099 while this pull request was open, and the open pull request #250 holds ADR-HIS-098. This session's record was first ADR-HIS-100. A later merge brought ADR-HIS-098 to main, and the open pull requests #252 and #253 hold ADR-HIS-100 and ADR-HIS-101. So the record is now ADR-HIS-102, with every reference to it: this handover, the unit's code comments, migrations and README, and the index row with its count.
Review round 4¶
The review found that two reservations sent at the same moment for different beds of one shared room could both pass the sex and isolation rules. Each locked only its own bed and read the room-mates without a lock. Every beds.v1 command now first locks every bed of the bed's room, in the order of their identifiers (BedLedger.lockRoom): changeBedState, changeBedIsolation, reserveBed and releaseBedReservation. The second of two commands in one room then sees the first's reservation, and the locks are always taken in one order, the designation's and release's room-mate locks included.
BedReservationTest.concurrentReservationsInOneRoom (TEST-ADM-019) runs three rounds by isolation need and three by sex. It fails without the room lock (both reservations made in the first round) and passes with it.
Review round 5¶
The review found that an admission straight into an Available bed, without a reservation (FR-ADM-BED-002 part 6.5, "an Available bed in a single reserve-and-occupy step"), took none of the hard rules and locked only its bed. BedLedger.occupy, which Adt calls for admission and return and Reversals for a discharge reversal into another bed, now:
- locks every bed of the room, as a reservation does, so that an admission and a reservation in one room are serialized;
- for a bed not reserved for the encounter, applies Eligibility's hard rules with the encounter's isolation need from its admission request. These are the cohort precaution, an isolation need beside a room-mate or in a room that does not suit it, and the sex of a shared room. A bed reserved for the encounter was checked at its reservation.
A refusal is the admission's own: 400 on /bed, "Selected bed is not available: …", and nothing changes. The person index unreachable is 503. Soft constraints are not applied to a direct admission: their override belongs to the reservation.
BedReservationTest.directAdmissionAppliesHardRules (TEST-ADM-019) covers four refusals: the cohort bed for no need and for another precaution, the other sex, an isolation need in a room that is not isolation capable, and no need beside a patient needing isolation. It also covers the admissions that meet the rules. It fails without the rules.
Review round 6¶
The review found three things in encounter validation, all changed on this branch to the stricter reading of DEC-ADM-007:
- A back-entry could bypass the state. An activity time before the encounter began skipped every state check, and downtime-back-entry waived it. A routine order or a charge on a Closed or Discharged encounter was then valid under the exception, with no limit on how far back. Now:
- the current state is checked first, and no exception waives what it refuses;
- the back-entry is waived only within the backdating limit before the encounter's start (his.adm.validation.back-entry-limit, 24 hours, CFG-ADM-011).
- quick-registration was removed. It waived an unconfirmed encounter on the caller's word, and DEC-ADM-007 names no such exception: its quick registration creates a Registered encounter before care is recorded. The approved list is downtime-back-entry alone, and quick-registration is now refused as not on the list.
- Results follow the matrix as it is written. They are accepted in progress and when discharged and not closed. They are refused on a Closed encounter ("addenda only"), a Pre-admitted one and a patient on leave. The conflict with "results ... are always accepted" is raised on issue #63 for the owners. Review round 7 replaced this reading: results now follow DEC-ADM-007's own rule (below).
EncounterValidationTest covers the following. emergencyException: the back-entry within and beyond the limit, on a Discharged, Cancelled and Pre-admitted encounter, and quick-registration refused. matrixAfterAdmission: results refused on leave and on Closed, and no exception on Closed.
Review round 7¶
The review found that refusing results on Closed, On leave and Pre-admitted encounters went against DEC-ADM-007's specific rule, "results for orders placed during the encounter are always accepted", and that refusing a result risks losing it. The unit now follows that rule. A result is accepted in every state but Cancelled ("none"). EncounterValidationTest covers results accepted on a Pre-admitted encounter, on leave and on a Closed encounter, and refused on a Cancelled one.
So no question under rule 3 is open: the specification decides. The handover, ADR-HIS-102 point 9 and the pull request now say the same, and the comment on issue #63 is updated to say so.
The nit is recorded as a follow-up. "Late charges within 48 hours and before the bill is final" is checked for the window only; the bill's state needs a Domain 5 contract.
Questions for a person¶
None blocks the work. Under rule 3 no question was needed: where the card or the specification left a point open, the choices above follow its text and are recorded in ADR-HIS-102. For the owners, on the merged work:
- Clinical governance and operations (CFG-ADM-014): confirm that an isolation need is met only by an isolation-capable room not shared with another patient (or cohort placement). Confirm that bed type and equipment, which CFG-ADM-014 does not classify, are soft, as the age band, service line and bed class it lists as soft are.
- Clinical governance, revenue cycle and registration governance (CFG-ADM-023, DEC-ADM-007): approve the one stand-in emergency exception, downtime-back-entry, and what it waives: only an activity time before the encounter began, within 24 hours. This is an approval of a configuration stand-in on the merged work, not an open question: the reading of results follows DEC-ADM-007's own rule (review round 7).
Follow-ups outside the card¶
- D10 master-data.v1 (contracts/ess): carry bed type, bed class, equipment, service line and age band on bed positions or their units (DEC-ADM-015), so the soft constraints can be met.
- D10 registrations before ADM goes live (RC-1-S16, RC-1-S15, configuration):
- the actions of ADR-HIS-102 point 7 on
adm.Bedandadm.BedReservation, withoverride-constraintas a distinct privilege of the bed manager and the registration supervisor; validateonadm.Encounterfor the service identities of Domains 3, 4, 5 and 9;- the
redactobligation (fieldsisolation,encounterId) for roles that may not see them; - the role
adm.bed-manager; - terminology
urn:his:adm:bed-block-reason(withisolationandterminal-clean),isolation-reason,reservation-release-reason(replaced,expired,bed-blocked,bed-out-of-service,isolation-in-room,terminal-clean) andemergency-exception. - RC-3-S08 (transfers.v1): implement
ReservationPurposes.transfer(a destination bed for a transfer), and vacate and occupy throughBedOccupancy(transfer-out sets Cleaning with the turnover). - Reattribution after an unmerge (FR-ADM-MPI-005 part 6.9.1):
- serve correctEncounter with
attributes.patientandunmergeId, as adm-identity calls it (RC-3-S05 contract point 5); - clear
mod_adm_004.attribution_pending; - fill the
unattributed-after-unmergeworklist. - RC-3-S24 (integrate):
- set
his.adm.notifications.urlandhis.adm.tasks.url(D10); - give D10 the synthetic bed positions and rooms, with
isolationCapableandbedPositionCount; - the unit subscribes to
his.ess.masterdata.v1andhis.adm.person.v1; - measure BedStateChanged propagation against NFR-003.
- Screens (UI-ADM-004 bed board): after an admission refused for its bed, offer the eligible beds through searchEligibleBeds.
- Domain 5 bill state (contracts/fin, BC-1): when Domain 5 publishes whether a bill is final, check late charges against it too, besides the 48-hour window (DEC-ADM-007, CFG-ADM-023).
- Design system: none from this session.