Blanking out entire segments on a conditional basis.

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Blanking out entire segments on a conditional basis.

  • Creator
    Topic
  • #48435
    Gordon Wilkinson
    Participant

      On a conditional basis using an IF statement (If patient ENGINE=xxx), I need to blank out the entire IN1 segment (which is repeating) in a A14 translation.  Is there a sweeping way to do this or will I need to copy @null into each and every field?

    Viewing 2 reply threads
    • Author
      Replies
      • #58627
        Rentian Huang
        Participant

          Gordon,

          If you just want to suppress the IN1, put an IF statement and put the PATHCOPY in it. But if you wanna specifically blank out all fields, I guess you need to copy @null into each and every field.

          Sam  8)

        • #58628
          Jim Kosloskey
          Participant

            Gordon,

            Are you using BULKCOPY?

            Jim Kosloskey

            email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

          • #58629
            Michael Lacriola
            Participant

              Lots of options….COPY @null will work on every field, but lots of code. PATHCOPY @null to the segemnt (i.e. 0(0).IN1 will certainly work. If you have a variant and never want the IN1, or 2, or 3, remove it from the A14 message and you won’t have to worry about the BULKCOPY, COPY or PATHCOPY statements in the Xlate.

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