HL7V2 Standard Inbound Message Mode Data Flow over MLLPV2 โ€”
Part 3
Ifno exception occurs, validateHL7Message() is called, which validates the message to
determinewhether to ACK or NAK the message. Other helper methods are also called to
validatethe HL7 message.
Ifthe HL7 message does not pass validation, the Collaboration calls makeNak() and
sendHL7Nak()to create and send the NAK to the external system. The HL7 message, with the
NAK,is archived to the error queue. If the number of consecutive NAKs sent surpasses the
maximumnumber of retries, the associated recourse action is taken.
Ifthe HL7 message passes validation, the Collaboration calls makeAck() and sendHL7Ack() to
createand send the ACK to the external system. The HL7 ACK/NAK messages are stored in the
persistentdatabase. This ACK/NAK is stored against the inbound HL7 message received.
Afterthe ACK is sent, the HL7 message and the ACK are journaled to the JMS queue journal
destination.If the message fails to journal the associated recourse action is taken.
Ifsequencing numbering is enabled, the processAckNakSequenceNumbering method calculates
thenext sequence number and stores the number in the sequence number ๎€‚le by calling the
updateSequenceNumberFilemethod to persist the next sequence number.
MLLPV2and the Sample Projects
SunAdapterfor TCP/IP HL7 User's Guide 149