Patient matching and MPI feed
Feed a master patient index from ADT, apply merges, and match incoming patients to one enterprise identity. Planned.
PlannedThis page describes what's coming, not working steps.
When several systems register the same person, each gives them its own medical record number. A master patient index (MPI) links those records to one enterprise identity, and every interface needs to apply the same links, including merges when two records turn out to be one person. This recipe will keep an MPI fed from ADT, apply merges downstream, and look up the enterprise identifier as messages pass through.
Source and destination
The intended flow sends registrations and merges to the MPI, and stamps the enterprise identifier on messages bound for other systems.
flowchart LR
A[Registration systems] -->|ADT incl. merges| B[MedHook engine]
B -->|register or merge| C[MPI]
C -->|enterprise ID| B
B -->|message with enterprise ID| D[Downstream systems]- Source: HL7v2 ADT, including A04, A08, A28, A31 and the merge events A34, A40 and A47.
- Destination: an MPI over HL7v2, FHIR (
Patient/$match) or its own API, and the downstream systems.
What exists today
- The HL7v2 to FHIR transform can write the Patient as a conditional create keyed on the PID-3 identifier and its assigning authority, so a repeated message does not create a second Patient. That is identifier matching, not demographic matching.
- Merges (MRG with A34, A40, A47 and similar) are not applied. The step warns.
- Code tables can hold a fixed identifier crosswalk, and an SQL lookup step can read an identifier from a PostgreSQL, SQL Server, MySQL or Oracle table during a run. There is no matching step against an external MPI.
- Generic REST and
fhir-restcan call an MPI's API from a step.
What's coming
- Merge handling: apply MRG events to FHIR Patient links and pass them on to downstream systems.
- A lookup step that asks the MPI for the enterprise identifier during a run.
- FHIR
Patient/$matchsupport for MPIs that offer it. - A built-in template and a guide.
Status
Planned. It needs wider HL7v2 to FHIR coverage, including merges, and a lookup against an external MPI, which the engine does not have yet.