StandardInbound Message Mode Data Flow and Architecture
Thefollowing steps describe the ow of data for an inbound Adapter:
1. Theexternal system sends the HL7 message to the Adapter.
2. TheCollaboration receives the HL7 message.
3. TheCollaboration validates the message (if validate is enabled). If it fails, the Collaboration
takesthe congured recourse action. If the recourse action is stripped and the maximum
numberof retries has been exceeded, the message and error are written to the error queue.
4. TheCollaboration writes the message to the data queue.
5. TheCollaboration then creates the appropriate ACK and sends it to the RA.
6. TheRA envelopes the ACK and sends it to the External System.
7. Ifjournaling is enabled, the message and its ACK are written to the journal queue.
InboundReceiver Message ModeTheInbound Receiver Message mode is used when the Delayed ACK is congured to fulll the
roleof the Receiver in the Delayed ACK scenario. It accepts the message and acknowledges the
Externaland then forwards the message to the component fullling the Forwarder role. It then
acceptsthe ACK from the Forwarder and passes it on to the External that sent the message.
Thefollowing steps describe the Inbound Forward Message Role:
1. TheSender External, sends an HL7 message to the Inbound Adapter, which is congured as
aReceiver (Sends App Acks isenabled).
2. TheInbound Adapter receives the HL7 message and returns the rst Acknowledgement to
theExternal with an MSA - 5, value “D” for Delayed Acknowledgement. The External
receivesthe ACK, validates the ACK (verifying that it is a Delayed ACK), and waits for
anotherACK.
3. TheInbound Adapter creates a JMS message with the HL7 message as the payload, creates a
“replyto” destination, and forwards the HL7 message to the Outbound Forwarder (to a JMS
destination).
4. TheOutbound Forwarder gets the HL7 message and forwards the message to the External
System.
5. TheExternal System receives the HL7 message and returns the HL7 ACK message to the
OutboundForwarder.
6. TheOutbound Forwarder gets the HL7 ACK message and sends it to the Inbound Receiver
Adapterusing the “reply to” destination.
7. TheReceiver External reads the HL7 ACK message and forwards the second HL7 ACK
messagewith an MSA - 5, value “F”to the Sender External. The Sender External then takes
theappropriate action: for example, journaling the HL7 message and the HL7 ACK.
SunAdapterfor TCP/IP HL7 Overview
SunAdapterfor TCP/IP HL7 User's Guide 15