procedure SendDocument(doc : ITransferredDocument; iId : Integer; response : IDocumentResponse);
HL7Connects sends a CDA R2 Document, and gets a status response back.
By default, Hl7Connect will wait the the configured timeout for a response from the interface, not knowing the status. Set the timeout too short, and HL7Connect will abandon the document before you've processed it, if processing takes too long. Set the timeout too long, and HL7Connect will take ages to give up on the client when the client is not available. One way to resolve this is for to notify Hl7Connect with an estimate of how long processing will take. To do this, pass the iId parameter to the NotifyWait procedure (External COM mode only)