VXU xlate, HL7 v2.5.1, ORC RXA OBX

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf VXU xlate, HL7 v2.5.1, ORC RXA OBX

  • Creator
    Topic
  • #53423
    Johnny Anderson
    Participant

      CL v5.8, Sun, Solaris 10

      I

    Viewing 7 reply threads
    • Author
      Replies
      • #77638
        Levy Lazarre
        Participant

          Johnny,

          Did you get your iterates to work? I was able to use the test file you provided. I can make some suggestions if you still need help.

        • #77639
          Johnny Anderson
          Participant

            No.  I’ve been changing and testing many times.  I’ll take those suggestions.

          • #77640
            Levy Lazarre
            Participant

              I believe you need to adjust the paths in the Iterates as follows because all three segments being iterated upon belong to the same basic group. Also, inside the group, you need to iterate on the OBX segments since they may repeat.

              Code:



              Group Iterate
              =============
              Type: group
              Basis: 4(0).0
              Variable: %g1

              Process ORC and RXA like this (this is where the 4.0, 4.2, 4.3 applies):

              COPY: 4(0).0(%g1).0(0).ORC

              COPY: 4(0).0(%g1).2(0).RXA

              Inside the group Iterate, segment Iterate is necessary for the OBX segment

              Segment Iterate
              =============
              Type: segment
              Basis: 4(0).0(%g1).3(0).0
              Variable: %s1

              Process the OBX segments like this:
              COPY: 4(0).0(%g1).3(0).0(%s1).OBX

              I hope this helps.

            • #77641
              Johnny Anderson
              Participant

                Levy, I made the changes and ran a test.  The attachment has the details.  Four slides:

                  1. First Iterate.

                  2. Second Iterate.

                  3. Ip HL7 file format, Op FRL file format (Type-10 layout moved under Type-04 layout).

                  4. Log with error message:

              • #77642
                Levy Lazarre
                Participant

                  Johnny,

                  I think you need to remove the %g1 variable from the basis in the OBX iteration but use it while you are iterating:

                  Code:



                  Segment Iterate
                  =============
                  Type: segment
                  Basis: 4(0).0(0).3(0).0
                  Variable: %s1

                  Process the OBX segments like this:
                  COPY: 4(0).0(%g1).3(0).0(%s1).OBX

                  Let me know if it helped.

                • #77643
                  Johnny Anderson
                  Participant

                    Levy, I made the changes and ran a test.  The attachment has the details.  Four slides:

                      1. The Iterate.

                      2. Log with error message:

                  • #77644
                    Levy Lazarre
                    Participant

                      Johnny,

                      I think there was a little bit of misunderstanding. The Iterate with several digits was only intended for the OBX segments, inside the main group Iterate, not as the top level Iterate.

                      I don’t have access to the HL7 variant you are using, so I can’t give specific paths. If the last GROUP Iterate you used seems to be working, then keep it for sure.

                      The only thing I noticed is that your basis may be wrong. You are showing

                      Code:


                      4(%g1).3(0)

                      As such, the %g2 variable would not apply and you only get the first iteration (0).

                      I believe you should trim your basis to

                      Code:


                      4(%g1).3

                      Give it a try and see what happens.

                    • #77645
                      Johnny Anderson
                      Participant

                        Levy, thanks, that fixed it.  Also thanks for all your help back to day 1. The attachment is the final solution, 3 slides.

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