Before testing your changes, ensure that both the sorting_engine.vmd and after_adding_configuration.vmd files are saved in the same directory as your downloaded project files.
To test the changes:
Run CHMserver.exe. The Server appears and should display the available configurations, as shown below.
Server Application
Enter 0 to change the current configuration. It does not matter which configuration you choose since your application will programmatically switch between configurations depending on the type of message being parsed.
Enter the port number to listen to. In this example, port 7123 was chosen. After choosing a port number and pressing Enter, the server immediately starts listening on that port.
Open the HL7 Simulator utility.
Enter localhost and the same port number you chose above for the Port.
Download this sample message file, and save it in the same directory as your project. This message file contains two message types: SIU-S12 and ORM-O01.
In the Message File field, click the ellipsis button to locate the sample message file.
Ensure that the Stop sending messages at end of file? and Keep sending messages when ACK Received? options are checked.
In the HL7 Simulator, click Start to begin sending messages to the server application.
Using the HL7 Simulator
Return to the Server application, and you will notice that the messages were successfully parsed using the correct configuration.