The Path
Module 5 · The integrator’s job·11 min
Patient identity: PIX and PDQ
One patient, several numbers: assigning authority, master index and IHE profiles.
Marie Dubois has at least two numbers at the Leleux Clinic. The patient record knows her as 1024. The sleep lab software, installed before the integration, created her as P-55821. Both are right, each in its own world. The real trouble starts when a result has to travel from one to the other.
Here is Marie as each of the two systems sees her. Click PID-3 in both messages and compare.
The patient record announces Marie Dubois’s arrival. It only knows its own number, with an authority described by a made-up OID.
The next morning, the lab sends the night’s result to the patient record. It only knows its own number.
Same name, same date of birth, two numbers. The patient record receives P-55821 and has no idea which record it belongs to. The rest of this lesson answers that question.
The domain and its authority
The mapping lesson taught you to pick an identifier by its authority and type. Now we go further: who guarantees that two numbers point to the same person?
Every system that hands out numbers forms an identifier domain. Within a domain, a number points to one person only. Across two domains, the same number can point to two different people.
Chapter 3 of v2.5.1 is clear about this. The assigning authority (CX-4) must be unique across the site. It becomes mandatory as soon as more than one application assigns patient numbers. And the standard strongly recommends filling in the authority and the type in every CX field.
CX-4 has the HD data type, with three subcomponents separated by &:
| Subcomponent | In the example | Role |
|---|---|---|
| Namespace ID | LELEUX |
Short, readable, local name |
| Universal ID | 1.2.3.4.5 |
Globally unique identifier, here a made-up OID |
| Universal ID Type | ISO |
Says the universal ID is an OID |
The short name is enough inside one clinic. Once numbers travel between organisations, the OID keeps two “LELEUX” from being confused.
The identifier type: table 0203
CX-5 says what kind of number it is. You already know MR, PI and PT from the mapping lesson. Two more values from table 0203 matter for identity:
| Code | Meaning |
|---|---|
| NI | National unique individual identifier |
| NNxxx | National person identifier, xxx = three-letter ISO 3166 country code |
So for a Belgian national number, the table gives NNBEL. The code NN on its own does not exist. Check with the project what you are allowed to send around: a national number is sensitive data.
The master index: who links the numbers?
When each system has its own number, you need one system that knows 1024 at LELEUX and P-55821 at SLEEPLAB are the same person. That is the master patient index (MPI, or EMPI across a hospital group), which you met in the mapping lesson. The standard itself defines a query made for it: QBP^Q23, “Get Corresponding Identifiers”.
IHE turned that need into a profile: PIX (Patient Identifier Cross-referencing).
IHE PIX: three actors, three transactions
| Actor | Role |
|---|---|
| Patient Identity Source | Assigns the numbers of its domain and announces them |
| PIX Manager | Receives identities, decides which belong together, keeps the links |
| PIX Consumer | Asks the question (ITI-9); can, as an option, receive changes (ITI-10) |
| Transaction | Message | HL7 base |
|---|---|---|
| ITI-8 Patient Identity Feed | ADT A01, A04, A05, A08, and A40 for merges |
2.3.1 |
| ITI-9 PIX Query | QBP^Q23^QBP_Q21, answered by RSP^K23^RSP_K23 |
2.5 |
| ITI-10 PIX Update Notification | ADT^A31^ADT_A05 |
2.5 |
The PIX Manager links identities, it does not fix them. The IHE technical framework says so plainly: data quality stays the job of the sources. If registration types in a wrong date of birth, no algorithm will repair it.
Patient record
identity source
Master index
PIX Manager
Sleep lab
source and consumer
- ADT^A04 · 1024 LELEUX
- ACK · AA
- ADT^A04 · P-55821 SLEEPLAB
- QBP^Q23
- RSP^K23 · OK
- ADT^A31
Reading the answer
Here is the PIX Manager’s answer to the lab’s question. Note MSH-12 = 2.5: IHE pins ITI-9 to version 2.5. Do not “fix” it to 2.5.1.
The master index answers the sleep lab: P-55821 at SLEEPLAB matches 1024 at LELEUX.
Three details IHE requires:
QPDis echoed from the question:QPD-3holds the known identifier,QPD-4the wanted domain, reduced to its authority. An emptyQPD-4means “all domains”.PID-3only holds the matching numbers, never the one from the question.PID-5is empty on purpose: first repetition empty, second with only the name typeS(pseudonym). The index does not pick between names that differ from one domain to another.
If the number is known but has no match, it is AA with QAK-2 = NF and no PID. If something is unknown, the answer becomes an error: MSA-1 = AE, QAK-2 = AE, no PID, and an ERR with code 204 (Unknown key identifier). ERR-2 points to the exact spot:
| What is unknown | ERR-2 |
|---|---|
| The number, in a known domain | QPD^1^3^1^1 (the number in QPD-3) |
| The domain of the number sent | QPD^1^3^1^4 (the authority in QPD-3) |
| A requested domain | QPD^1^4^n (repetition n of QPD-4) |
Here is the answer when the lab sends a mistyped number. Compare it with the previous one.
The lab asks for P-58812, a number the master index does not know in the SLEEPLAB domain.
IHE PDQ: searching by demographics
PIX starts from a number. PDQ (Patient Demographics Query) starts from what you know about the person: name, date of birth, sex. Two actors, the Patient Demographics Consumer and the Patient Demographics Supplier, and one transaction, ITI-21: QBP^Q22, answered by RSP^K22, on an HL7 2.5 base. QPD-1 is IHE PDQ Query and criteria are written like @PID.5.1.1^DUBOIS. The queries lesson covers the mechanics, paging included.
Merge or link
When two records describe the same person, there are two strategies. The IHE PAM profile (Patient Administration Management, transaction ITI-30, HL7 2.5) has its own actors, the Patient Demographics Supplier and the Patient Demographics Consumer. Each must support at least one of two options, Merge or Link/Unlink:
| Strategy | Event | Effect |
|---|---|---|
| Merge | ADT^A40^ADT_A39 |
The number in MRG-1 disappears in favour of the one in PID-3 |
| Link | ADT^A24^ADT_A24 |
Both records stay, declared as the same person |
| Unlink | ADT^A37^ADT_A37 |
Undoes a link made by mistake |
A merge is hard to undo. A link is undone with an A37. So when in doubt, linking is safer than merging. In PIX, the only merge is the A40 in the ITI-8 feed. The mapping lesson shows what a receiver must do with an A40.
And in FHIR?
The identifier becomes Patient.identifier, with a system (the authority, for example urn:oid:1.2.3.4.5) and a value. A merge shows up in Patient.link. IHE also publishes FHIR versions of these profiles: PIXm and PDQm.
Check your understanding
1 of 5PID-3 holds 1024^^^LELEUX^MR. What does CX-4, LELEUX, tell you?
+50 XPPass the quiz (4 correct answers) to complete the lesson.
Reviewed and checked on 28 September 2026