Architecture / Decision records / ADR-HIS-096
ADR-HIS-096 The identity unit is Tier 1 for lookup, resolution and registration, and its stewardship and administration are Tier 2¶
| Status | Accepted |
| Decided | 2026-11-29 by session RC-1-S28-F3 |
| Record | Drafted 2026-11-29; approved 2026-11-30 by the Enterprise Architecture Board |
| Where the rule lives | services/adm-identity: service-kit (AuditRecord.tier, AuditEmitter.checkCapacity), mod-adm-001 (AuditTrail.stewardship(), AuditTrail.STEWARDSHIP_TIER) |
Context¶
The gate of slice RC-1 found that adm-identity declared his.unit.tier: 2 (fix RC-1-S28-F3, issue #208). Architecture 5.2 gives the identity unit "Tier 1 lookup". When the audit buffer is full (DEC-ESS-018), Tier 1 actions carry on with the outbox as the local durable log, and other protected actions block. At Tier 2 the unit refused patient search.
The unit holds more than lookup. NFR-ADM-003 and DEC-ADM-014 name its Tier 1 services: MPI lookup and resolution, and emergency and rapid registration. Identity stewardship (work items, resolution, merge, unmerge, attribution, sign-off), the correction of an identifier entered in error, and matching administration (benchmarks) are not among them. DEC-ESS-018 therefore has them block. ADR-HIS-094 gives the means: a unit declares the tier of its most critical paths, and an audited action of a lower tier declares its own.
Decision¶
adm-identitydeclares Tier 1.- Tier 1, the unit's tier, carries on with a full buffer:
- search, identifier resolution, person read, cross-reference and demographics query;
- registration: the duplicate check, a new person, the review items it raises (
ReviewRouter.route,routeAnswered), the identity review answered at registration, a new identifier, a No. RM, and demographic changes (INT-ADM-001); - the reads of identity matches. adm-patient-administration lists, as part of registration, the review items it raised (
HttpPersonIndex.listIdentityMatches). - Tier 2, refused as unavailable with nothing saved while the buffer is full:
- stewardship work items, including one reported from the registration desk;
- the resolution of an item and the merge it makes, unmerge, attribution and sign-off, and the return of deferred items;
- the correction of an identifier entered in error (a registration supervisor's or steward's correction, FR-ADM-XRF-001 part 3);
- matching benchmarks;
- the stewardship workspace's reads: merges and the stewardship report.
Their audits go through AuditTrail.stewardship(), which sets AuditRecord.tier(2).
4. A Tier 2 command checks capacity before it does anything (AuditTrail.stewardship().requireCapacity(), after authorization and the idempotent replay). Some commands call another service before their audit is written. Attribution after an unmerge, for example, asks adm-patient-administration to correct the encounter first. The per-record check alone would refuse such a command only after the call had been made.
5. Refusal audits keep the unit's tier, as in ADR-HIS-094.
Consequences¶
- With a full audit buffer, a patient can be found, resolved and registered, and stewardship waits until audit is back. These tests hold it:
appUnitTierTest: the unit's own configuration;mod-adm-001AuditBufferTierTest: Tier 1 carries on; Tier 2 is refused with nothing saved, and works once audit is back;- the kit's
AuditBufferTest: the rule itself. - A new stewardship or administration command uses
audit.stewardship()and callsrequireCapacity()first. Forgetting it fails open, as in ADR-HIS-094. - This unit's kit now carries ADR-HIS-094's
AuditRecord.tier, withcheckCapacityin addition. The template can take both over (follow-up for FN-S03).