MAPPING
MSH Segment
MSH.1 Field Separator “|”
MSH.2 Encoding Characters “^~\&”
MSH.3 Sending Application “EAI”
MSH.4 Sending Facility “HAHO”
MSH.5 Receiving Application “PMS”
MSH.6 Receiving Facility Example: “UCH”
MSH.7 Date/Time Of Message Format: YYYYMMDDhhmmss
Example: 20080915175614
MSH.9.1 “ORU”
MSH.9.2 “R01”
MSH.10 Message Control ID Timestamp + sequence no.
Format: YYYYMMDDHHMMSS + nnnnnn
MSH.11
“P”: Production
“D”: Debugging
“T”: Training
MSH.12 Version ID “2.3.1”
MSH.15 “AL”
MSH.16 “AL”
MSH.17 Country Code “HKG”
MSH.18 Character Set “ASCII”
MSH.19 Principal Language Of Message “ENG”
PID Segment
PID.1 Set ID – PID “1”
PID.3 Patient Identifier List
PID.3.1
hkid Example: A1234563
patient_key
PID.3.5 “HKID” or “PATKEY”According to value of PID.3.1
PID.5 Patient Name
PID.5.1 patient_family_name Exmaple: “CHAN”
PID.5.2 patient_given_name Exmaple: “TAI MING DAVID”
PID.7 Date/Time of Birth dob Format: YYYYMMDD
Exmaple: 19830114
PID.8
“F”- Female
“M”- Male
“O”- Other
“U”- Unknown
PV1 Segment
PV1.1 “1”
PV1.2 Patient Class
E – Emergency
I – Inpatient
O – Outpatient
P – Preadmit
R - Recurring patient
B – Obstetrics
PV1.3.4 hospital_cd Exmaple: “QMH”
OBR Segment
OBR.4.1 in_profile_cd
OBR.4.4 profile_group
OBR.6 Requested Date/Time
OBX Segment
OBX.2 Value Type “CE”
OBX.3 Observation Identifier
OBX.3.1 entity_ID
OBX.3.2 display_name
OBX.3.3 “HA”
OBX.3.4 item_cd
Allergen code, allergy Manifestation, ADR code, Reaction or Alert code (combine with entity ID to know the record type)
D - Structured Drug Allergy: 100109
M - Allergy Manifestation: 100109
O - Other Drug Allergy: 100109
N - No known drug allergy: 100109
P - Previous CMS allergy records: 100109
G - Structured allergen group: 100109
X - Non-drug allergy: 100109
N - Non-drug allergy: 100111
D - Adverse Drug Reaction (Structured Drug): 100110
O - Adverse Drug Reaction (Non-structured Drug): 100110
R - Reaction: 100110
D - Free text ADR records: 100110
A - Alert: 100113
Whenever the item_cd is ‘R’ and ‘M’, they are the reaction of an Adverse Drug Reaction and Manifestation of an Allergy with the same record_key respectively
OBX.4 Record Key
OBX.5 Observation Value
OBX.5.1 ePR display result
OBX.5.2 ePR display result
OBX.5.4 severity_indicator
0 - Suspected (allergy)
1 - Certain (allergy)
2 – Undefined (Previous entered Allergy)
3 - Mild (ADR)
4 - Severe (ADR)
OBX.14 Date/Time of the Observation ref_date_dtm Update datetime
NTE Segment
NTE.3 Comment add_info Remark for allergen or ADR