Multi-OBX Iterate Indexing

Clovertech Forums Cloverleaf Multi-OBX Iterate Indexing

  • Creator
    Topic
  • #119109
    Rich
    Participant

      Team,

      As usual, thank you for always being on the ball!  I’m having trouble copying fields in inside an iterate.  I’m basing this on a multi-OBX index.  Here’s my Iterate:

      Type: group

      Basis: 1(0).1(0).3(0).0

      Variable: %g1

      Then I do a copy from OBX.1 to OBX.4 as follows:

      1(0).1(0).3(0).0(%g1).OBX(0).#3(0).[0] -> 1(0).1(0).3(0).0(%g1).OBX(0).#3(0).[3]

      For some reason this isn’t working.  I’m using Cloverleaf 6.0.  Any ideas would be appreciated.

    Viewing 3 reply threads
    • Author
      Replies
      • #119110
        Keith McLeod
        Participant

          Are you trying to copy the first component of OBX:3 to the 4th component of OBX:3?  That is the way I read your code.  Or are you trying to do this:

          1(0).1(0).3(0).0(%g1).OBX(0).#1(0).[0] -> 1(0).1(0).3(0).0(%g1).OBX(0).#4(0).[0]

          Are you trying to copy the setid to OBX.4?

        • #119111
          Jim Kosloskey
          Participant

            Does the data match your variant?

            If you would like to work on this off-line email me and I will help. I

            email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

            • #119113
              Rich
              Participant

                Thanks, Jim, email incoming…

            • #119112
              Rich
              Participant

                I stated that wrong.  I’m coping OBX.3.1 to OBX.3.4

              • #119122
                Rich
                Participant

                  First and foremost, A HUGE thank you to Jim Kosloskey for the screen sharing session to point out where I went wrong, and taking the time to make sure I understood the groove he was laying down!

                  The best thing I learned yesterday was that understanding your data completely will reduce mistakes (and frustration).

                  Solution: I didn’t realize that my schema was double nested.  Instead of

                  1(0).1(0).3(0).0(%g1).OBX(0).#3(0).[4]

                  I needed

                  1(0).1(%g2).3(0).0(%g1).OBX(0).#3(0).[4]

                  HL7 Editor is your friend, know your data!

              Viewing 3 reply threads
              • You must be logged in to reply to this topic.