Ancestor: HL7Connect.Events.InterfaceBase

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

Properties

HL7Connect.Exchange.Document Document;
   A handle to the actual Document received

HL7Connect.Exchange.DocumentResponse Response;
   The response for to the document. Before the script executes, this is set to droUnknown; if the script sets the response to droRejected, then no further processing will take place. If the script sets the response to droAccepted, the kernel will assume that the script has processed the message.


Methods

void SendToInterface(string Name);
   Send the Document to the named (document) interface

Note that this is not immediate; instead, the Document will be added to the queue after the script finishes executing

void SendToInterfaceWithParams(string Name, string OutTranslationParam, string InTranslationParam);
   Send the Document to the named (document) interface with translation parameters for the scripts.

Note that this is not immediate; instead, the Document will be added to the queue after the script finishes executing

void SendToVirtualQueue(string Name);
   Send the Document to the named virtual queue.

Note that this is not immediate; instead, the Document will be added to the queue after the script finishes executing

void SendToVirtualQueueWithPartition(string Name, string Partition);
   Send the Document to the named virtual queue with a specified partition.

Note that this is not immediate; instead, the Document will be added to the queue after the script finishes executing


© Kestral Computing P/L 2000 - 2003. HL7Connect v2.00-063 generated on 30-Nov 2015.
Keywords: Response, Document, SendToInterface, SendToInterfaceWithParams, SendToVirtualQueue, SendToVirtualQueueWithPartition, HL7Connect.Events.ReceiveDocument, ReceiveDocument