Send Method
Sends HL7 data to the MLLP server.
Syntax
mllpclient.send([callback])
Callback
The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).
The callback for this method is defined as:
function(err){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'err' has 2 properties which hold detailed information:
err.code err.message
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.