I have found that the testing tool is helpful when I do iterates. If you look at the OBX segment that changes:
1(0).2(0).1(0).OBX(0) : >|1|NM|CRP^C-Reactive Protein|1|1.6|mg/dL|(0-0.8)|H|||F||||KR<
1(0).2(0).1(1).OBX(0) : >|1|TX|CRP^C-Reactive Protein|2| ||||||F||||KR<
1(0).2(0).1(2).OBX(0) : >|1|TX|CRP^C-Reactive Protein|3| **Interpretation**||||||F||||KR<
1(0).2(0).1(3).OBX(0) : >|1|TX|CRP^C-Reactive Protein|4|Negative: < or = 0.8 mg/dL||||||F||||KR<
1(0).2(0).1(4).OBX(0) : >|1|TX|CRP^C-Reactive Protein|5|Positive: >0.8 mg/dL||||||F||||KR<
1(0).2(0).1(5).OBX(0) : >|1|TX|CRP^C-Reactive Protein|6| ||||||F||||KR<
Now look at an NTE segment that iterates:
1(0).2(0).1(0).NTE(0) : >|1|| <
1(0).2(0).1(0).NTE(1) : >|2|| **Interpretation**<
1(0).2(0).1(0).NTE(2) : >|3||Negative: < or = 0.8 mg/dL<
1(0).2(0).1(0).NTE(3) : >|4||Positive: >0.8 mg/dL<
1(0).2(0).1(0).NTE(4) : >|5|| <
My setup might be different, but my OBX segment number changes here: 1(0).2(0).1(%s1).OBX(0) and the NTE segments change here: 1(0).2(0).1(0).NTE(%s1)
You would need to look at your own setup and see where the numbering is changing. That is where you want to to put your iterate variable (%s1)
Hope this makes sense