In HL7 message, PID Segment 3 represent the patient ID;
while PID Segment 19 is the National ID.
In Hong Kong, HKID is used for both.
The input HL7 message from source only contain ID at PID 3.
MIrth Connect can be used to push the HKID from PID 3 to PID 19,
so that the HKID can be populated in the national ID field of the database.
Input Message:
Javascript Code at the Mirth Connect:
Output Message:
Database (MRN from PID 3, National ID from PID 19)