Clearing fields in an XLATE

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Clearing fields in an XLATE

  • Creator
    Topic
  • #52856
    Tim Pashon
    Participant

      I have an xlate where I do a pathcopy on the PV1 segment.  In the physician fields, such as PV1.7, I only want to xlate the physician code with EXTID in PV1.7.12.  In my code, I want to clear all of PV1.7 in the receiving map and use an IF statement to send only the code with EXTID.  This seems simple, but not all of the data is being cleared out of PV1.7 with my clear statement.  I copy @null to PV1.7 and I also have tried many other variations of that.  Any ideas for me?

      Thanks

    Viewing 1 reply thread
    • Author
      Replies
      • #75678
        Levy Lazarre
        Participant

          Tim,

          If you want to clear all the subfields in PV1.7, you should use a PATHCOPY @null to PV1.7 instead of COPY. Then you can copy the desired data element to the output.

          I hope this helps.

        • #75679
          Tim Pashon
          Participant

            Thanks much.  That does the trick.  Much better than moving every field in the segment!

            Thanks again.

        Viewing 1 reply thread
        • The forum ‘Cloverleaf’ is closed to new topics and replies.