beautypg.com

Inbound hl7 v2 collaboration - part 2 – Sun Microsystems Sun Adapter IP HL 7 User Manual

Page 112

background image

Inbound HL7 V2 Collaboration - Part 2

The Collaboration receives the HL7 V2 message from the external using
receiveHL7message()

. If an exception occurs due to incomplete data and the adapter fails to

read the data within the configured number of retries, the associated recourse action is taken. If
the exception is due to no response, the associated recourse action is taken.

If no exception occurs, validateHL7Message() is called, which validates the message to
determine whether to ACK or NAK the message. Other helper methods are also called to
validate the HL7 V2 message.

If the HL7 V2 message does not pass validation, the Collaboration calls makeNak() and
sendHL7Nak()

to create and send the NAK to the external system. The HL7 V2 message, with

the NAK, is archived to the error queue. If the number of consecutive NAKs sent surpasses the
maximum number of retries, the associated recourse action is taken.

If the HL7 V2 message passes validation, the Collaboration calls makeAck() and sendHL7Ack()
to create and send the ACK to the external.

About TCP/IP HL7 V2 Collaborations

Sun Adapter for TCP/IP HL7 User's Guide • October 2009

112

This manual is related to the following products: