This COM interface is defined and implemented by HL7Connect for use by other applications.This event is called immediately before a message is sent. If the script chooses, it can build a reply in ReplyMessage and set UseReplyMessage. In this case, the message will not be sent an ReplyMessage will be sent as the response
The script is able to modify the Message as it chooses but it should maintain a valid MSH segment.
The logs are written after this event
Setting UseReplyMessage := true while sequencenumbering is in use can have unexpected consequences. It's best not to do this
Note that when this event is called with a message that is being passed through, the message is not stored (if the incoming interface message processing mode is "Pass-through with store", the message will be stored after the remote system has responded).
XSLT: the input is the message to be sent, the output replaces the message to be sent