This query/response is designed for interaction between a client system and an MPI (Master Person Index). The query consists of an identifier for a person, and the response of the demographics for that person.
MSH-15 | MSH-16 | Immediate ACK | Application Ack |
---|---|---|---|
Blank | Blank | - | RSP^K22^RSP_K22 |
Blank | Blank | - | RSP^K23^RSP_K23 |
Blank | Blank | - | RSP^K25^RSP_K25 |
Blank | Blank | - | RSP^K32^RSP_K32 |
Blank | Blank | - | RSP^K2^4^RSP_K24 |
Blank | Blank | - | RSP^K21^RSP_K21 |
NE | NE | - | - |
NE | NE | - | - |
NE | NE | - | - |
NE | NE | - | - |
NE | NE | - | - |
NE | NE | - | - |
AL, SU, ER | NE | ACK^Q23^ACK | - |
AL, SU, ER | NE | ACK^Q22^ACK | - |
AL, SU, ER | NE | ACK^Q24^ACK | - |
AL, SU, ER | NE | ACK^Q32^ACK | - |
AL, SU, ER | NE | ACK^Q21^ACK | - |
NE | AL, SU, ER | - | RSP^K25^RSP_K25 |
NE | AL, SU, ER | - | RSP^K22^RSP_K22 |
NE | AL, SU, ER | - | RSP^K21^RSP_K21 |
NE | AL, SU, ER | - | RSP^K23^RSP_K23 |
AL, SU, ER | AL, SU, ER | ACK^Q25^ACK | RSP^K25^RSP_K25 |
NE | AL, SU, ER | - | RSP^K24^RSP_K24 |
NE | AL, SU, ER | - | RSP^K32^RSP_K32 |
AL, SU, ER | AL, SU, ER | ACK^Q22^ACK | RSP^K22^RSP_K22 |
AL, SU, ER | AL, SU, ER | ACK^Q21^ACK | RSP^K21^RSP_K21 |
AL, SU, ER | AL, SU, ER | ACK^Q24^ACK | RSP^K24^RSP_K24 |
AL, SU, ER | AL, SU, ER | ACK^Q32^ACK | RSP^K32^RSP_K32 |
AL, SU, ER | AL, SU, ER | ACK^Q23^ACK | RSP^K23^RSP_K23 |
Segment | Cardinality | Implement | Status |
---|---|---|---|
RSP^K21^RSP_K21 | |||
MSH Message Header |
[1..1] | SHALL | |
ARV Access Restriction |
|||
SFT Software Segment |
|||
UAC User Authentication Credential Segment |
[0..1] | ||
MSA Message Acknowledgment |
[1..1] | SHALL | |
ERR Error |
[0..1] | ||
QAK Query Acknowledgment |
[1..1] | SHALL | |
QPD Query Parameter Definition |
[1..1] | SHALL | |
QUERY_RESPONSE | [0..1] | ||
PID Patient Identification |
[1..1] | SHALL | |
PD1 Patient Additional Demographic |
[0..1] | ||
ARV Access Restriction |
B | ||
NK1 Next of Kin / Associated Parties |
|||
QRI Query Response Instance |
[1..1] | SHALL | |
DSC Continuation Pointer |
[0..1] |
MSH-15 | MSH-16 | Immediate ACK | Application Ack |
---|---|---|---|
Blank | Blank | - | - |
NE | NE | - | - |
AL, SU, ER | NE | ACK^K21^ACK | - |
Following is an example of a Q21/K21 query/response pair of messages. First is the query:
MSH|^~\&|CLINREG|WESTCLIN|HOSPMPI|HOSP|199912121135-0600||QBP^Q21^QBP_Q21|1|D|2.5
QPD|Q21^Get Person Demographics^HL7nnn|111069|112234^^^GOOD HEALTH HOSPITAL|^^^ GOOD HEALTH HOSPITAL~^^^SOUTH LAB|
RCP|I|
This query is asking for demographics for the person identified by the identifier 112234 from the assigning authority GOOD HEALTH HOSPITAL. With the demographics, we want identifiers returned for the person from the assigning authorities GOOD HEALTH HOSPITAL and SOUTH LAB. Here is a sample response:
MSH|^~\&|HOSPMPI|HOSP|CLINREG|WESTCLIN|199912121135-0600||RSP^K21^RSP_K21|1|D|2.5|
MSA|AA|8699|
QAK|111069|OK|Q21^Get Person Demographics^HL7nnn|1|
QPD|Q21^Get Person Demographics^HL7nnn|111069|112234^^^GOOD HEALTH HOSPITAL|^^^ GOOD HEALTH HOSPITAL~^^^SOUTH LAB|
PID|||112234^^^GOOD HEALTH HOSPITAL~98223^^^SOUTH LAB||Everyman^Adam||19600614|M||C|2101 Webster # 106^^Oakland^CA^94612|
QRI|100|