iNTERFACEWARE Products Manual > Learning Center > Tutorials and Sample Scenarios > Routing and Processing Messages > Using Segment Identities To Handle Multiple Message Versions |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
In some circumstances, an application may be sending messages in two different formats. For example, suppose that the sending application is sending messages similar to the following:
If you examine these messages, you will see that they are both ORU^R01 (Unsolicited Observation Message) messages. However, the first message uses version 2.5 of the HL7 standard and the second message uses version 2.6 of the HL7 standard. In the first message, the fifth field of each OBX segment (OBX.5) is a numeric value. In the second message, the fifth field of each OBX segment is text.
Also notice the third field of the MSH segment in each message (MSH.3, or Sending Application). In the first message, this field is set to APP1. In the second message, this field is APP2. If you know that all messages of the first type have APP1 as their sending application, and all messages of the second type have APP2 as their sending application, you can use this information to distinguish one type of message from another. In this tutorial, you will learn how to use Chameleon's segment identity capability to create a VMD file that contains separate message definitions for each of these message types. You will then create an Iguana channel that routes these messages to a database. |