I have a variant that I’ve built, where a segment should be addressed in the 4th group. But, when I use that variant and read a message into the testing tool (and in production), that segment is being addressed in the 6th group. In the message I’m using, all of the prior segments are addressed in the 0th group (as expected), and after the last segment of that group there is one carriage return. Based on that, I don’t know how, with the variant setup, and the message that I’m using, I could have the segment being addressed where it is.
Here is the message structure:
MSH
EVN
PID
PV1
ZCL
As mentioned, there is one single carriage return after every segment. Here is the setup for the variant:
MSH
EVN
PID
[PD1]
[{ROL}]
[{NK1}]
PV1
[PV2]
[
{ROL}
]
[{DB1}]
[{OBX}]
[{AL1}]
[{DG1}]
[DRG]
[{
PR1
[{ROL}]
}]
[{GT1}]
[{
IN1
[IN2]
[{IN3}]
[{ROL}]
}]
[ZCL]
The ZCL segment is where I’m having the problem.