Continued
journalHL7
Message()
archiveError
Message()
Handle max Nak
sent Condition/Take
recourse action
Exit
Recourse action
if failed to journal
HL7
Message passed
Validation?
Journal HL7
Message?
SendHL7NAK()
Sends HL7 NAK
SendHL7ACK()
Sends HL7 ACK
StoreHL7ACK()
Stores HL7 ACK in the
persistence database
JournalMessage().
Sends HL7 and ACK messsages
to JMS Journal Destination
processAckNakSequenceNumbering()
Calculates the next sequence number and
stores the number in the sequence number file
StoreHL7NAK()
Stores HL7 NAK in
Persistence Database
Calls other helper methods
to makeNAK and send it
This is to store the HL7 ACK in the
persistence database agains the
received HL7 message. This will
be stored only for MLLPV2
Only if sequence number is enabled,
Calls updateSequenceNumberFile
to persist the next sequence number
NO
NO
YES
YES
JMS Message consumed and committed
FIGURE26 HL7V2 Standard Inbound Message ModeD ata Flow over MLLPV2 — Part3
MLLPV2and the Sample Projects

SunAdapterfor TCP/IP HL7 User's Guide • Oc tober 2009150