XLate ?

  • Creator
    Topic
  • #51010
    Tom Arrowsmith
    Participant

    Hello,

    I am trying to XLate for the following:

    If         2(0).1(0).0(0).OBR.00258 eq=CHECKED IN

    COPY    =ORDCHK -> 0(0).MSH.00014

    How do I deal with the “CHECKED IN” value having a space? I’ve tried parens and/or brackets around the value – I’ve tried quotes….

    Nothing works so far

    Advice?

    Thanks!

    Tom

Viewing 0 reply threads
  • Author
    Replies
    • #68426
      Tom Rioux
      Participant

      Tom,

      You will have to put the words “CHECKED IN” into a variable and then use it in the IF statement.   Also, when using an IF statement, it is best to also include the subfield designation, even if the field has only a single field.  Try this in your xlate:

      COPY   =CHECKED IN  -> @check

      IF 2(0).1(0).0(0).OBR.00258.[0] eq @check

         COPY    =ORDCHK -> 0(0).MSH.00014

      Hope this helps….

      Tom Rioux

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

Forum Statistics

Registered Users
4,978
Forums
28
Topics
9,052
Replies
33,408
Topic Tags
238