PR1 Iteration Question

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf PR1 Iteration Question

  • Creator
    Topic
  • #53376
    santiago guzman
    Participant

      Hello,

      I’m trying to do an iteration with the PR1 segment. This is the fallowing output with just a BULKCOPY:

      MESSAGE 1

      0(0).MSH(0)  :  >data…

      0(0).EVN(0)  :  >data…

      0(0).PID(0)  :  >data…

      0(0).PV1(0)  :  >data…

      0(0).DG1(0)  :  >data…

      0(0).DG1(1)  :  >data…

      0(0).DG1(2)  :  >data…

      0(0).DRG(0)  :  >data…

      1(0).0(0).PR1(0)  :  >data…

      1(0).0(1).PR1(0)  :  >data…

      1(0).0(2).PR1(0)  :  >data…

      But what I’m trying to do is to with every PR1 line I want to manipulate the data as the Iteration increments. Currently the manipulation of the data doesn’t goes beyond the 1(0).0(0).PR1 and doesn’t do anything for 1(0).0(1).PR1 etc… For my iteration I’m doing the group type. The HL7 layout is as fallows:

      [ DG1 ]

      [ DRG ]

      [

      {

       PR1

       [{ ROL } ]

      }

      ]

      Any help would be great.

    Viewing 6 reply threads
    • Author
      Replies
      • #77474
        Chris Williams
        Participant

          Taking your example, the iteration Basis should be “1(0).0”, the piece that is to the left of the number that is changing. If your iteration Variable is “%g1”, you would reference the individual segments within the iteration as “1(0).0(%g1).PR1(0)”

        • #77475
          santiago guzman
          Participant

            So if I was to set every PR1.#1 to equal 123 it would look something like this?

            ITERATION

            TYPE: group

            BASIS: 1(0).0

            VARIABLE:%g1

            COPY

            =123 -> 1(0).1(0).0(%g1).PR1(0).#1(0)

          • #77476
            Chris Williams
            Participant

              No. That’s not what you gave in your original example. In your latest example you have an additional group level.

            • #77477
              santiago guzman
              Participant

                How would that look?

              • #77478
                Chris Williams
                Participant

                  Contact me directly and we can walk through this together.

                • #77479
                  santiago guzman
                  Participant

                    Can you send me you’re contact information

                  • #77480
                    Chris Williams
                    Participant

                      Click on my EMail button above.

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