iNTERFACEWARE Products Manual > Installing and Using Chameleon > Learning the Basics > Working with Segments and Segment Grammars > Avoiding Segment Grammar Errors |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
This is a common error that comes up during the development of an HL7 interface. This error means the message you are receiving has a group of segments that do not correspond to the segment grammar defined in Chameleon for that message. To avoid these types of errors, you need to look at the message you are trying to parse and the message segment grammar definition in Chameleon. For example, if the ADTA01 message has the following segment grammar:
where the square brackets [ ] represent an optional, and the set brackets { } represent a repeating segment. Let's say that the message you're receiving has the following format:
As a result, the sent message is missing the EVN segment and has an additional, user-defined Z-segment called ZID. This violates the defined segment grammar. To correct this you can either:
|