SMATDB Searching for Null Values

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf SMATDB Searching for Null Values

  • Creator
    Topic
  • #55036
    Greg Tataryn
    Participant

      I have only recently started using 6.1.1 with the SMATDB option and am trying to see when searching if there is a way to search for a field being blank/null/empty? I’d like to be able to do a search along the lines of MSH.9=A08 and PV1.45=null

      I have tried using ” or “” or {} and even null and just leaving it blank with no luck.

    Viewing 2 reply threads
    • Author
      Replies
      • #83856
        John Mercogliano
        Participant

          Greg, I have found that [^$] has given me good results when looking for an empty field.

          This should give you what you need.

          Code:

          PV1.45=[^$] and MSH.9.2=A08

          John Mercogliano
          Sentara Healthcare
          Hampton Roads, VA

        • #83857
          Greg Tataryn
          Participant

            Spoke with some Infor resources today that happened to be on site and it sounds like without using the breakdown to regular expressions there is no real way to search for null values currently but it sounds like it has been requested and may well be coming in future releases/patches.

          • #83858
            vdurst
            Participant

              In case anyone is interested, here is what works for us:

              Say you wanted to find where PID.7 is null –don’t let the numbering in code below fool you 😉

              (r)?+pid(|[^|]*){6}||

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