Ok, I’m still having a small issue. It keeps picking up the GT1 that i nulled out. Here is my xlate and what it keeps doing. Can anyone hlep with this. As you can see it keeps putting the 1 in the null GT1. I have moved all these areound trying to get this to work and have had no luck.
You null out the GT1 segment inside your IF-statement, but then you fill the index with @GT1_counter. You need to move the last two statements (COPY and MATH ADD) out of the IF, by moving them upwards a couple of places.
Personally, I would check whether GT1.00414 is not equal ‘I’. If so: PATHCOPY the GT1 segment, fill GT1-index with @GT1_counter and then increase @GT1_counter. Now you are PATHCOPYing and afterwards nulling out the segment again. Waste of (processor) time, how small it may be.
Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands
I think I did what you told me to and I’m still having the same problem. Here are some screen shoots of the Xlate and Results. It keeps filling out the GT1 that should not be coming across.
The way you did it now (IF GT1.00414 ne =I and then PATHCOPY), you will need to move the two COPY and MATH ADD statements back inside the IF statement (following the PATHCOPY). It should work then!
Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands