Sun Microsystems Sun Adapter IP HL 7 User Manual
Page 116
Collaboration gets triggered
by a JMS HL7 message; it
then calls HL7 User
Collaboration Rule by
executing the
receive() method
Only if
Sequence
Numbering
is enabled
Only if
Sequence
Numbering
is enabled
Receive is the entry point
to the HL7 User
Collaboration; it has the
following signature: receive
(JMSMessage, HL7Eway,
GenericHL7OTD,
HL7ACKOTD,
JournalJMSSess,
ErrorJMSSess)
HL7 message
passed
validation?
countSendRetry <
maxSendRetry?
processInitialHandshake
receive (...)
send HL7 message to
external HL7 system and
wait for HL7 ACK
validateHL7Message()
unmarshalls HL7 message
to Generic HL7 OTD
checkPopulateMSHRequiredFields()
checks for valid MSH; if necessary
populate any required fields
sendAndReceive()
Send HL7 message and
receive HL7 ACK message
insertSequenceNumber()
Inserts the next sequence
number in the HL7 message
sendHL7Message() Send the
HL7 message to External
using the HL7 eWay OTD
processMessage()
NO
NO
YES
YES
Continue
Handle No
Response Error/
Take Recourse
Action
Handle
Send Error/
Reset
Recourse
Action
FIGURE 12
Outbound HL7 V2 Collaboration - Part 1
About TCP/IP HL7 V2 Collaborations
Sun Adapter for TCP/IP HL7 User's Guide • October 2009
116