Best way to handle null made by xlate

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Best way to handle null made by xlate

  • Creator
    Topic
  • #55794
    Tom Schlesser
    Participant

      I am trying to use a null field as a flag for additional action to take in a Translate.  The issue I am running into is the original message is not sending an NTE 3.  I have attempted to create an NTE three field by using the condition of if NTE 2 = L then make NTE 4 equal to COM.  Now I am attempting to use the tilde (~) to look at the outputted message for the NULL value that I was trying to create in NTE3.  Cloverleaf is unable to recognize the null field.  Is there a better way to handle this?  Is there a way to look for HEX values in a Cloverleaf translate.  I could look for hex values of 4C 7C (L |).  

      Any help would be appreciated.  Sample Message below

      Thank you

      Tom Schlesser

      Allina Health

      NTE|1|L|FOR FASTING ORDERS PATIENT SHOULD BE FASTING FOR 12 HOURS|COM

      NTE|2|L

      NTE|3|L|Pt is fasting

    Viewing 0 reply threads
    • Author
      Replies
      • #86521
        Keith McLeod
        Participant

          What are you trying to accomplish?  Are you iterating over the NTE segment? Probably as part of a group, possibly?

          if 1(0).0(0).NTE(%s1).#3.[0] eq @null

              # Do Something

          Just as an example…..This should be true on your second iteration where NTE-3’s value would be @null.

          NTE|1|L|FOR FASTING ORDERS PATIENT SHOULD BE FASTING FOR 12 HOURS|COM

          NTE|2|L

          NTE|3|L|Pt is fasting

          Hope this helps….

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