Implementation plan / Session plan / Readiness RC-1 / Downtime procedure
RC-1 downtime procedure and restoration reconciliation¶
| Slice | RC-1 Register a patient and open an encounter on the platform (Tier 1) |
| Status | Draft for rehearsal. Written by session RC-1-S27 on 2026-11-27. Not yet reviewed by the service owner or rehearsed by the departments |
| Gate criterion | Slice gate RC-1, criterion 7 (ACC-007): rehearsed by the departments that use the workflow; evidence is the exercise report and the closure of its corrective actions |
| Readiness items | D1 ADM "Downtime procedures"; D2 ISE "Downtime readiness"; D10 ESS "Support procedures" (degraded modes of D10 section 8.6) |
| Sources | D01-ADM local continuity; D01-ADM 11.2; WF-ISE-006; D10-ESS 8.6; architecture 9.2 and 9.3; PRS 14.2 |
| Owners | Hospital operations (procedure and forms); HIM / registration governance (reconciliation and stewardship); incident command lead (declaration); platform engineering / SRE (restoration) |
This procedure tells the registration points what to do when the system cannot register a patient or open an encounter, and tells the platform and HIM teams how to bring what was written on paper back into the record without creating a second identity. It is a draft. The words of the specifications decide. Where this draft and a specification differ, the specification is right, and the draft is corrected.
1. What it covers¶
The patient-facing workflow of the slice is WF-ADM-001, patient search, registration and encounter creation. It runs at every registration point: the registration counters, the emergency department, the admission office and each satellite. It depends on the shared services of Domains 10 and 2 that RC-1 delivers: sign-on, the policy decision service, audit, terminology and master data, the task service and the event backbone. Section 4 gives what each of them does when it fails, and what staff do then.
The slice's other workflows are administrative. During a downtime they wait, and section 7 says how each is reconciled. These are joiner, mover and leaver, master-data and configuration change, notification, access recertification, release, and secret rotation.
Not covered here, because the slice does not deliver them: admission, transfer and discharge (RC-3), emergency registration of an unidentified patient and downtime back-entry with its reconciliation worklist (RC-4), the downtime summaries of MOD-ISE-009 (RC-3), and Break-the-Glass (RC-4). Section 8 says what this means for the rehearsal.
2. When downtime starts¶
Downtime for registration is declared by the incident commander (ACT-ISE-011), never by one clerk. A registration point that cannot work calls the service desk and switches to the forms only once downtime is declared. If a patient needs care now, the clerk does not wait for the declaration: the patient goes on a form and the form is taken into the procedure later.
| Condition | Who sees it first | Declaration |
|---|---|---|
| The patient index, registration or encounter service does not answer for any clerk of a facility (Tier 1, architecture 9.1) | Clerks: "Patient index unavailable. Use emergency registration." or "The service did not answer, so nothing was saved."; alert ServiceErrorRateHigh or SyntheticCheckFailing |
Declared for the affected facilities as soon as the incident commander confirms it. The target is within 15 minutes of the first report |
| The policy decision service stays unavailable for 15 minutes (CFG-ISE-031, GAP-ISE-009) | Clerks: "Not saved · access cannot be checked." or "Access cannot be checked right now."; through the gateway, after 15 minutes: "The authorization service has been unavailable for 15 minutes or more: follow the downtime procedure."; alerts GatewayPolicyServiceUnavailable and GatewayPolicyOutageDowntime once loaded (runbook entries A-01, A-02), and ServiceErrorRateHigh |
Declared for the affected units at 15 minutes |
| New sign-on fails beyond the tolerated period (D10 8.6, SAFE-005) | Clerks starting a shift cannot sign on; signed-on clerks keep working until their session expires | Declared for the registration points whose staff cannot sign on |
| A ward or satellite loses its network to the central service | Every screen of the site fails at once | Declared for that site |
| Cyber incident with containment (WF-ISE-006 step 2) | Security operations | Declared by the incident commander with the security and privacy office |
No declaration for an outage of a non-critical service (task service, audit service, event backbone, notification) or of a partner. Registration goes on in degraded mode (section 4), and RC-1-S26 measured this (NFR-ADM-011): with ess-coordination, ess-audit and the event backbone down, registration and encounter creation still answered 201. No declaration for planned maintenance either: Tier 1 services take rolling maintenance in more than one availability zone (local continuity, part 4; ADR-HIS-068).
3. Roles¶
| Role | During downtime | After restoration |
|---|---|---|
| Incident commander | Declares and ends downtime per facility and service; opens the downtime window record; keeps the incident timeline | Opens the reconciliation period; signs its closure |
| Platform engineer / SRE | Keeps unaffected services running; restores in the order of section 6.1; reports progress to the incident commander | Validates integrity and access before reconnection (BR-ISE-024) |
| Registration supervisor (each point) | Hands out the downtime forms, the number block and the wristband stock; keeps the custody log | Leads the back-entry at the point |
| Registration clerk | Registers on downtime forms | Back-enters the forms of the point |
| Patient identity steward (HIM) | On call for identity questions that cannot wait | Works the stewardship queue the back-entry raises |
| Service desk (L1, L2) | Takes the reports, gives the reference numbers, escalates (runbook section 2) | Takes the reports of what back-entry refuses |
| Clinical safety escalation | A suspected wrong-patient event goes straight to clinical command, not to the IT queue (PRS 18.1, D01-ADM 11.2) | The same |
4. Degraded mode: what staff see and do before any declaration¶
What the built units do is written in the "System" column. What staff do is written in the "Staff" column.
| Service down | System (as built and tested in RC-1) | Staff |
|---|---|---|
| Policy decision service (D10 8.6) | A decision that does not come within 250 ms counts as Deny (CFG-ISE-031). The screen keeps the draft and shows "Not saved · access cannot be checked. Your work is kept as a draft; try again in a few minutes." Nothing is granted on an outage (RC-1-E2E-004). The units in RC-1 do not use cached decisions yet (section 8) | Try again after a few minutes. Report to the service desk with the reference the screen gives. After 15 minutes the incident commander declares downtime (section 2) |
| Sign-on (Keycloak, MOD-ESS-001) | New sign-on fails closed. Sessions already open run to expiry | Do not sign out. Do not share a signed-on workstation's session with another user. Clerks who cannot sign on use the downtime forms once downtime is declared |
| Audit service (BR-ESS-022) | Each unit keeps its audit events in its outbox and delivers them on recovery. In RC-1-E2E-011, 8 of 8 registrations made during an audit crash were acknowledged and all were audited after recovery | Nothing; work as normal |
| Event backbone | Each unit keeps its events in its outbox and publishes them on recovery (5 of 5 in RC-1-E2E-012) | Nothing; work as normal |
Task service (ess-coordination) |
A possible duplicate cannot raise its stewardship task at once. adm-identity keeps the request in its own table (review_task_request) and submits it on recovery, with the match as idempotency key. No merge is applied meanwhile (FR-ADM-MPI-003 part 10) |
Register as normal; the duplicate prompt is still shown |
| Terminology, master data | The units use their last published copy (architecture 9.2) | Nothing; report a code that cannot be chosen |
Patient index (adm-identity) |
Search fails: "Patient index unavailable. Use emergency registration." Emergency registration is not in this release, and the screen says so: "Emergency registration is not available in this version. Use the downtime registration form." | Report it. Patients go on downtime forms (section 5); a patient who needs care now goes on a form at once |
Registration or encounter (adm-patient-administration) |
Save fails: "The service did not answer, so nothing was saved. Your work is kept as a draft." | Do not register the patient a second time from another screen. Report it, and wait for the declaration |
| Any service: no answer at all | "Not known whether this was saved. Check again before doing anything else." | Search for the patient before entering anything again. A request sent again with the same draft does not create a second patient or encounter (idempotency key, NFR-ADM-006), but a new draft does |
5. During downtime: registration and encounter on paper¶
Each registration point keeps a downtime kit, checked by its supervisor every month and after every exercise: - uniquely numbered downtime registration forms (patient identity, demographics, next of kin, payer reference, identity verification) and encounter forms; - a printed block of downtime No. RM numbers and a block of downtime encounter numbers, issued to this point. Sizes are set in CFG-ADM-029: 50 No. RM and 200 encounter numbers, 300 for the emergency department. A new block is issued when half of one is used. No. RM numbers come from the range 90000000 to 99999999, and encounter numbers from daily sequence 900000 and above (CFG-ADM-008); - wristband and label stock, and a pen-and-paper custody log; - the 30-day registration lookup list, the most recent printed copy (local continuity, part 1).
For each patient: 1. Look the patient up on the lookup list: name, No. RM, date of birth, sex and the last 4 digits of the NIK. Note the generation time printed on the list. A list older than 2 hours is stale (CFG-ISE-025): say so to the supervisor, and use it only with a second identifier checked with the patient. 2. Found on the list: the patient keeps the No. RM. Write it on the form, with "found on the lookup list" ticked. 3. Not found: take the next unused downtime No. RM from this point's block, and cross it off on the block. Never use a number of another point's block, and never use a number twice. 4. Verify identity against the patient's identity card or another document, as on the normal screen. Write which document was seen. 5. Fill the registration form with every field the encounter type requires (the field set of FR-ADM-REG-001 for planned, emergency or other visits). Write the time the patient presented and the clerk's name. 6. Open the encounter on paper: take the next downtime encounter number. Write the service, the practitioner if known and the location. 7. Put a wristband or label on the patient with the name, the No. RM, the date of birth and the downtime encounter number. 8. Log the form in the custody log: form number, No. RM, encounter number, time. The forms stay at the point in the locked tray until back-entry. 9. If the patient might already be registered under another name or number, write "possible duplicate" on the form. Do not try to settle it: the steward does at back-entry.
The rules: - A form is never destroyed. A form filled in error is struck through, marked "entered in error" with the clerk's initials, and kept. - Downtime forms hold patient data: they are kept as the patient record is, and moved only in a sealed folder logged in the custody log (PRS 14.2 item 3).
6. After restoration: reconciliation¶
6.1 Restoration order and validation¶
The platform restores by clinical criticality (WF-ISE-006 step 6). For the RC-1 stack this order follows the units' dependencies:
1. Time service, secrets and keys, network.
2. PostgreSQL of each unit, Kafka and the schema registry.
3. Keycloak (sign-on), then ess-runtime-decision with its decision engine.
4. ess-audit, then ess-reference.
5. adm-identity, then adm-patient-administration.
6. ess-coordination, then the gateways and the shell.
Before the registration points reconnect, the platform engineer checks and records each of these in the incident record (BR-ISE-024):
- every unit's health is up;
- ess-audit's integrity verification passes;
- the outboxes are draining and the consumer lag is falling (dashboards; runbook entries ConsumerLagHigh and DeadLetterRaised);
- a synthetic search and registration on the test facility succeed;
- a clerk without the role is refused (access control works again).
6.2 Back-entry¶
The incident commander opens the reconciliation period, and each point back-enters its own forms, in this order (local continuity, part 3): 1. Identities first. For each form, the clerk searches the patient index with every identifier and the demographics on the form, as at a normal registration: - The form's No. RM came from the lookup list and the index shows the same person: confirm, and go on to the encounter. - A downtime No. RM: register the person through the normal duplicate check. If the check shows a candidate, do not pick it on the clerk's own judgment when the form says "possible duplicate" or the candidate is not certain: register as the screen allows, and the stewardship task is raised. The downtime No. RM is recorded against the person as a prior identifier (PR-XRF-001-3). - A No. RM used twice, or outside the block issued to the point, is refused and listed (local continuity, part 3). The clerk hands the form to the supervisor, who lists it for the steward. 2. Encounters next, in original time order. Each encounter is entered with the time the patient presented and the downtime encounter number. The back-dating tolerance allows the whole downtime window for a downtime form (CFG-ADM-011). 3. Mark the form "entered" with the clerk's initials and the new record's No. RM and encounter number, and log it in the custody log.
6.3 Reconciliation and closure¶
The period is closed by the incident commander with HIM when all of these hold: - every logged form is entered or listed as an exception: the custody log and the forms agree, one for one; - every downtime No. RM is either a prior identifier of a person or on the steward's list. No two persons hold the same downtime number; - the steward has worked every stewardship task the back-entry raised, or each has an owner and a due date (CFG-ESS-027); - the audit trail shows each back-entered registration and encounter, and the audit completeness reconciliation of the window is clean (D10 8.6, "Data consistency"). Any audit event in quarantine for the window has an owner; - the event backbone has no dead letter for the window that is still open; - unresolved items stay on their owned worklists and are not discarded (WF-ISE-006, exception scenarios).
A post-incident review, a hazard reassessment and the corrective actions follow (WF-ISE-006 step 8). A suspected wrong-patient record found during reconciliation is a clinical safety escalation, not an item to settle in the reconciliation meeting.
7. The slice's administrative workflows during a downtime¶
None of these is done during a downtime of the services it uses. Each waits, and on recovery it is checked as below.
| Workflow | During downtime | Reconciliation on recovery |
|---|---|---|
| WF-ESS-001 Joiner, mover and leaver | Identity-source events wait in the feed. A leaver who must lose access now (dismissal, security) is a security incident: the security officer disables the account in Keycloak directly and records why | The feed is processed in order; identity-source state is compared with account state (D10 8.6, "Data consistency"); the direct disable is entered through the governed path with its reason |
| WF-ESS-005 Master-data change | No change is approved or published | Changes are re-submitted; none is applied from a note |
| WF-ESS-006 Configuration change, promotion and rollback | The last active version is used; no new activation (D10 8.6) | Missed activations are applied in effective-time order with audit |
| WF-ESS-007 Notification (first built in RC-2) | Requests wait in the requester's outbox; the owning domain's worklist stays the authoritative record | Sent in priority order; overdue timers fire at once |
| WF-ESS-008 Access recertification | Campaign deadlines pass | The campaign owner extends deadlines by the downtime window, with the reason recorded |
| WF-ISE-002 Release, promotion and deployment | No promotion. An emergency fix follows the expedited path with retrospective review (BR-ISE-021) | The release record names the downtime |
| WF-ISE-007 Certificate, key and secret rotation | Rotation is postponed unless the outage itself needs a rotation (a leaked secret) | The rotation calendar is caught up; any certificate that expired in the window is rotated first |
8. What the system supports today, and what the rehearsal must do by hand¶
| Part of the procedure | In RC-1 | Until it is built |
|---|---|---|
| Downtime No. RM blocks: issuing a block to a point, and refusing a number outside it or used twice | Built inside adm-identity (IdentifierRegistry.issueDowntimeBlock, recordDowntimeIdentifier, tested in IdentifierRegistryTest). There is no API or screen for it in the ADM contracts |
Blocks are issued and checked by HIM on paper. The rehearsal checks a number against the block list by hand |
| Downtime encounter numbers (sequence 900000 and above) | Reserved: normal allocation stops below 900000 (CinAllocator). No operation enters an encounter with a downtime number |
The rehearsal enters the encounter with a normal number and writes the downtime number on the form and in the custody log |
| Back-entry with the downtime flag and the original time; the reconciliation worklist of downtime entries | Not built: FR-ADM-FLW-003, slice RC-4. RC-1-S26 recorded the 100% reconciliation target of NFR-ADM-011 as not measurable | The custody log is the reconciliation list. The encounter is entered at the time of back-entry. Its original time stays on the form and in the custody log, linked by the encounter number, until FR-ADM-FLW-003 carries it into the record |
| Steward merge of a downtime No. RM into an existing record | Not built: FR-ADM-MPI-005, slice RC-3. The stewardship task is raised (RC-1-E2E-002) | The task stays open on the steward's queue with "merge pending RC-3". The two records are flagged by the steward's decision, never merged by hand in a database |
| Read-only downtime lists and summaries, regenerated hourly | Not built: FR-ISE-BCR-003, slice RC-3 | The rehearsal uses a printed synthetic list, made from the test data |
| Downtime window recorded per service (IF-ISE-007) | Contract only; the backbone's topic his.ise.downtimewindow.v1 is registered (RC-3) |
The incident commander keeps the window in the incident record |
| Cached decision for Tier 1 reads in the units; Break-the-Glass | Not in the RC-1 units: the kits do not cache the 60-second Permit (RC-1-S26 follow-up), and his.policy.outage-cache is off. Break-the-Glass has a contract (emergency-access.v1) and a gateway route, but no controller: it is FR-ESS-AUZ-002, slice RC-4 |
A policy-service outage stops registration after 250 ms per request, and downtime is declared at 15 minutes |
| Audit buffer capacity (CFG-ESS-026) | Not set in the specification; must be stated before go-live (DEC-ESS-018). The kits default to 100,000 unpublished events (his.audit.buffer-capacity). When the buffer is full, a unit whose his.unit.tier is 1 goes on and logs a warning, and any other unit refuses protected actions ("Audit is unavailable; the action cannot be recorded now."). Only adm-patient-administration is set to 1. adm-identity, ess-runtime-decision, ess-reference and ess-audit are set to 2, although architecture 9.1 makes MPI lookup, policy decision, terminology runtime and audit intake Tier 1 |
A long audit outage could stop patient search before it stops registration. The rehearsal does not fill the buffer. The unit tiers are a finding for the gate (readiness items, findings) |
| The gateway's degraded path | Built in platform/gateways (CFG-ISE-031 in model/gateway.toml): cached Permit up to 60 minutes for Tier 1 reads, and after 15 minutes the message "…follow the downtime procedure" on internal requests (TEST-ISE-039). The RC-1 stack calls the units directly, without the gateway. The rule GatewayPolicyOutageDowntime (action=declare-downtime) exists but is not loaded into Grafana |
In production the screens' requests go through the gateway, so staff see the gateway's message. In the rehearsal the incident commander watches the clock instead |
These gaps do not change the procedure, which follows the specification. They change how much of it the system checks. Until RC-3 and RC-4, HIM and the supervisors check by hand what the system will check later. The gate session records the rehearsal against criterion 7 with these limits.
9. Rehearsal (ACC-007)¶
The departments rehearse twice before the gate: a tabletop exercise, then a live exercise on the integration environment with synthetic patients only. Afterwards they rehearse every 6 months per facility, and again after any material change to the architecture (CFG-ISE-028).
Who takes part: a registration supervisor and two clerks from each kind of registration point (counter, emergency department, admission office, a satellite), a patient identity steward, the incident commander, a platform engineer and the service desk.
Live exercise, on an integration environment started for the exercise (platform/dev-environment/his-env start full under the exercise's own session name, then the RC-1 stack of e2e/scenarios/RC-1):
1. Register three synthetic patients normally. One of them is a near-duplicate of an existing person.
2. Stop adm-identity and adm-patient-administration (the harness's faults fixture, or docker stop on the exercise's own containers). Check that the screens show the messages of section 4.
3. The incident commander declares downtime. Each point registers five patients on forms, with lookup-list hits, downtime numbers, one "possible duplicate", one form filled in error and one number deliberately reused.
4. Stop the decision service for 15 minutes on a second run, and check that downtime is declared on time.
5. Restore in the order of section 6.1, with the validation checks.
6. Back-enter as in section 6.2. Check that the reused number is caught, the duplicate goes to the steward's queue and the custody log reconciles one for one.
7. Close as in section 6.3, and time each step.
Success criteria: - no patient left without a wristband; - no duplicate identity created that the steward did not see; - every form either entered or listed; - the audit trail and the custody log agree; - the declaration is made at or before 15 minutes of the policy-service outage; - back-entry of a point's forms takes no longer than the point's downtime (a measured target to agree after the first exercise).
Exercise report (template)¶
| Field | Entry |
|---|---|
| Exercise | Tabletop / live; date; facility; environment and run identifier |
| Departments and participants | Roles, not names, in the shared copy |
| Scenario | Which steps of the plan above were run; which faults were injected |
| Timeline | Declaration time, downtime window, restoration steps, reconnection, closure |
| Measurements | Time to declare; forms written; back-entry time per point; duplicates found; numbers refused |
| Findings | What did not work, each with its severity |
| Corrective actions | Each with an owner and a due date; closed when it is verified in the next exercise or by its owner |
| Sign-off | Hospital operations; HIM; incident command lead; clinical department leads |
The report and the closure of its corrective actions are the evidence of gate criterion 7. The gate session collects them, and the departments sign them, not a session.