This COM interface is defined and implemented by HL7Connect for use by other applications.This event is called when a message is received from an interface and the message has passed the sequence numbering and HL7 Validation checks. It exists to allow the user to impose custom validation checks, do message translation, and send the messages to interfaces or virtual queues.
The event handler can do anything it wants with the Message but it must leave it parsable and with the compulsory headers in the MSH populated. If the interface wishes to reject the message, it should set ErrorMessage and optionally ErrorCode
The message is logged prior to this event.
XSLT: the input is the original message, the output replaces the original message