Originally posted by Matthew Laskin
When testing a simple ADT translation, I ran into an issue where the testing tool is failing my translation due to incorrectly ordered segments. I originally had the outbound variant setup with just the three segments MSH PID and PV1, which was causing errors. I reconfigured the translation with the default variant for ADT, re-tested and didn't have a problem. The outbound message actually looked like what I wanted, except that it included the EVN segment. I tried changing the EVN segment to "Optional" and again got the error. If the purpose of the variant is to define the segments I want in the message, why should the EVN segment be required? Take a look:
see first attachment
MESSAGE 1
[0:TEST] [mid:0x1e663ac] The # 1 segment encountered 'PID' is out of order for message type 'ADT_A04'. Segment ignored.
[0:TEST] [mid:0x1e663ac] The # 2 segment encountered 'PV1' is out of order for message type 'ADT_A04'. Segment ignored.
0(0).MSH(0) : >|^~&|ADM|GBMC|||201306251618||ADT^A04|48984|D|2.2|||AL|NE<
and
see second attachment
MESSAGE 1
0(0).MSH(0) : >|^~&|ADM|GBMC|||201306251618||ADT^A04|48984|D|2.2|||AL|NE<
0(0).EVN(0) : ><
0(0).PID(0) : >|1|GBDTVIF0000110|M000000108||INTERFACE^ECW||19990204|M||||||||||V00000000134<
0(0).PV1(0) : >|1|O|LABDC|O|||LAM.MA^test^PI^A^^^M.D.|||||||||||RE|||||||||||||||||||||GB||RE|||201306251618<