|
Step 5 - Table Groups and Repetition
The Chameleon VMD file you set up in Step 1 - Setting Up the VMD generated a relatively simple HL7 message. In this example, let's suppose you also want your system to generate a more complicated Lab Result message of HL7 type ORU^R01. Specifically, you will want your generated messages to have the following segment grammar:
This HL7 grammar means that you want every ORU^R01 message to start with an MSH segment, be followed by a single PID segment and then have a repeating result group. The result group must occur at least once and start with a single OBR (order information) segment and be followed by 1-to-many OBX (result information) segments. The following illustrates what this message might look like:
This section of this tutorial will show you how to generate this type of message. |