public interface Initiator
A convenient way for the initiator of a message exchange to send a message to a remote server and await the response in the same thread.
Acknowledgements, threading, and accept-level retries are handled by
Recall that acknowledgement requirements are specified in MSH fields 15 and 16 (see HL7 v2.5 chapter 2), so the sender has control. If no response is needed, and you would like this call to return right away, specify that no acknowledgements are required.
Message sendAndReceive(Message theMessage) throws HL7Exception
theMessage- the message to send to the remote system
Parserthat is used to encode outbound messages and parse inbound ones. It may be of interest to set certain parameters of this parser, for example whether to use XML encoding.
Processorinstance that is used to perform the message exchange
Copyright © 2001-2014 University Health Network. All Rights Reserved.