iNTERFACEWARE Products Manual > Installing and Using Chameleon > Tutorials and Exercises > Application to HL7 > Step 5 - Repeated Segment Groups > Testing the Application |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
The final step of this tutorial is to investigate how the new classes can be incorporated into the application. The easiest way to do this is to regenerate the entire application from Chameleon. To regenerate the application:
When you are finished generating the stubcode, look at the set of files that were generated, and locate the code where the message's tables are filled with dummy data. In this C# example, this file is called GenerateLabResult.cs. The code looks like this:
This looks much like the generated code you saw earlier in Application Overview. Notice, however, that only the MessageInfo and Patient tables are filled with data; the tables inside the table group are absent. This is because the Stubcode Generation Wizard that produces this default implementation is not equipped to handle table groups. For the purposes of this tutorial, you can replace the code above with this improved version:
You have now added code to populate the Observation table group. This example will generate two OBR {OBX} segment groups. The first segment group will have two OBX segments and the second will have three. To test this new application:
There are a few things to note about this message:
This concludes the tutorial on generating HL7 messages with Chameleon. |