iNTERFACEWARE Products Manual > Learning Center > Tutorials and Sample Scenarios > Routing and Processing Messages > Using Segment Identities To Handle Multiple Message Versions > Creating the VMD File > Revising and Creating the Message Definitions |
![]() ![]() |
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
You now have two OBX segment definitions, one for each type of OBX segment that will appear in incoming messages. However, this VMD file still has only one message definition for all incoming ORU^R01 messages of either type. To complete this VMD file, recall that the two types of incoming messages can be distinguished from one another by the value in the third field of the MSH segment (MSH.3, or Sending Application):
In messages of the first type, MSH.3 is set to APP1; in messages of the second type, MSH.3 is APP2. At present, the VMD file has only one message definition, whose identity is ORU^R01. Since this message definition was created using a message whose MSH.3 field is APP1, the next step is to modify this message definition to include its MSH.3 value as part of its message identity. To do this:
![]()
The revised message identity for this message definition is now displayed in the Workspace: ![]() This message definition now only matches an incoming message if it is of type ORU^R01 and its MSH.3 field is set to APP1. The next step is to create a second message definition that matches messages of type ORU^R01 whose MSH.3 field is set to APP2. To do this:
Your VMD file now contains two message definitions, one for each type of message: ![]() The next steps are to create a table definition for the database table to which information is to be written, and to create message grammars for each of the message definitions. |