Inbound, in the role of consumer, the HL7 Binding Component (BC) acts as follows:
The HL7 BC receives the HL7 message from an external HL7 system.
The HL7 BC parses the received message. If parsing fails, the HL7 BC sends a NAK to the external HL7 sender.
If validate MSH is enabled, the HL7 BC validates the MSH segment fields for message acceptance. If validation fails, the HL7 BC sends a NAK to the external HL7 sender.
If sequence number is enabled, the HL7 BC validates the MSH-13–Sequence Number field in the received message against the persisted sequence in the database for the inbound endpoint. If the sequence number does not match, the HL7 BC sends a NAK to the external HL7 message sender.
If the HL7 message proves acceptable, the HL7 BC sends the normalized message to the BPEL Service Engine. An ACK or NAK is sent to the external HL7 message sender, based on the message exchange status received from the Normalized Message Router, as follows:
An ACK is sent when the message exchange status is Done.
A NAK is sent when the message exchange status is Error.