This COM interface is defined and implemented by HL7Connect for use by other applications.This event is called when a Document is received from an interface and the Document has been parsed. It exists to allow the user to impose custom validation checks, do Document modification/translation, and send the Documents to interfaces or virtual queues.
The event handler can do anything it wants with the Document but it must leave it the compulsory CDA headers populated. If the interface wishes to reject the Document, it should set the response accordingly (before the script is executed, the response is "accepted", though the kernel will override this later when it processes the document if the script does not reject it).
The Document is logged prior to this event
XSLT: the input is the document message, the output replaces the original document