Sun Microsystems IP HL 7 User Manual

Page of 150
Once the message is received, the Collaboration determines whether the message needs to be
validated. The HL7 V3 message is then validated, making sure that the message structure is
correct. Various fields in the Transmission Wrapper of the message are also validated, such as
Exception 
occurred?
Exception 
due to 
incomplete 
data
receive(--) receive HL7 v3 
PRPA_IN403001UV01 message, 
validate it and send HL7 v3 
Immediate ACK or NAK message
  receiveAndSend() Gets the 
HL7 v3 message from the 
external, validates  it and 
sends ACK/NAK
receiveHL7Message()
receives the HL7 v3 message 
from the external
Handle
Max Failed read
retry. Take
recourse
action
Handle No 
reponse error.
Take recourse 
action
YES
YES
NO
NO
Continue
Collobration gets triggered by a hl7 v3 
PRPA_IN403001UV01 message received 
from HL7 client,it then calls HL7 user 
colloboration rules by exceuting the 
receive method.
Receive is the entry point to the HL7 user 
collaboration, it has the following 
signature.receive(HL7eway, 
otd_PRPA_IN403001UV01, 
otd_MCCI_IN000004UV01,JMS_DATA,
JournalJMSOTD,ErrorJMSOTD)
FIGURE 15
Immediate Mode of ACK Process — Part 1
About TCP/IP HL7 V3 Collaborations
Sun Adapter for TCP/IP HL7 User's Guide • October 2009
124