Skip to content

MOD ADM 001 MPI

Domain specifications / D01-ADM / 5. Detailed Functional Requirements / 5.1 Module Specification: Enterprise Master Patient Index (MPI) and Identity Matching

5.1 Module Specification: Enterprise Master Patient Index (MPI) and Identity Matching

5.1.1 Module Overview

Module ID: MOD-ADM-001

Purpose: Maintain one governed enterprise identity for each person across all facilities and care settings, match incoming identity data against the index, route uncertainty to human review and support reversible merge and unmerge.

Business Capabilities: - CAP-ADM-001 Enterprise patient identity (MPI)

Primary Actors: - Registration / admission clerk (ACT-ADM-001) - Identity steward (ACT-ADM-002) - Consuming domain services (ACT-ADM-012)

Dependencies: - MOD-ADM-003 for identifiers and assigning authorities; MOD-ADM-002 for demographic versions. - Domain 10: authorization, audit, workflow and task capability for workqueues, data stewardship policy (DAT-005). - Domain 2: event backbone, API gateway, HL7 v2 and FHIR adapters.

5.1.2 Functional Areas

Functional Area ID: FA-ADM-001 Person index and search

Description: The enterprise person record, its identity status and the search and resolution functions used by registration and by other domains.

Scope: - Included: person records, aliases, identity status, cross-facility search, resolution by identifier. - Excluded: workforce identities (Domain 10); portal account links (Domain 7).

Functional Area ID: FA-ADM-002 Matching engine and decision bands

Description: Deterministic and probabilistic comparison of identity data, scoring, thresholds and the three decision bands.

Scope: - Included: comparison attributes, scoring model, thresholds, model versioning, benchmarking, match evidence. - Excluded: the choice of a specific algorithm or library, which the PRS leaves open (ADM-004).

Functional Area ID: FA-ADM-003 Identity stewardship and merge/unmerge

Description: Workqueues for human adjudication and the merge and unmerge operations.

Scope: - Included: uncertain matches, duplicate candidates, merge and unmerge requests, demographic reconciliation, queue reporting. - Excluded: stewardship queues for unmapped codes and other non-identity data quality items (Domain 10).

5.1.3 Detailed Requirements

Attribute Description
Requirement ID FR-ADM-MPI-001
Requirement Name Enterprise person index and cross-facility search
Requirement Type Functional
Module Enterprise MPI and identity matching
Functional Area FA-ADM-001 Person index and search
Priority Must
Criticality Critical
Requirement Status Draft
Source PAT-001, ADM-001; REF-003 section 6.3
Related Business Rule BR-ADM-004
Related Workflow WF-ADM-001

1. Requirement Statement

The system shall maintain an enterprise Master Patient Index across all configured facilities and care settings and shall allow an authorized user or service to search for and resolve a patient across those facilities to a single governed enterprise identity.

2. Business Rationale

One longitudinal record requires reliable identity across facilities, encounters and departments (PRS 1.1). Poor identity quality leads to duplicate charts and wrong-patient care (PRS 19.1).

3. Actors and Permissions

Actor Permission Conditions
Registration / admission clerk Read (search), Create (person) Within permitted facilities; search results limited to the minimum attributes needed to select a patient
Identity steward Read, Update Full identity view including match evidence
Triage nurse / emergency clinician Read (search), Create (provisional person) Emergency context
Consuming domain service Read (resolve by identifier) Scoped service identity

4. Preconditions - The user or service is authenticated and authorized. - Facilities and assigning authorities are registered in the Domain 10 registries.

5. Trigger - A search or resolve request from a user interface, an internal service or an external query (IF-ADM-001, IF-ADM-002).

6. Functional Behaviour

  1. The system stores one person record for each enterprise identity, holding identity status, links to all identifiers, current and historical demographics, aliases and merge links (PRS 7.3).
  2. The system accepts searches by qualified identifier (value with assigning authority and type) and by demographic attributes including name, date of birth, sex, address and telephone.
  3. An identifier search returns the single person to which the identifier is currently linked, following merge links from a retired identity to its survivor.
  4. A demographic search returns ranked candidates across all facilities with match score band, identity status (for example verified, provisional, unidentified, merged; shown in the words of the glossary, such as "Temporary identity" for provisional) and the facilities at which the person holds identifiers.
  5. The system applies name normalization and alias matching so that recorded aliases and previous names are found.
  6. The system presents the same person and the same links regardless of the facility from which the search is made.

7. Input Requirements

Input Field Data Type Mandatory Validation Description
Identifier value String Conditional Required with assigning authority and type; format per authority Search by identifier
Assigning authority Code Conditional Must exist in the registry Qualifies the identifier
Identifier type Code Conditional Governed value set For example facility PIN, national identifier
Name Structured name Conditional At least one name component for a demographic search Family and given names
Date of birth Date No Valid date, not in the future; partial dates accepted Demographic search
Sex, address, telephone Coded / structured No Value set and format validation Demographic search
Minimum search criteria — Yes Either a qualified identifier or the configured minimum demographic combination Prevents over-broad searches

8. Processing Rules

Rule ID Processing Rule Expected Result
PR-MPI-001-1 An identifier without assigning authority is not searched Request rejected with an actionable error
PR-MPI-001-2 A search by a retired identifier follows the merge link Surviving person returned, with indication that the identifier was merged
PR-MPI-001-3 Results exceed the configured maximum The user is asked to refine the search; no truncated list is presented as complete

9. Output Requirements

Output Format Recipient Description
Candidate list Screen list / API response Requesting user or service Ranked persons with identity status, band and facilities
Resolved person API response (FHIR Patient where applicable) Requesting service Enterprise person identifier, qualified identifiers and current demographics

10. Validation and Error Handling

Scenario Validation System Response User Message / Action
Unqualified identifier Assigning authority and type present Reject request "Select the issuing authority for this identifier."
Insufficient criteria Minimum criteria met Reject request "Enter an identifier, or name with date of birth."
No result — Return empty list Offer creation of a new person, which runs the duplicate check (FR-ADM-MPI-003)
Index unavailable — Fail the request visibly; emergency registration may continue with a provisional identity (FR-ADM-REG-004) "Patient index unavailable. Use emergency provisional registration."

11. State and Lifecycle Behaviour

Search does not change identity state. Person records are never physically deleted by merge; identity status changes are specified in FR-ADM-MPI-005 and FR-ADM-REG-004.

12. Audit Requirements

Every search and every person record view is audited with the search criteria, the actor and the person records opened. Before and after values do not apply to search.

13. Security and Privacy Requirements

Demographic data is Confidential. Search results show the minimum attributes needed to select a patient. Persons carrying a sensitivity or restricted-access flag are displayed according to Domain 10 policy (SEC-016). Searches that return many persons to one user in a short period are available to Domain 2 security monitoring (SEC-010).

14. Acceptance Criteria

  • AC-01: Given a patient with a PIN at facility A and another at facility B linked to one enterprise identity, when a clerk at facility B searches by the facility A PIN with its assigning authority, then the system returns that one person showing both identifiers.
  • AC-02: Given a person with a recorded alias, when a clerk searches by the alias and date of birth, then the person is returned as a candidate.
  • AC-03: Given an identifier value without assigning authority, when a search is submitted, then the system rejects it and performs no match.
  • AC-04: Given a merged identity, when a service resolves the retired enterprise identifier, then the surviving person is returned with a merged indication.

15. Dependencies and Integration

  • Upstream dependencies: Domain 10 registries for facilities and assigning authorities; Domain 10 authorization.
  • Downstream dependencies: all domains resolve patient context through this function.
  • Required events or APIs: IF-ADM-001 (patient identity API); EVT-ADM-001 PatientResolved.

16. Open Questions / Assumptions

  • The minimum demographic search combination is configuration (CFG-ADM-003); its default is to be approved by registration governance.
  • The Architecture places the MPI in the enterprise shared services plane (REF-003, 4.1) while REF-002 assigns the patient MPI to Domain 1. This specification follows REF-002; see DEC-ADM-001.

Requirement FR-ADM-MPI-002: Deterministic and probabilistic identity matching

Attribute Description
Requirement ID FR-ADM-MPI-002
Requirement Name Deterministic and probabilistic identity matching
Requirement Type Functional
Module Enterprise MPI and identity matching
Functional Area FA-ADM-002 Matching engine and decision bands
Priority Must
Criticality Critical
Requirement Status Draft
Source PAT-004, ADM-003, ADM-004; REF-003 section 6.3
Related Business Rule BR-ADM-001, BR-ADM-004
Related Workflow WF-ADM-001, WF-ADM-002

1. Requirement Statement

The system shall match identity data against the MPI using deterministic matching on strong identifiers and probabilistic matching on configurable demographic attributes with a validated, versioned scoring model, and shall make match scores, rules and evidence visible to authorized identity stewards.

2. Business Rationale

Deterministic matching alone fails on typographical errors, transposed dates, name variants and missing identifiers. A validated probabilistic model, measured against local data, is needed to find true duplicates without creating false merges.

3. Actors and Permissions

Actor Permission Conditions
Identity steward Read (scores, rules, evidence) All matches
Scheduling and flow administrator / MPI administrator Update (matching configuration) Through governed configuration change with approval
Registration / admission clerk Read (candidate band only) Detailed weights are not shown to clerks

4. Preconditions - An approved matching configuration version (attributes, weights or model parameters, thresholds) is active.

5. Trigger - Creation of a person, change of matching-relevant demographics or identifiers, inbound identity data from an interface or migration, or a scheduled duplicate scan.

6. Functional Behaviour

  1. Deterministic matching compares qualified strong identifiers (same assigning authority, type and value) under configured rules.
  2. Probabilistic matching compares configurable attributes, including name, date of birth, national identifier, address and telephone where lawfully available, and computes a composite score.
  3. The matching engine may use Fellegi-Sunter scoring and string or phonetic comparison techniques such as Jaro-Winkler, Levenshtein and phonetic encoders. No single algorithm or library is mandatory; the engine is replaceable behind a stable contract.
  4. Each match result stores the candidate pair, score, decision band, contributing attribute comparisons, and the rule and model version used.
  5. The system records model performance measured against adjudicated local data and holds the approved thresholds as versioned configuration.
  6. The system supports benchmarking of a candidate configuration against a reference data set covering local names, scripts, transliteration and data quality, without affecting production matching.
  7. A change of configuration version does not alter past match decisions; past results remain attributed to the version that produced them.

7. Input Requirements

Input Field Data Type Mandatory Validation Description
Subject identity data Structured record Yes Passes registration validation Record to be matched
Matching configuration version Reference Yes Approved and effective Attributes, comparators, weights, thresholds
Blocking / candidate selection rules Configuration Yes Approved Limits comparison space

8. Processing Rules

Rule ID Processing Rule Expected Result
PR-MPI-002-1 An attribute that is missing on either record contributes neither agreement nor disagreement unless configured otherwise Missing data does not inflate or deflate the score silently; the evidence shows "not compared"
PR-MPI-002-2 An attribute not lawfully available in the deployment is excluded by configuration The attribute is not used
PR-MPI-002-3 A deterministic identifier match that conflicts with strong demographic disagreement is not treated as high confidence The pair is placed in the review band

9. Output Requirements

Output Format Recipient Description
Match result Stored record; API response MPI, stewardship workqueue Score, band, evidence, rule and model version
Model performance report Report Identity governance Precision and recall against adjudicated data, by configuration version

10. Validation and Error Handling

Scenario Validation System Response User Message / Action
No approved configuration active Version check Matching falls back to deterministic rules only and all demographic candidates go to review Alert to MPI administrator
Matching engine error or timeout — Person creation proceeds as provisional with a duplicate-check-pending flag and a stewardship item "Duplicate check pending."
Configuration change without approval Approval recorded Reject activation "Approval required to activate matching configuration."

11. State and Lifecycle Behaviour

Matching creates identity match records in the state determined by FR-ADM-MPI-003. Matching configuration versions follow the lifecycle draft, approved, effective, superseded (CFG-002).

12. Audit Requirements

Each match decision is recorded with the configuration version, score and evidence. Configuration changes are audited with before and after values, approver and effective date.

13. Security and Privacy Requirements

Match evidence exposes demographic data of two persons and is restricted to identity stewards. Use of national identifiers and other attributes for matching is subject to the lawful-availability condition of ADM-003 and to the deployment's privacy impact assessment (PRS 10.4).

14. Acceptance Criteria

  • AC-01: Given two records with the same national identifier under the same assigning authority and consistent demographics, when matching runs, then a deterministic match is recorded with its rule identifier.
  • AC-02: Given two records that differ by a transposed date of birth and a spelling variant of the family name, when matching runs, then a probabilistic score is produced and the evidence lists each attribute comparison.
  • AC-03: Given an identity steward opens a match, when the evidence is displayed, then score, rules, contributing attributes and model version are visible.
  • AC-04: Given a new configuration version, when it is benchmarked, then the report states performance against adjudicated local data and production matching is unchanged until the version is approved and effective.

15. Dependencies and Integration

16. Open Questions / Assumptions

  • ADM-004 is a Should; ADM-003 and PAT-004 are Must. The requirement is Must; the specific techniques named in ADM-004 remain optional.
  • Matching follows the identity policy (PRS 28.1 "Identity matching governance"; DEC-ADM-002, resolved 2026-11-17): an exact NIK with an agreeing date of birth is "likely the same person"; otherwise matching is probabilistic on name (tuned for single and reordered Indonesian names), date of birth, sex, mother's name, phone and address. Weights and thresholds are set by tuning on a sample of the legacy data before go-live.
  • An adjudicated local reference data set is assumed to be available for validation (ASM-ADM-002).

Requirement FR-ADM-MPI-003: Decision bands, restricted automatic merge and routing to human review

Attribute Description
Requirement ID FR-ADM-MPI-003
Requirement Name Decision bands, restricted automatic merge and routing to human review
Requirement Type Functional
Module Enterprise MPI and identity matching
Functional Area FA-ADM-002 Matching engine and decision bands
Priority Must
Criticality Critical
Requirement Status Draft
Source PAT-005, ADM-005; PRS section 28 (automatic MPI merge caution)
Related Business Rule BR-ADM-001, BR-ADM-002
Related Workflow WF-ADM-001, WF-ADM-002

1. Requirement Statement

The system shall classify every match result into one of three decision bands (high-confidence link, quarantine for manual review, non-match), shall route potential duplicate, twin, newborn and uncertain matches to human review, and shall restrict automatic merge to validated high-confidence cases permitted by approved policy.

2. Business Rationale

A false merge combines two patients' records and is a direct patient safety hazard. The PRS requires that no unresolved duplicate or uncertain merge is silently applied (PRS 1.2).

3. Actors and Permissions

Actor Permission Conditions
System Create (link, review item) According to band and policy
Identity steward Approve (merge, non-match) For items in the review band
HIM / registration governance Approve (thresholds and automatic-merge policy) Through governed configuration

4. Preconditions - Approved upper and lower thresholds and an automatic-merge policy are effective.

5. Trigger - A match result is produced by FR-ADM-MPI-002.

6. Functional Behaviour

  1. A score at or above the upper threshold is placed in the high-confidence band; a score between the lower and upper thresholds in the review band; a score below the lower threshold in the non-match band.
  2. In the high-confidence band, the system links or merges automatically only if the automatic-merge policy permits it for the matching rule and no exclusion flag applies; otherwise it creates a review item.
  3. Exclusion flags force review regardless of score: possible twin or multiple birth (same date of birth and address or family name with different given names), newborn records, records with alias or changed-name indicators, unidentified-patient records, and any pair previously adjudicated as non-match.
  4. In the review band, the system creates a stewardship work item and applies no link.
  5. In the non-match band, the system creates no link and retains the result for audit.
  6. The system explains each band decision: thresholds in force, score, and the flag or policy that determined the route.
  7. During registration, a review-band or flagged candidate is shown to the clerk as a possible duplicate prompt (FR-ADM-REG-003).

7. Input Requirements

Input Field Data Type Mandatory Validation Description
Match result Record Yes From an approved configuration version Score and evidence
Upper and lower thresholds Numeric Yes Lower < upper; approved and versioned Band boundaries
Automatic-merge policy Configuration Yes Approved Rules for which automatic merge is permitted; may be "none"

8. Processing Rules

Rule ID Processing Rule Expected Result
PR-MPI-003-1 Exclusion flag present Review item created even when the score is in the high-confidence band
PR-MPI-003-2 Pair previously adjudicated as non-match Not merged automatically; re-queued only if matching-relevant data changed
PR-MPI-003-3 Automatic merge applied Executed through the same merge operation as FR-ADM-MPI-005, so that it is reversible and audited

9. Output Requirements

Output Format Recipient Description
Band decision Stored record MPI Band, thresholds, flags, policy reference
Review work item Task Stewardship workqueue With evidence and priority
Duplicate prompt Screen prompt Registering user Candidate persons for confirmation

10. Validation and Error Handling

Scenario Validation System Response User Message / Action
Thresholds missing or invalid Lower < upper; approved No automatic merge; all candidates above the lower default go to review Alert to MPI administrator
Workqueue service unavailable — Review item is persisted locally and submitted when the service returns; no merge is applied None to the clerk; operational alert

11. State and Lifecycle Behaviour

Creates identity match records in Pending review, Linked / Merged or Non-match (section 4.3).

12. Audit Requirements

Every band decision and every automatic merge is audited with score, thresholds, policy version and flags. Automatic merges are listed in a periodic report for steward sampling.

13. Security and Privacy Requirements

Changing thresholds or the automatic-merge policy requires a privileged, approved configuration change. Review items are visible only to identity stewards.

14. Acceptance Criteria

  • AC-01: Given twins with the same date of birth, address and family name and different given names, when the second is registered, then no merge is applied and a review item is created.
  • AC-02: Given a newborn record and the mother's record with shared contact data, when matching runs, then the records are not merged.
  • AC-03: Given a patient whose legal name changed and who registers under the new name, when matching scores the pair in the review band, then a review item is created and both records remain separate until a steward decides.
  • AC-04: Given the automatic-merge policy is set to "none", when a pair scores above the upper threshold, then a review item is created and no merge occurs.
  • AC-05: Given any band decision, when a steward opens it, then the thresholds, score and the reason for the route are shown.

15. Dependencies and Integration

16. Open Questions / Assumptions

  • The PRS states that automatic MPI merge requires clinical and privacy risk assessment and local validation and that supplied thresholds are starting points only (PRS section 28). No threshold values are given in the sources; the starting weights and bands are set in CFG-ADM-001 and CFG-ADM-002 and are re-tuned on the legacy data before go-live. DEC-ADM-002 (resolved 2026-11-17) sets the policy: there is no automatic merge or link at go-live and every possible match goes to a steward; identity stewards in HIM hold merge authority, a second person approves when both records hold clinical activity, and the Head of HIM approves an unmerge.

Requirement FR-ADM-MPI-004: Identity stewardship workqueues

Attribute Description
Requirement ID FR-ADM-MPI-004
Requirement Name Identity stewardship workqueues
Requirement Type Functional
Module Enterprise MPI and identity matching
Functional Area FA-ADM-003 Identity stewardship and merge/unmerge
Priority Must
Criticality High
Requirement Status Draft
Source ADM-006; DAT-005 (contributes)
Related Business Rule BR-ADM-001
Related Workflow WF-ADM-002

1. Requirement Statement

The system shall provide workqueues for uncertain matches, duplicate candidates, merge and unmerge requests and demographic reconciliation, in which items are assigned, resolved with a recorded reason and outcome, and reported by age.

2. Business Rationale

Human review is the control that makes probabilistic matching safe. Unmanaged queues leave duplicates and ambiguities in live use.

3. Actors and Permissions

Actor Permission Conditions
Identity steward Read, Update (claim, resolve, defer) Items for permitted facilities
Registration supervisor / HIM lead Read, Update (assign, reassign, escalate) All items
Registration / admission clerk, clinicians Create (duplicate report, merge or unmerge request) From a patient record

4. Preconditions - Queue definitions and assignment rules are configured.

5. Trigger - A review-band match, an exclusion-flag match, a manually reported duplicate, a merge or unmerge request, a conflicting demographic update from an interface, or a failed identity reconciliation.

6. Functional Behaviour

  1. The system creates a work item of the appropriate type with links to the records concerned, evidence, source and priority.
  2. Items are assigned by rule (for example by facility) or claimed; reassignment is recorded.
  3. The steward resolves the item with one of the outcomes of WF-ADM-002 and a resolution reason from a governed list, with optional free text.
  4. Items that involve a patient with an open encounter are prioritized above others.
  5. Items not resolved within the configured age threshold are escalated to the HIM lead.
  6. The system reports queue volume, aging, assignment, resolution reason and outcome by item type, facility and period.

7. Input Requirements

Input Field Data Type Mandatory Validation Description
Item type Code Yes Uncertain match, duplicate candidate, merge request, unmerge request, demographic reconciliation Classifies the item
Person references Reference(s) Yes Existing enterprise identifiers Records concerned
Resolution outcome Code On resolution Governed list: same person – merge; different persons; not enough information – defer (with a review date). No link outcome in release 1 (DEC-ADM-002) Decision
Resolution reason Code and text On resolution Reason code mandatory Justification

8. Processing Rules

Rule ID Processing Rule Expected Result
PR-MPI-004-1 An open item already exists for the same pair No second item; new evidence is appended
PR-MPI-004-2 Item age exceeds the threshold Escalation task and indicator on the queue
PR-MPI-004-3 Resolution without reason code Rejected

9. Output Requirements

Output Format Recipient Description
Workqueue view Screen Identity stewards Filterable list with age and priority
Queue metrics Events and report (delivered by Domain 8) HIM lead, data governance Aging, assignment, resolution reason, outcome

10. Validation and Error Handling

Scenario Validation System Response User Message / Action
Item resolved by another steward meanwhile Version check on save Reject the second save "This item was already resolved."
Referenced person since merged Link check Item updated to the surviving identity Informational note on the item

11. State and Lifecycle Behaviour

Work items move through open, assigned, deferred and resolved. Resolution drives the identity match state (section 4.3).

12. Audit Requirements

Creation, assignment, viewing, deferral and resolution of each item are audited with actor, time, reason and outcome.

13. Security and Privacy Requirements

Access is limited to identity stewards and HIM supervisors. Items expose two persons' demographics and are Confidential.

14. Acceptance Criteria

  • AC-01: Given a review-band match, when it is produced, then a work item appears in the queue with evidence attached.
  • AC-02: Given an item, when a steward resolves it, then outcome and reason code are mandatory and are stored.
  • AC-03: Given items older than the configured threshold, when the queue report is produced, then aging, assignment, resolution reason and outcome are reported.
  • AC-04: Given an open item for a pair, when the same pair is matched again, then no duplicate item is created.

15. Dependencies and Integration

16. Open Questions / Assumptions

  • ADM-006 calls these "HIM workqueues". The queues are specified here because the MPI is a Domain 1 module; the stewards are HIM staff. Whether the queue user interface is hosted in the Domain 6 HIM workbench or in the Domain 1 registration workspace is an open decision (DEC-ADM-003).
  • The age threshold for escalation is not given in the sources; the default is 2 working days, 4 hours for a high-risk pair (CFG-ADM-006).

Requirement FR-ADM-MPI-005: Reversible merge and unmerge

Attribute Description
Requirement ID FR-ADM-MPI-005
Requirement Name Reversible merge and unmerge
Requirement Type Functional
Module Enterprise MPI and identity matching
Functional Area FA-ADM-003 Identity stewardship and merge/unmerge
Priority Must
Criticality Critical
Requirement Status Draft
Source PAT-006, ADM-007, ADM-011 (patient merge event)
Related Business Rule BR-ADM-005, BR-ADM-012
Related Workflow WF-ADM-002

1. Requirement Statement

The system shall merge two person records and shall reverse a merge under controlled authority, preserving original PINs, source-system identifiers, clinical authorship, audit history and provenance, so that clinical and financial histories remain intact after both merge and unmerge.

2. Business Rationale

Duplicates must be consolidated to give one longitudinal record, and an incorrect merge must be undone without losing or misattributing records.

3. Actors and Permissions

Actor Permission Conditions
Identity steward Execute merge Holds merge authority; the sign step applies. A second person approves in place (CUX-64) when both records hold clinical activity or the pair is high-risk (DEC-ADM-002)
Head of HIM (Domain 6) Execute unmerge Only the Head of HIM; the sign step applies
System Execute automatic merge Only under FR-ADM-MPI-003 policy
Other roles Request Request creates a work item only

4. Preconditions - Both person records exist and are not already merged into each other. - For unmerge, the merge event exists and has not been reversed.

5. Trigger - A steward decision in the workqueue, or a policy-permitted automatic merge.

6. Functional Behaviour

  1. Merge designates a surviving enterprise identity. The retired identity is kept with status "merged" and a link to the survivor; it is not deleted and its enterprise identifier is not reused.
  2. All identifiers of the retired identity, including facility PINs and source-system identifiers, are linked to the survivor and keep their assigning authority and original values.
  3. Demographic versions of both records are kept. The survivor's current demographics are those selected by the steward per attribute; nothing is overwritten.
  4. The system records an append-only merge event: survivor, retired identity, reason, approver, timestamp, evidence reference and, later, reversal reference.
  5. The system publishes a merge event and the corresponding ADT patient-merge message so that downstream domains re-point their patient references; downstream records keep their original authorship and source identifiers.
  6. Unmerge restores the retired identity to active status with its original identifiers and demographic history and publishes an unmerge event.
  7. For records created after the merge, the system presents them for attribution to one of the two identities. Administrative records owned by Domain 1 are attributed by the steward; records owned by other domains are attributed by those domains on receipt of the unmerge event, with clinical confirmation where the owning domain requires it.
  8. The system tracks acknowledgement of merge and unmerge events by each subscribed consumer and reports unacknowledged consumers on the reconciliation worklist.
  9. Cross-domain unmerge procedure (closed 17 Nov 2026, GAP-ADM-002). Records that existed before the merge return to their original identity with the unmerge, because every record keeps its source identifiers. Records created after the merge follow their encounter:
  10. On the unmerge panel the steward attributes each post-merge encounter and appointment to one of the two identities, using the registration evidence (identity document or NIK checked, wristband, signed general consent, who presented). Each attribution is a patient correction of the encounter and is published as EncounterCorrected (EVT-ADM-026) with the reason "Reattributed after unmerge" and the reference of the unmerge; external systems receive an A08 update.
  11. Unmerge items are high-risk: attribution is due within 4 hours (CFG-ADM-006). Until an encounter is attributed, the banner of both identities shows "Identity under review after unmerge" and the encounter is valid for care only after positive patient identification.
  12. Each consuming domain moves the records it holds under an attributed encounter (CIN) with that encounter, without a separate decision. Records it holds with no encounter go to its own review: clinical entries, allergies, problems and medications to the responsible clinician with pharmacy (Domain 3); specimens, results and images to the laboratory or radiology lead (Domain 4); invoices, deposits and payments to the billing supervisor, where an issued invoice is credited and reissued under the right person and never edited (Domain 5); documents, coding, deficiencies and disclosures to HIM (Domain 6); portal messages and proxy access to portal support (Domain 7). Domains 8 and 9 rebuild from the events.
  13. Where a clinical item may have been acted on for the wrong person (allergy, blood group, result, administered medication), the responsible clinician reviews it, the care teams of both patients are informed, and a patient-safety incident is reported.
  14. Consumers acknowledge PatientUnmerged and each EncounterCorrected through the inbox mechanism (ASM-ADM-004) within the CFG-ADM-012 timeouts, and close their review items within 2 working days. The reconciliation worklist shows open items by domain. The unmerge work item is closed only when every item is closed, and the Head of HIM signs it off.

7. Input Requirements

Input Field Data Type Mandatory Validation Description
Surviving person Reference Yes (merge) Active identity Record that remains current
Retired person Reference Yes (merge) Active identity, different from survivor Record to be merged
Merge event Reference Yes (unmerge) Not already reversed Merge to reverse
Reason Code and text Yes Governed list Justification
Second person Workforce identity, authenticated in place Conditional Required when both records hold clinical activity or the pair is high-risk; different from the executor (CUX-64) Second approval

8. Processing Rules

Rule ID Processing Rule Expected Result
PR-MPI-005-1 Both records hold a PIN from the same assigning authority Both PINs are retained and linked; one is marked as preferred for that facility
PR-MPI-005-2 Both records have open encounters Encounters are retained separately under the survivor; they are not combined
PR-MPI-005-3 Unmerge with post-merge records Records are held for attribution; none is attributed by default
PR-MPI-005-4 Merge or unmerge commits The state change and the outgoing event are committed together (transactional outbox)

9. Output Requirements

Output Format Recipient Description
Merge / unmerge event Domain event; HL7 v2 ADT A40 or agreed equivalent Subscribed domains and external systems Survivor, retired identity, identifiers, effective time
Merge history Screen / report Identity stewards, auditors Append-only list of merges and reversals for a person

10. Validation and Error Handling

Scenario Validation System Response User Message / Action
Merge of a record with itself, or of an already merged record State check Reject "Record is already merged."
User lacks merge authority Authorization Reject; offer to create a request "Merge authority required. A request has been created."
Consumer does not acknowledge Acknowledgement tracking Item on reconciliation worklist; controlled replay Operational worklist entry
Unmerge attribution incomplete Open attribution items Unmerge takes effect; outstanding items remain visible until resolved "N records await attribution."

11. State and Lifecycle Behaviour

Person identity status changes between active and merged. Merge events are append-only; reversal adds a new event that references the original.

12. Audit Requirements

Merge, unmerge, each attribute selection and each attribution decision are audited with actor, approver, time, reason and before and after links. The audit history of both identities remains complete after merge and after unmerge.

13. Security and Privacy Requirements

Merge authority is a distinct privilege subject to access recertification (SEC-004). Merges involving restricted or sensitive records follow Domain 10 policy.

14. Acceptance Criteria

  • AC-01: Given two records each with encounters and identifiers, when they are merged, then one enterprise identity is current and all original PINs, source identifiers and encounters are retrievable under it.
  • AC-02: Given a completed merge, when it is unmerged, then both identities are active with their original identifiers and no source record or authorship is lost.
  • AC-03: Given a merge, when the event is published, then each subscribed consumer's acknowledgement is tracked and a missing acknowledgement appears on the reconciliation worklist.
  • AC-04: Given records created after a merge, when the merge is reversed, then those records are presented for attribution and none is attributed automatically.
  • AC-05: Given a user without merge authority, when a merge is attempted, then it is rejected and audited.

15. Dependencies and Integration

  • Upstream dependencies: FR-ADM-MPI-004.
  • Downstream dependencies: Domains 3, 4, 5, 6, 7, 8 and 9 re-point patient references on merge and unmerge events.
  • Required events or APIs: EVT-ADM-005 PatientMerged, EVT-ADM-006 PatientUnmerged; IF-ADM-004 (ADT A40 or agreed equivalent).

16. Open Questions / Assumptions

  • Each consuming domain is assumed to implement merge and unmerge handling for the records it owns (ASM-ADM-003). The sources define no cross-domain procedure for post-merge records at unmerge; part 6 item 9 sets it from common practice (GAP-ADM-002, closed 17 Nov 2026).

← 5. Detailed Functional Requirements | Contents | Identifier index | 5.2 Module Specification: Patient Registration and Demographic Management →