Ancestor: HL7Connect.Events.InterfaceBase

This event is called when a Document has been sent to the transport layer. Either the document is accepted, rejected, or timed out (what is possible depends on the transport layer details)

Usually this event is used to handle errors and take other actions as desired. Note: You can stop the outgoing interface on which this error has occurred, but it will not actually stop until the script for this event has completed, so don't wait for the interface to stop (Started = false)

The response will be pre-populated with the response from the underlying transport layer. The script can override this if it wants,

Properties

HL7Connect.Exchange.Document Document;
   A handle to the actual Document that was sent

HL7Connect.Exchange.DocumentResponse Response;
   The response will be pre-populated with the response from the underlying transport layer. The script can override this if it wants.

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