iNTERFACEWARE Products Manual > Learning Center > Tutorials and Sample Scenarios > Working With a Database > HL7 to Database > Step 2 - Setting Up the VMD File > Setting Up the Segment Grammar |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
In a message definition, the segment grammar determines the segments of the message to be parsed and the order in which they appear. To set up the segment grammar:
The Segment Grammar panel of the Message Grammar window already contains the MSH segment. This was added by the Create Message Definition Wizard, since every HL7 message contains an MSH segment. Because the channel you are creating in this tutorial will be processing patient demographic information, you need to add the PID segment to the segment grammar. To add the PID segment to the segment grammar:
Notice that the Ignore Segments not in Grammar option is checked. This ensures that Chameleon will ignore any other segments it encounters for this message. This makes configuration much faster and ensures that the configuration will not be broken if new segments are added to the incoming messages. Now that you have created the segment grammar, the next step is to define a table that will contain the information that you extract from the messages matched by your message definition. |