Send Method

Sends HL7 data to the MLLP server.

Syntax

ANSI (Cross Platform)
int Send();

Unicode (Windows)
INT Send();
- (void)send;
#define MID_MLLPCLIENT_SEND 8

IPWORKSEDI_EXTERNAL int IPWORKSEDI_CALL IPWorksEDI_MLLPClient_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);

Remarks

The Send method sends the string or byte array in InputData to the specified server. Alternatively, you can set InputFilename to the name of a file with HL7 contents.

Before calling this method, set the RemoteHost and RemotePort properties to the server credentials and Connect or set Connected to True.

Sending Data Example

mllpClient.InputData = "HL7Data";
mllpClient.Send();

If the data was received by the server, the class will receive a response and the AckIn event will fire.

Error Handling (C++)

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 C++ Edition - Version 20.0 [Build 8203]