Send Method

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

Syntax

public void send(String connectionId);

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 InputStream field to a stream with HL7 data.
  • Set the InputFilename field to the path of a file with HL7 data.
  • Set the HL7 data directly to the InputData field.

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);

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