validateHL7Message()
Validates V3 message and
determines if it should send
ACK/NAK
HL7 V3
Message
passed
Validation?
sendHL7ACK() Sends HL7
V3(MCCI_IN000004U
V01) immediate
ACK Message
SendHL7NAK()
Sends HL7 v3
(MCCI_IN000004UV01)
immediate
NAK message
Calls other helper
methods(makeNAK())
to make V3 NAK
message and send it
Calls other helper methoss
to validate HL7 v3
message
JournalMessage().
Sends HL7 v3
And V3 ACK
messsages to
JMS Journal Destination
JMS Message
consumed
and committed
archive
ErrorMessage()
Handle max
Nak sent
Condition/Ta
ke recourse
action
journalHL7
Message()
Exit
Recourse
action if failed
to journal
Journal
HL7 v3
Message?
YES
YES
NO
Continued
NO
Calls other helper methods
(makeACK())to make V3
ACK message and send it
FIGURE16 ImmediateMode of ACKProcess — Part 2
AboutTCP/IPHL7 V3 Collaborations
SunAdapterfor TCP/IP HL7 User's Guide • Oc tober 2009126