OutboundHL7 V2 Collaboration - Part 2
TheCollaboration receives the HL7 ACK or NAK from the external system using
receiveHL7AckNak().If an exception occurs due to incomplete data and the adapter fails to
readthe data within the congured number of retries, the associated recourse action is taken. If
theexception is due to no response, the associated recourse action is taken. If no exception
occurs,the ACK or NAK message moves on to isAckMessage(), which validates the message to
determinewhether the message is an ACK or a NAK.
Nextthe validateAckNak method unmarshals the message to the ACK Message Library and
validatesthe MSH/MSA data. It also calls other helper methods such as
checkSendingReceivingApplication()and checkSendingReceivingFacility() to validate
theACK message.
Ifthe message does not pass validation it is handled as a NAK, the associated recourse action is
taken,and the message is archived in the error queue.
Ifthe message is a NAK, the associated recourse action is taken, and the message is archived in
theerror queue, along with the NAK message, as a JMS property.
Ifthe message is an ACK and passes validation, the message is sent on to the journalMessage
method
AboutTCP/IPHL7 V2 Collaborations
SunAdapterfor TCP/IP HL7 User's Guide 117