This COM interface is defined and implemented by HL7Connect for use by other applications.
This event is called when a Dicom Message is received from an interface and the message has been parsed and logged. It exists to allow the user to impose custom validation checks, do Message modification/translation, and send the Messages to interfaces or virtual queues.
The event handler can do anything it wants with the message, though the message generally needs to be valid afterwards
If the script wishes to reject the Message, it should set the Outcome accordingly (before the script is executed, the response is "unknown": the kernel will update this later when it processes the document if the script does not reject it).
The Message is logged prior to this event
XSLT: the input is the document message in XML format, the output replaces the original document