iNTERFACEWARE Products Manual > Installing and Using Chameleon > Tutorials and Exercises > Application to HL7 > Step 2 - Mapping Data To HL7 > Using the Create Message Definition Wizard |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
At this point, Chameleon recognizes the segments of the sample message but doesn't recognize the message itself. To fix this, you must create a message definition for the sample message. This message definition contains a message identity, which ensures that your application will recognize messages that are of the same type as the sample message. A message identity is defined by specifying the expected value of one or more fields in the message. Normally, the first two subfields of the Message Type field of the MSH segment are used to define the message identity. These subfields are named Message Code and Trigger Event. In the sample message, the Message Code is ORU and the Trigger Event is R01; together, these subfields indicate that the message is of type ORU^R01, or Unsolicited Observation Result.
The Create Message Definition Wizard makes it easier to create a message definition and its message identity. This Wizard will automatically:
To add a message definition to your project:
In the Wizard, notice that both the Name and Description fields have been automatically filled in by Chameleon:
Once the Wizard has completed, you will notice the following changes:
You will learn more about the message grammar and segment grammar later in this tutorial. Now that the message definition and its message identity are in place, messages of type ORU^R01 will be generated by this message definition. |