iNTERFACEWARE Products Manual > Installing and Using Chameleon > Tutorials and Exercises > HL7 to Application > Step 4 - A Sample Server Application > Using the HL7 Simulator to Test the Application |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
You can use the HL7 Simulator, a tool packaged with Chameleon, to test the application. The HL7 Simulator reads messages from a file and sends them to a specified port. To use the HL7 Simulator to test the application:
The test message file contains four HL7 messages. Three of the messages are of type ADT^A04 (Register Patient); your application will recognize these. The fourth message is of type ADT^A03, which your VMD file is not configured to process; this message will throw an exception.
When the HL7 Simulator is correctly configured, click Start Listening on the server, and then click Start on the Simulator. The following events happen:
Here is the exact sequence of events when an ADT^A04 message is sent:
When the ADT^A03 message is sent, the server's message parser is not able to process it. The server throws an exception and displays a hex dump of the message. The next section of this tutorial shows how you can improve your VMD file so that it gracefully handles unrecognized messages. |