Ancestor: HL7Connect.Events.InterfaceBase

This event is called immediately before a Document is sent. If the script chooses, it can abort further document sending by setting the response to either droAccepted or droRejected.

The script is able to modify the Document as it chooses but it should maintain valid CDA headers. Note that any digital signatures in the document will not be updated automatically

The logs are written after this event

XSLT: the input is the document to be sent, the output replaces the document to be sent

Properties

HL7Connect.Exchange.Document Document;
   A handle to the actual Document to be sent

HL7Connect.Exchange.DocumentResponse Response;
   Response for this document. Leave the Response.Outcome as drcUnknown, and the document will be sent to the transport layer

If the script sets the response to droRejected, then the kernel will handle the error as configured. If the script sets the response to droAccepted, the kernel will assume that the script has processed the message.

HL7Connect.Kernel.Interface SourceInterface;
   Handle the source interface that received the Document. It is possible that the source interface is no longer valid, in which case the value will be null


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, SourceInterface, SendDocument, HL7Connect.Events.SendDocument