HL7V2 Standard Inbound Message Mode Data Flow over MLLPV2 —
Part 2

TheCollaboration receives the HL7 V2 message from the external using

receiveHL7message().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.

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 HL7V2 Standard Inbound Message ModeD ata Flow over MLLPV2 — Part2
MLLPV2and the Sample Projects
SunAdapterfor TCP/IP HL7 User's Guide • Oc tober 2009148