- This topic has 3 replies, 3 voices, and was last updated 17 years ago by .
-
Topic
-
I have been reviewing the wealth of postings about iterations and math operations, but I may be trying to accomplish something new (read impossible). What I am trying to do is write an xlate that evaluates the OBR’s in an ORU, and any that have a P in field 25, it creates an OBX with several constant fields. ITERATE: TYPE:Group BASIS: 1(0).1 VARIABLE: %g2
nested ITERATE: TYPE:Segment BASIS: 1(0).1(%g2).0(0).OBR VARIABLE: %s2
nested IF 1(0).1(%g2).0(0).OBR(%s2).00258 eq =P
COPY =whatever -> 1(0).1(%g2).1(0).OBX(%s2).00569.[0]
With this xlate, it writes out an OBX, but they are not associated with the corresponding OBR. They are all placed at the end of the message. I need to put a MATH operation in, but I am not sure where. Any help would be greatly appreciated.
- The forum ‘Cloverleaf’ is closed to new topics and replies.