Enumerate Multiple OBR segment

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Enumerate Multiple OBR segment

  • Creator
    Topic
  • #53610
    Aaron Oxenreider
    Participant

      I’m needing to enumerate mutiple OBR segments.  Currently, the input always has OBR|1, OBR|1, OBR|1…

      I need it to increase by 1 for each line.

      I setup an group iterate with basis 2 and variable of %g1.  This is the first and only Iterate in the xlate.  I set a copy =1 -> $%s1 before this iterate.

      The only two lines I have in the iterate are as follows:

      copy $%s1 -> 0(0).OBR(%s1).#1(0)

      MATH: ADD  $%s1 =1 -> $%s1

      What am I missing?  It’s not increasing OBR-1 and if I set the copy =0 -> $%s1, then at least the first one get set to 0, but nothing more after that.[/img]

    Viewing 6 reply threads
    • Author
      Replies
      • #78278
        Jim Kosloskey
        Participant

          Are you using %s1 for your ITERATE variable?

          Also are you sure the OBR for the message you are receiving is a repeating segment and not part of a repeating group?

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

        • #78279
          Aaron Oxenreider
          Participant

            Jim Kosloskey wrote:

            Are you using %s1 for your ITERATE variable?

            Also are you sure the OBR for the message you are receiving is a repeating segment and not part of a repeating group?

            I’m using %g1 as the Iterate variable. (see attached #2)

            I’m not sure how to tell the difference between a repeating segment and repeating group.  Here is the section from a test message i’m using.

            ORC|NW|600062-1|||||||20130220|||abcdefghi

            OBR|1|600062-1||80162^DIGOXIN|||20130220||1||N|||||abcdefghi|||||||||||^^^^^R

            DG1|1|I9|427.32^ATRIAL FLUTTER^I9|ATRIAL FLUTTER

            ORC|NW|600062-2|||||||20130220|||abcdefghi

            OBR|1|600062-2||80048^BMP|||20130220||1||N|||||abcdefghi|||||||||||^^^^^R

            DG1|1|I9|427.32^ATRIAL FLUTTER^I9|ATRIAL FLUTTER

            ORC|NW|600062-3|||||||20130220|||abcdefghi

            OBR|1|600062-3||81003^UA m if,culture if|||20130220||1||N|||||abcdefghi|||||||||||^^^^^R

            DG1|1|I9|427.32^ATRIAL FLUTTER^I9|ATRIAL FLUTTER

          • #78280
            Jim Kosloskey
            Participant

              Show us your message structure for this Message/Event Type in the variant being used.

              I am guessing this is a group iteration bu the variant will tell us.

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

            • #78281
              Aaron Oxenreider
              Participant

                I would like to.  What would be the best way.

                I can see what seems to be separate groups when I use the testing tool.

              • #78282
                Jim Kosloskey
                Participant

                  Go to the HL/7 Configurator and select your variant.

                  Then in the message tab select your Message/Event. The right hand pane will have the messges structure.

                  Take a screen shot of that and post.

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

                • #78283
                  Aaron Oxenreider
                  Participant

                    Jim Kosloskey wrote:

                    Go to the HL/7 Configurator and select your variant.

                    Then in the message tab select your Message/Event. The right hand pane will have the messges structure.

                    Take a screen shot of that and post.

                    Oh, that’s right.  Been a while since I’ve looked in there.

                    I’m just using the default ORM_O01, with no specific varient.

                  • #78284
                    Aaron Oxenreider
                    Participant

                      So now you’ve got me looking at this different.

                      I have a separate ORC, and therefor one 1 OBR per group.  Correct?

                      If that’s the case, then I really don’t want to enumerate as they really are separate orders, and therefor the system is working as designed.

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