A master patient index (MPI) is the system that decides which patient each record belongs to and gives that person one ID across your sources. An enterprise master patient index (EMPI) does the same job across several hospitals or organizations, each with its own record numbers.
The job gets hard when a product connects to a second health system. The patient you already know arrives with a different medical record number (MRN), a shortened first name or last year’s address, and your software has to decide whether this is the same person. This guide covers how matching works, where it breaks across EHRs, what FHIR and HL7 v2 already give you, and the four ways to get an MPI, including building one into the data platform behind your healthcare data integration services.
What is a master patient index (MPI)?
An MPI keeps one enterprise ID per person and a crosswalk from that ID to every identifier your sources use: the MRN at each hospital, a payer member ID, your own app’s user ID. It does not hold the clinical record. It tells the systems that do which records belong to the same person, so a lab result from one hospital and a visit note from another land in one patient view.
Matching runs on demographics. The common fields are first and last name, date of birth, Social Security number and address, with phone and email used less often (Pew, October 2018, p. 6). Certified EHRs expose a defined set of these demographic elements through their APIs, listed in the USCDI v3 demographic data elements.
| Master patient index (MPI) | Enterprise MPI (EMPI) | Master person index | |
|---|---|---|---|
| Scope | One organization’s own systems | Several hospitals, clinics or organizations | The same idea used for people who aren’t only patients (members, citizens) |
| Typical owner | The hospital’s HIM team | The health system, network or data platform | A government agency, payer, HIE or client registry |
| What it solves | Duplicates inside one EHR | One person across many record numbers | One person across programs |
Research datasets need this too. Before records from several sites go into a common data model, each person needs one ID, which is why patient matching sits upstream of FHIR to OMOP conversion.
Why duplicate and unlinked patient records are costly
Matching fails in two directions. A false merge puts two people in one record, so a clinician can act on someone else’s allergies or diagnoses. A false split leaves one person in two records, so results go missing and tests get repeated.
The numbers are older than they should be, because few organizations measure this well. Pew’s 2018 report collected the best available estimates:
- Matching within one facility can be as low as 80%, an estimate from the College of Healthcare Information Management Executives (CHIME), cited in a 2012 Bipartisan Policy Center brief.
- Between organizations, Audacious Inquiry’s work for the Office of the National Coordinator for Health IT (ONC) found match rates as low as 50%, even between organizations on the same EHR vendor (ONC Patient Identification and Matching Final Report, 2014).
- A 2016 study in Perspectives in Health Information Management found 4% of confirmed duplicate records led to negative clinical care.
- ONC’s 2015 interoperability roadmap set goals of under 2% duplicate records within a facility by the end of 2017 and 0.01% by 2024. Both dates have passed, and Pew noted that available analyses show the industry falling short.
All four figures are summarized in Pew, October 2018, p. 3, with the original studies in its endnotes. The same page adds that facilities guard hard against false merges, so failing to link is the more common problem, and most organizations can’t state their true match rate because they don’t know every record that should have been linked. So measure both error types on a sample someone has reviewed by hand, and treat a low duplicate count with suspicion until you have.
When a deterministic link is enough, and when to build matching
Many products can link patients exactly before they need any scoring. If a health system sends a roster or attribution file that carries its own MRN for each patient, you store that MRN and the link is certain. If patients sign in through the health system’s patient portal with a SMART on FHIR app, the launch hands your app that system’s patient ID (SMART App Launch), which is also an exact link.
Probabilistic matching earns its cost when exact links run out: records arrive without a shared identifier, the same person shows up from several sources, or someone signs up directly in your app. Two other routes exist outside your own platform. Referential matching checks demographics against an outside reference data set, one of the four approaches Pew’s report examined (Pew, October 2018). National networks locate a patient’s records at other organizations through IHE’s Cross-Community Patient Discovery (XCPD) profile.
A quick test for whether to build matching now:
- Do most of your records arrive with an identifier you can trust?
- Do you take data from one source per patient, or several?
- How many unlinked or duplicate records do you see today, and is that number growing?
If the answers are yes, one, and few, start with exact links and design your data model so a matcher can be added later.
How patient matching works, from clean-up to a match decision
Patient matching is a pipeline of five steps, and most accuracy problems start in the first one: most of the causes Pew lists are data capture problems such as inconsistent formats, typos, and missing or default values. It usually runs inside the same jobs that move your data, as part of ETL in healthcare.
- Standardize the data. Put names, dates and phone numbers into one format, handle nicknames and hyphenated surnames, and treat placeholder values as missing data. Addresses deserve extra care: ONC’s Project US@ technical specification (Final Version 1.0, January 2022) defines one way to represent patient addresses because address is among the fields most sensitive to standardization.
- Narrow the candidates. Comparing every record with every other grows with the square of the data: 1 million records make about 500 billion pairs. Matchers first group records by a key such as birth year plus a phonetic code of the surname, then score pairs only inside each group. Production matchers run several passes with different keys and combine the candidates, so a changed surname or a typo in one field doesn’t hide a true match.
- Score each pair. Deterministic matching needs chosen fields to agree, exactly or after normalization. Rules-based matching accepts any of several field combinations. Probabilistic matching estimates how likely two records are the same person: each agreeing field adds weight, each disagreeing field subtracts it, and rarer values count for more. Fellegi and Sunter set out this model in 1969 (Journal of the American Statistical Association), and the weights can be estimated from your own unlabeled data. Pew’s report gives a practical example: a name that is common near a hospital should count for less there than in a region where it is rare.
- Decide. Two thresholds split the scores. Pairs above the upper one link automatically, pairs below the lower one are treated as different people, and the band between goes to a person. Where you set the thresholds is the trade between false merges and false splits.
- Link and keep the history. Attach both source records to one enterprise ID and keep each source record intact, so a wrong link can be undone. Survivorship rules decide which name or address the combined view shows.
Pew describes a Houston health system with 2,488 records named Maria Garcia, 231 of them sharing a birth date, and notes that twins can share a birth date, an address and similar names (Pew, October 2018, p. 5). No threshold settles those on demographics alone, which is why the review band exists.
Here is how the scoring works on three fields, with illustrative probabilities. For each field, m is the chance it agrees when two records are the same person, and u is the chance it agrees by coincidence. An agreement adds log2(m/u) to the score; a disagreement adds log2((1-m)/(1-u)), which is negative.
| Field (illustrative values) | m | u | Agree adds | Disagree adds |
|---|---|---|---|---|
| Birth date | 0.95 | 0.003 | +8.3 | -4.3 |
| Surname | 0.90 | 0.01 | +6.5 | -3.3 |
| ZIP code | 0.80 | 0.05 | +4.0 | -2.2 |
With an upper threshold of 12 and a lower one of 4, a pair that agrees on birth date and surname but not ZIP code scores 12.6 and links. A pair that agrees on birth date and ZIP code but not surname, as after a marriage, scores 9.0 and goes to review. A pair that agrees only on ZIP code scores -3.6 and is rejected. Real deployments use more fields, value-specific weights and thresholds set from a reviewed sample.
| Method | How it decides | Where it works | Where it struggles |
|---|---|---|---|
| Deterministic | Several fields must match exactly | Clean, consistent data | Typos, nicknames, moves |
| Rules-based | Any one of several field combinations matches | Known data patterns | Rules multiply and conflict |
| Probabilistic | Weighted likelihood with two thresholds | Mixed data from many sources | Needs tuning on your population |
| ML-assisted | A model trained on past review decisions suggests pairs | Large review queues | Needs labeled decisions and monitoring |
Machine learning helps most in steps 3 and 4. A model trained on your reviewers’ past decisions can suggest likely pairs and show which fields drove each score, which shortens the queue. It does not set your thresholds, fill fields that registration never captured, or replace the person who approves a merge.
Patient matching in a product connected to several EHRs
Say your product serves patients at Hospital A, which runs Epic, and Hospital B, which runs Oracle Health. The same woman has an MRN at each, and she signed up in your app with a third ID.
Keep every source identifier as a pair of system and value under your enterprise ID, the same shape FHIR uses for Patient.identifier, and store each EHR’s FHIR resource ID separately from its MRN, because they are different identifiers. Don’t reuse one hospital’s MRN as your patient key, because MRNs are unique only inside the hospital that issued them.
HL7 v2 feeds add a timing problem. Each message carries the patient identifier list in its PID-3 field, with an assigning authority (PID-3.4) that tells you which facility issued each number. When a hospital merges two of its own records it typically sends an ADT A40 merge message with the retired identifier in its MRG segment, and that can arrive days after your product has written data under the old MRN. Your platform needs a plan to re-point that data. It also needs one for the day the hospital decides the merge was wrong: that usually arrives as a manual correction or a vendor-specific message, which makes it harder to clean up. The message details are covered in our guide to HL7 integration.
Your enterprise ID has to stay stable while all of this happens underneath it:
- Never reuse an enterprise ID, even after the person it belonged to is merged away.
- When two enterprise IDs turn out to be one person, keep one as the survivor and turn the other into a pointer to it, so old references still resolve.
- When a link turns out to be wrong, split the records and give the separated person a new ID.
- Publish every identity change as an event, so downstream tables, reports and models can re-key. FHIR expresses the same idea with
Patient.linktypes such as replaced-by.
I’d settle who works the review queue before writing any matching code. A seed-stage company rarely has health information management (HIM) staff, so the options are the health system’s HIM team, agreed in the contract; a contracted reviewer with HIM training; or narrower thresholds that send fewer pairs to review and accept more false splits until someone can review them. The queue grows with every poorly registered source you add.
PakarPBN
A Private Blog Network (PBN) is a collection of websites that are controlled by a single individual or organization and used primarily to build backlinks to a “money site” in order to influence its ranking in search engines such as Google. The core idea behind a PBN is based on the importance of backlinks in Google’s ranking algorithm. Since Google views backlinks as signals of authority and trust, some website owners attempt to artificially create these signals through a controlled network of sites.
In a typical PBN setup, the owner acquires expired or aged domains that already have existing authority, backlinks, and history. These domains are rebuilt with new content and hosted separately, often using different IP addresses, hosting providers, themes, and ownership details to make them appear unrelated. Within the content published on these sites, links are strategically placed that point to the main website the owner wants to rank higher. By doing this, the owner attempts to pass link equity (also known as “link juice”) from the PBN sites to the target website.
The purpose of a PBN is to give the impression that the target website is naturally earning links from multiple independent sources. If done effectively, this can temporarily improve keyword rankings, increase organic visibility, and drive more traffic from search results.