Sun Microsystems IP HL 7 Computer Hardware User Manual


 
HL7 V2 Standard Inbound Message Mode Data Flow over MLLPV2 —
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 congured number of retries, the associated recourse action is taken. If
the exception is due to no response, the associated recourse action is taken.
Exception
occurred?
Exception due
to incomplete
data
receiveAndSend()
Gets the HL7 message from
the external , validates it
and sends ACK/NAK
validateHL7Message()
Validates HL7 message and
determines if it should send
HL7 ACK / NAK
Calls other helper
methods to validate
message and
sequence
number
receiveHL7Message()
receives the HL7 message
from the external
NO NO
YESYES
Continue
Continued
Handle Max Failed
read retry.Take
recourse action
Handle No
reponse
error.Take
recourse action
Here the eWay receives the HL7 message,
persists the received message in a database,
sends MLLPV2 commit ack if the persistence is
successful or nak if not successful. If the
received message is a duplicate message,
the corresponding ack/nak is retrieved from
the database and sent to external. The
received message is returned as null so that
the collab can skip processing the message
FIGURE25 HL7 V2 Standard Inbound MessageMode Data Flow over MLLPV2— Part 2
MLLPV2andthe SampleProjects
SunAdapterforTCP/IPHL7User's Guide • October2009148