Find Msgs with 2 or more OBR segments in SMAT

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Find Msgs with 2 or more OBR segments in SMAT

  • Creator
    Topic
  • #55640
    Steve Stepp
    Participant

      I have tried a bunch of different regex statements, but can’t seem to come up with one that will identify messages with 2 or more OBR segments. Does anyone know how to do this search? We are using Cloverleaf 5.8

    Viewing 1 reply thread
    • Author
      Replies
      • #85988
        Steve Stepp
        Participant

          I ended up solving this myself. I was trying to do something like

          Code:

          (OBR){2,}

          But it would never match. So I ended up using this instead

          Code:

          bOBRb(?:[sS]+?bOBRb)+

          EDIT: I have since found an even easier way

          Code:

          (?s)OBR.*OBR

        • #85989
          Robert Milfajt
          Participant

            If OBR-1 is set on each segment and it increments, then OBR|2 should find it, no?

            Robert Milfajt
            Northwestern Medicine
            Chicago, IL

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