iNTERFACEWARE Products Manual > Installing and Using Chameleon > Tutorials and Exercises > HL7 to Application > Step 2 - Mapping Data From HL7 |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
Once you have a good sample of HL7 messages, the next step is to use Chameleon to define the different message types, and to specify what data you wish to extract from each message type. This information is summarized in a Chameleon Visual Message Definition (VMD) file. In this section of the tutorial, you will set up a VMD file for your application. The following sample HL7 message will be used:
An HL7 message is a sequence of segments, each of which begins with a three-letter label that identifies the segment type. These segments are terminated by a segment terminator, which is normally a carriage return character. Each segment in a message is divided into composites, or fields, and the fields are separated by pipe characters ('|'). As you can see, many of the fields in the sample message are empty, and this is frequently the case in the real world as well. Fields may be further subdivided into subfields, delimited by the caret ('^'), and subsubfields, delimited by the ampersand ('&'). Every HL7 message begins with a MSH segment that contains basic information about the message, such as the time it was issued and the message type. In the sample message shown above, the MSH segment indicates that the message type is ADT^A04 (Register Patient), which is the message type that your application will be processing. As you can see, HL7 messages are comprised of readable characters. However, they are not really designed to be read by people. It is easy to lose your place when counting pipe characters, and it is impossible to determine the purpose of any information contained in the message. For example, if a field contains a name, there is no way to tell whether it is the name of the patient, the next of kin, the physician, or someone else. This purpose could be determined by consulting the appropriate segment definition in the HL7 standard, but this quickly becomes tedious. With Chameleon, these problems disappear. The Chameleon Message Browser is a handy utility that makes both the structure and the content of HL7 messages plainly evident.
|