iNTERFACEWARE Products Manual > Installing and Using Chameleon > Tutorials and Exercises > Application to HL7 > Step 4 - A Sample Client Application > Application Overview |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
The generated application's main components are:
Each Generate class creates a new Message object, fills it with data, and calls its GenerateMessage method to generate an HL7 message. This message is returned as a string. In the tutorial example, GenerateLabResult is the Generate class that is created:
The socket connection object connects to a specified host and port in order to send messages. It also monitors that connection for any incoming messages and, if one is received, invokes an onMessage method. The default behavior of onMessage is to display the message. This message-receiving functionality is important even in a message-generating application, since you expect to receive an ACK (acknowledgement) message from the party who receives the message that you generate. For more information on ACK messages, see Auto ACKnowledgments. The client object directs its socket connection object to send messages to a particular host and port. It also provides a user interface. After generating the code, you will have a working application; no additional programming is required. In the remainder of this section, you will test the application. |