Using iterate over the OBX field, I was able to generate NTE segments. My solution works for the first OBX segment and as soon as it hits the second OBX (of type FT), I receive only one NTE segment from that OBX-5 field.
Iterate:
Type = group
Basis = 1(0).1(0).1(0)
Variable = %g1
Inside Iterate, IF 1(0).1(0).1(%g1).OBX.570 EQ FT
After IF,
ITERATE
Type = field
Basis = 1(0).1(0).1(0).OBX.573
Variable = %f1
— Now I copy OBX-5 to NTE-3
COPY 1(0).1(0).1(%g1).OBX.573(%f1)
to
1(0).1(0).1(%g1).NTE(%f1).00098
Do I have to do another iterate on OBX segment to generate all NTE’s from OBX-5 field?
Any ideas?
Thanks.
Arslan