Send Method

Send HL7 data to the MLLP client associated with the specified connection Id.

Syntax

int Send(int iConnectionId);

Remarks

The Send method sends data for the connection specified by ConnectionId to the associated MLLP client.

Before calling this method, specify the data to send by doing one of the following (the class will use the data from the first valid location):

  • Set the InputFilename property to the path of a file with HL7 data.
  • Set the HL7 data directly to the InputData property.

ConnectionId is the connected client to which the server should Send.

Once the client has received the data, it will respond with an acknowledgement, causing the class's AckIn event to fire.

Sending Data Example

mllpServer.Connections[connectionId].InputData = "HL7Data";
mllpServer.Send(connectionId);

Error Handling

This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks EDI 2020 Qt Edition - Version 20.0 [Build 8203]