MSH
MSH-1--Field separator; Value = “|”
MSH-2--Encoding characters; Value = “^~\&”
MSH-3--Sending Application; Value = Vendor Application Code
Format: Department Code + Vendor + Product Name
MSH-4--Sending Facility Value = Hospital Code
Remarks: For validating HA Case Number
Example: “KWH” “UCH”
MSH-5--Receiving application; Value = “EPR”
MSH-6--Receiving facility; Value = “HAHO”
MSH-7--Date/time of message; Value = Datetime of each message created
Format: YYYYMMDDhhmmss
Example:
20080304122913 MSH-8
MSH-9.1--Message type; Message code: Value = “ORU”
MSH-9.2--Trigger event: Value = “R01”
MSH-9.3--Message structure ID: Value = “ORU_R01”
MSH-10--Message control ID; Value= Non-repeating ID of each message
Format: YYMMDDhhmmss + incremental sequence no (Fill “0” for unfilled digit)
Example: 20120512021700000696
MSH-11--Processing ID; Value =
“D” – Debugging
“P” – Production
“T” – Training
MSH-12--Version ID Value = “2.3.1”
MSH-15--Accept acknowledgement type; Value = “AL”
MSH-16--Application acknowledgement type; Value = “AL”
MSH-17--Country code; Value = “HKG”
MSH-18--Character set; Value = “ASCII”
MSH-19--Principal language of message; Value = “ENG”
HL7 PID Mapping
PID-1 Value = “1”
PID-3 Value = Patient’s HKID
Format:
“HKID:”+ Trimmed HKID without parentheses
Example:
HKID:A1234567
PID-5.1; Value = Family name
Remarks: Exactly the same as HKPMI for Patient Checking
Example: CHAN
PID-5.2; Value = Given name
Remarks: Exactly the same as HKPMI for Patient Checking
Example: TAI MING DAVID
PID-7 Value = Date of birth
Format: YYYYMMDD
Remarks: Exactly the same as HKPMI for Patient Checking
Example: 19330101
PID-8
Value =
“F” – Female
“M” – Male
“U” – Unknown
Remarks: Exactly the same as HKPMI for Patient Checking
HL7 PV1 Mapping
PV1-1 Value = “1”
PV1-2
Value =
“O” – Outpatient
“I” – Inpatient
“A” – A&E Patient
Remarks:
If PV1-19 starts with “OP” = “O”, “HN” =”I”, “AE” = “A”
PV1-3= Theatre Code
Example= OR04
PV1-19 Value: Patient’s trimmed HA case number
Example:
HN123456789
SOPD12345678
AE123456789
PV1-39
Value = Hospital Code of service provider
Example:
“PWH”
“TYH”
HL7 OBR Mapping
OBR-1
Value = “1”
OBR-2
Value = Unique Study Number
Remarks: See Table 1 for specified value for corresponding report type
Use Trimmed OTMS Booking Number
Example: OTB080077088
If no OTMS Booking Number, Value = Unique Study Number
Format: Document-ID (max. 10 digits) || Report Create Year (2 digits) || serial number (8 digits)
Example: 00001001981200045678
OBR-4.1
Value = HA designated Form Entity ID for system or electronic form Remarks:
See Table 2 for corresponding Form Entity ID
OBR-4.2 Value = Name for Form Entity ID
See Table 2 for corresponding Name of Form Entity ID
OBR-6 Value = Request Datetime
Remarks: Observation Datetime (Same as OBR-7) if Request Datetime is not available
Format:
YYYYMMDDhhmmss
OBR-7 Value = Observation Datetime
See Table 1 for specified value for corresponding report type
Use Anesthetic Start Datetime
Format: YYYYMMDDhhmmss
OBR-22
Value = PDF create datetime
Format:
YYYYMMDDhhmmss
Example:
2008010112122
OBR-25
Result status
Value =
“F” – Authorized
“X” – Delete
HL7 OBX Mapping
(Each HL7 message can only have 1 OBX Segment)
OBX-1 Value = “1”
OBX-2 Value = “RP” RP – Reference Pointer
OBX-3.1
Value = HA designated Document Entity ID
See table 2 for the corresponding Document Entity ID
OBX-3.2 Value = None
OBX-3.3 Value = None
OBX-3.4 Value = Document Code
See Table 1 for specified value for corresponding report type
“INTRAOP”
“POSTOP”
“PREOP”
OBX-3.5 N Value = Document description
See Table 1 for specified value for corresponding report type
Intra-Operation
Post-Operation
Pre-Operation
OBX-5 Observation value
Value = ftp path for PDF retrieval
Format:
protocol+server address+”/” +path (if any)+ ”/” +filename
protocol
ftp://
See Table 1 for specified value for corresponding filename format
Filename Format (OTBN):
Hospital code (max. 10 digits) || Form-ID (max. 10 digits) ||Trimmed OTMS booking number|| PDF Create Datetime
Example:
ftp://192.168.1.1/pdf/PWH_102557_102556_OTB080077088_20120510171508.pdf
OBX-7 Value = File Size (in byte)
OBX-11
Value =
“C” – Update
“D” – Delete
“F” – Add
OBX-14 Date/time of the observation
Value = Observation Datetime
Remarks: Exactly the same as OBR-7
OBX-16 Responsible observer
Value = “CREATED:UPDATED”
Remarks: Not to input any user code
HL7 NTE Mapping
NTE-1 Value = “1”
NTE-3 Value = Free text description of report