Chris,
If I understand correctly you want to know how to address the OBX-5 field repetitions.
You will need an ITERATE subordinate to the OBX Group Iteration which is defined as a Field Iteration and assign it a %fx (like %f1) counter. Let’s assume %f1. Then your address path would look like this:
1(%g1).1(%g2).1(%g3).OBX(0).#5(%f1)
So you will have 4 ITERATES all nested together. In each subordinate ITERATE remember to specify the predecessor group counter in the appropriate position of the basis address path. Like this:
ITERATE Group 1
basis 1
ITERATE Group 2
basis1(%g1).1
ITERATE Group 3
basis 1(%g1).1(%g2)
ITERATE Field 1
basis 1(%g1).1(%g2).1(%g3).OBX(0).#5
By the way do the messages you receive really have rpetitions at each of those groups. If not there is no need to specify those iterations.
For example if this is a result (ORU), normally multiple patients are not sent in a single message (Group1) and a lot of systems only send one Ordered result in a single message (Group 2).
email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.