OBR 28 & subfield 0

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf OBR 28 & subfield 0

  • Creator
    Topic
  • #52851
    Femina Jaffer
    Participant

      Hello All,

      I am pulling my hair thru this one!  I am iterating over the field OBR 28 to find all instances of “result copies to or cc dr”.  It is looking at each subfield (there are three) and capturing all three.  HOwever, I need to break each of the dr’s up and put them in there own temp variable.

      Eg. 18549^Jay^Jan^DOM~10944^Brown^Joshua^MD~^

      I need tmp to equal 18549, tmp2 to equal 10944.  I can’t get this to work this way.  Instead  I am getting all three together stored in a variable when I do the following

      1(0).1(0).0(0).OBR(0).#28(%f1)].[0]


      >@var

      Please advise someone?

      Thank you so much,

      Femina

      So, the question is how do you reference each DR Code?

    Viewing 1 reply thread
    • Author
      Replies
      • #75669
        Jim Kosloskey
        Participant

          Femina,

          If you are sure there can nly be three maximum, try this instead of iterating:

          1(0).1(0).0(0).OBR(0).#28(0].[0]


          >@var1

          1(0).1(0).0(0).OBR(0).#28(1].[0]


          >@var2

          1(0).1(0).0(0).OBR(0).#28(2].[0]


          >@var3

          email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 61 years IT – old fart.

        • #75670
          Femina Jaffer
          Participant

            Thanks Jim K!  That worked exactly the way I wanted.  I could of swore that I tried that and couldn’t get that to work.  Perhaps, I had left the interate too.

            Thank you so much!

            Femina

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