Sun Microsystems Sun Adapter IP HL 7 User Manual
Page 131
receiveAndSend()
Gets the HL7 v3 message
from the external , validates
it and sends ACK/NAK
receiveHL7Message()
receives the HL7 v3
message from the external
validateHL7Message()
Validates V3 message and message does
not have valid sequence number if sequence
number is enabled and determines if it
should send ACK/NAK (Insert expected
sequence number in the ACK or NAK
if sequence number is enabled)
SendHL7NAK()
Sends HL7 v3(MCCI_IN000006UV01)
commit NAK message if accept
ack is required or send HL7
v3 Application NAK
(MCCI_IN000007UV01))
Calls other helper methods
(makeCommitNAK()
or makeAppNAK()) to make
V3 NAK message and send it
Calls other helper methods to
validate message and
sequence number
Exception
occurred?
Exception
due
to incomplete
data
Handle Max
Failed read
retry.Take
recourse
action
archiveError
Message()
Handle max
Nak sent
Condition/Take
recourse action
Handle No
reponse
error.Take
recourse
action
HL7 V3
Message passed
Validation?
YES
YES
YES
NO
NO
Continued
Continue
FIGURE 18
Deferred Mode of ACK Process — Part 2
About TCP/IP HL7 V3 Collaborations
Sun Adapter for TCP/IP HL7 User's Guide
131