MSH|^~\&|HL7REG|UH|HL7LAB|CH|19910918060544||MFN^M01|MSGID002|P|2.2
MFI|0006^RELIGION^HL7|UPD|||AL
MFE|MAD|199109051000|199110010000|U^Buddhist^HL7
ZL7|U^Buddhist^HL7|3^^Sortkey
MFE|MAD|199109051015|199110010000|Z^Zen Buddhist^HL7
ZL7|Z^Zen Buddhist^HL7|12^^Sortkey
In this case, the primary key contains all the data needed for this simple table, so that the HL7 segment could be constructed with ONLY the single field, "sort-key," rather than repeating the primary key value as we have done in this example.
MFK, master file application acknowledgment, as original mode acknowledgment of the HL7 message according to MFI Response Level Code of "AL".
MSH|^~\&|HL7LAB|CH|HL7ADT|UH|19910918060546||MFK|MSGID99002|P|2.2
MSA|AA|MSGID002
MFI|0006^RELIGION^HL7|UPD
MFA|MAD|199109051000|19910918060545|S|U^Buddhist^HL7
MFA|MAD|199109051015|19910918060545|S|Z^Zen Buddhist^HL7