Josh Stanek

Forum Replies Created

Viewing 6 replies – 1 through 6 (of 6 total)
  • Author
    Replies
  • in reply to: Iterate on PID.3, Compare to MRG #81918
    Josh Stanek
    Participant

      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!

      in reply to: Iterate on PID.3, Compare to MRG #81917
      Josh Stanek
      Participant

        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

        in reply to: Iterate on PID.3, Compare to MRG #81914
        Josh Stanek
        Participant

          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)

          in reply to: Iterate on PID.3, Compare to MRG #81913
          Josh Stanek
          Participant

            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!!

            in reply to: Iterate on PID.3, Compare to MRG #81911
            Josh Stanek
            Participant

              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!

              in reply to: Iterate on PID.3, Compare to MRG #81909
              Josh Stanek
              Participant

                I would do it either way—however, I think a pre-proc tcl would make more sense.

              Viewing 6 replies – 1 through 6 (of 6 total)