Skip to content

Implementation plan / Session plan / Readiness RC-1 / Identity safety report

RC-1 identity safety scenario report

Slice RC-1
Gate criterion Slice gate RC-1, criterion 5 (ACC-004): the identity safety scenarios in the slice's scope pass (duplicate, twin, newborn, unknown patient, merge and unmerge, as applicable). Evidence: identity test report and steward workflow evidence
Status Draft report. Written by session RC-1-S27 on 2026-11-27 from the tests and runs of RC-1-S08, RC-1-S09, RC-1-S21 and RC-1-S26. The gate session RC-1-S28 runs them again for its own evidence record (PRS 17.3); this report says what to run and what to expect
Safety functions D01-ADM 11.1: patient search and selection; identity matching and automatic merge
Data Synthetic only: the 15 pairs of services/adm-identity/mod-adm-001/src/test/resources/reference/identity-safety-set.json, and the persons the RC-1 scenario's builders make

1. Which scenarios apply to RC-1

Scenario of ACC-004 In RC-1? Why
Duplicate (the same person registered again) Yes FR-ADM-MPI-002, FR-ADM-MPI-003, FR-ADM-REG-003
Twins and multiple births Yes FR-ADM-MPI-003 exclusion flags
Aliases, changed demographics, shared contact data Yes TEST-ADM-031
Newborn Partly: as a matching case (newborn and mother share mobile and address) Newborn registration with the mother link is FR-ADM-REG-004, slice RC-4
Unknown (unidentified) patient No FR-ADM-REG-004, slice RC-4. The screen says "Emergency registration is not available in this version. Use the downtime registration form."
Merge and unmerge No: automatic merge is disabled, and no merge can be made FR-ADM-MPI-005, slice RC-3. Reading a merged identity's survivor is built (FR-ADM-MPI-001 AC-04)

2. Results

Scenario Test Expected (specification) Result recorded Outcome
Identity safety set: twins (3 pairs), aliases and name variants (4), changed demographics (3), shared contact data (3), common name and date of birth (1), father and son (1) IdentitySafetySetTest.noUnsafeSilentMerge (FR-ADM-MPI-003, FR-ADM-MPI-002, TEST-ADM-031) No unsafe silent merge No pair merged or linked; every twin pair carries the twin flag; every same-person pair goes to a steward and the clerk is prompted (RC-1-S08) Pass
Benchmark of the effective matching configuration on the set IdentitySafetySetTest.benchmarkOnSafetySet (TEST-ADM-002) Scores with evidence and version; production unchanged Recall 1.0 (every same-person pair to a steward). 7 high-confidence, 5 review, 3 non-match; precision 0.58 Pass, with finding I-1
Pairs in each band; exclusion flags; automatic merge disabled MatchRoutingTest, PairScorerTest.twinFlag, ReviewRoundOneTest (TEST-ADM-003) Correct routing; no merge without policy; decisions explained Passes. Automatic merge policy is "none". Every exclusion flag sends a pair to review in any band Pass
Duplicate prompt is mandatory; high-risk ambiguity blocks routine registration; emergency path proceeds DuplicatePromptTest, RegistrationJourneyTest.ambiguityAndEmergencyPath, SamePersonUnsureTest (TEST-ADM-008) Prompt mandatory; block enforced; emergency path available Passes in the unit, against a stand-in for adm-identity (RC-1-S09) Pass in the unit; see I-2
"Unsure" on a pair that is not high-risk (GAP-ADM-012, PR-REG-003-5) RC-1-E2E-002's soft check, through the built units (RC-1-S26, run 20261127T052303Z-4362) The new person is active, with a review item The new person is provisional Fail: known deviation, issue #40; I-2
Search across facilities by a qualified identifier; alias; unqualified identifier refused PersonSearchTest (TEST-ADM-001); RC-1-E2E-003 One person with both identifiers; alias found; unqualified search rejected Passes in the unit and end to end Pass
Identifier assignment, concurrent allocation, reuse attempt, correction IdentifierRegistryTest, IdentifierApiTest (TEST-ADM-010) Unique values; no reuse; correction kept in history Passes; 24 concurrent allocations unique. Downtime No. RM: a number outside the issued block is refused Pass
Steward workflow: the possible duplicate reaches the stewardship queue and the steward sees it RC-1-E2E-002 (the task) and RC-1-E2E-007 (UI-ADM-002's work list against the D10 task service) A review task in a work queue (slice scenario step 6) Both pass end to end Pass; the steward's decision (merge, "different persons") cannot be recorded yet: I-3

3. Findings

  • I-1. The matching weights are not tuned for go-live. One pair of different persons, twins, reached the high-confidence band (score 91.89). The twin flag sent it to review, so nothing unsafe happened. Precision on the set is 0.58. RC-1-S08 records that the weights and thresholds of CFG-ADM-001 and CFG-ADM-002 must be re-tuned on the adjudicated legacy data before go-live (RISK-ADM-002). Changing them needs governance approval and clinical safety review (D01-ADM 11.2). Owner: HIM / registration governance. For the gate: not a failure of RC-1; a go-live condition.
  • I-2. The identity status after "unsure" is wrong end to end. GAP-ADM-012 says active; the built adm-identity makes the new person provisional. patient-identity.v1 1.1 (recordIdentityReview, recordDemographicChange) is not served either, so a registration whose change needs a review item cannot complete. A person decided on issue #40 on 25 Nov 2026 that this does not block the integrate session and that the gate files it as a fix for RC-1-S08. For the gate: a recorded failure of criterion 5, to be filed as RC-1-S28-F<n> against RC-1-S08.
  • I-3. Stewards cannot settle a pair yet. Merge, "different persons", defer, unmerge and attribution are FR-ADM-MPI-004 and FR-ADM-MPI-005 (RC-3). UI-ADM-002 shows them disabled, with the reason. Until RC-3, a possible duplicate stays open on the queue, and both records stay separate and visible. That is safe, but the queue grows. For the gate: not applicable to RC-1 (criterion 5 says "as applicable").
  • I-4. Stewardship capacity is not set up. The D1 readiness item "Identity stewardship capacity" asks for a named steward roster, queue assignment rules and capacity matched to pilot volumes. None exists yet, and the specification gives no number. Exclusion flags send every pair that has a flag to review, so the queue volume may be higher than the bands alone suggest (RC-1-S08). Owner: HIM / registration governance.
  • I-5. Usability test of patient context. D01-ADM 11.1 also verifies patient search and selection by "usability test of patient context". No session runs it. NFR-ADM-008 (usability) is a screen target, and RC-1-S21 left the patient zone drawn by the screen, without the window title (CUX-03). Owner: Domain 1 product team, with the department super-users.

4. To run again for the gate

# In services/adm-identity, on the light profile under the gate session's own name:
./gradlew :mod-adm-001:test --tests '*IdentitySafetySetTest' --tests '*MatchRoutingTest' --tests '*PersonSearchTest' --tests '*IdentifierApiTest'
./gradlew :mod-adm-003:test --tests '*IdentifierRegistryTest'
# In services/adm-patient-administration:
./gradlew :mod-adm-002:test --tests '*DuplicatePromptTest' --tests '*SamePersonUnsureTest'
# End to end, on the full profile:
HIS_SESSION=RC-1-S28 e2e/harness/scenario run e2e/scenarios/RC-1 --fresh --strict

IdentitySafetySetTest prints the per-pair report and the benchmark figures. The evidence record of the scenario run holds RC-1-E2E-002, 003 and 007.

Sign-off. HIM / registration governance and the clinical safety officer review this report and the steward workflow evidence (ACC-004). The clinical owner signs the gate.