iNTERFACEWARE Products Manual > Installing and Using Chameleon > Tutorials and Exercises > HL7 to Application > Step 2 - Mapping Data From 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 "ADT" and the Trigger Event is "A04"; together, these subfields indicate that the message is of type ADT^A04, or "Register Patient".
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, all incoming messages that match the message identity will be processed by the message definition. |