Forum Replies Created
-
AuthorReplies
-
This is now working. I was using Activate/Deactivate and I don’t think it was really clearing my code properly. I removed the code and it’s acting appropriately now.
Thanks so much Jim!
I’m still getting a blank repetition field in my result. My copy looks like this if the value is different than MRG.1
COPY
0(0).PID(0).#3(%f4) —> 0(0).PID(0).#3(%f99)
Output:
PID|1|MPI_Num^^^NE|1234^^^FacID^MR~~78585^^^FacID^MR|…rest of PID Segment
I think the issue here is if the values are different and I copy them, I may be using the wrong variable in my copy. Would that be why there is a blank repetition?
Should my copy be using the ITERATION variable or the counter variable?
COPY
0(0).PID(0).#3(%f4) —> 0(0).PID(0).#3(%f4)
That helps a lot! I think I’m very close, but what I’m getting now is a blank repetition in that field.
Input (Assume 2nd MRN is in the MRG segment):
PID|1|MPI_Num^^^NE|1234^^^FacID^MR~23456^^^FacID^MR~78585^^^FacID^MR|…rest of PID Segment
Output:
PID|1|MPI_Num^^^NE|1234^^^FacID^MR~~78585^^^FacID^MR|…rest of PID Segment
I have deactivated the IF statement and confirmed that the Pathcopy is nulling out the PID.3 field completely. Any ideas?
Thanks!!
I do have an existing translation and I’m using Bulkcopy. I can change that to do a Pathcopy for each segment if that is easier.
Thanks for the help!
I would do it either way—however, I think a pre-proc tcl would make more sense.
-
AuthorReplies