Is there a way to use the value of a variable counter to value which iteration of a segment is used/valued?
I have a situation were I am copying only some OBX segments over from Inbound to Outbound. Each time I value a counter and value the OBX|1 field. There is one OBX value (blood pressure) that come out in one OBX, but I have to place in two outbound. I’ve held them in a variable to add to the end after all other OBX’s are processed. At the end I know how many OBX’s are ready to send with the counter. I would like to be able to value the last two OBX’s with the held value, and use the counter to control what iteration is used.
Below is what I was trying to set up. How can I do this?
Copy @null -> @obxCounter
ITERATE (obx’s)
Copy @obxfinalVal -> 1(0).1(0).1(0).OBX(@obxCounter).#1(0)