Iterate Help – Xlate Help

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Iterate Help – Xlate Help

  • Creator
    Topic
  • #49300
    Courtney Bush
    Participant

      Hi there,

      I’m working on a xlate (attached) that will handle both of these examples:

      Example 1

      MSH

      PID

      ORC

      OBR

      OBX-1

      NTE-2

      NTE-2

      OBX-2

      NTE-1

      NTE-2

      Example 2

      MSH

      PID

      ORC

      OBR

      OBX-1

      OBX-2

      OBX-3

      NTE-1

      NTE-2

      NTE-3

      *Where the NTE segments “belong” to the last OBX segment – in this case OBX-3.

      The xlate I have will handle Example 1 just fine, but will give me the following results for Example 2.

      MSH

      PID

      ORC

      OBR

      OBX-1

      NTE-1

      NTE-2

      NTE-3

      My desired result is:

      MSH

      PID

      ORC

      OBR

      OBX-1

      OBX-2

      OBX-3

      NTE-1

      NTE-2

      NTE-3

      I have messed with this xlate for a couple of days, and I have read all of the iterate posts on here that could be related, and I’m not any closer.

      Any help would be very much appreciated.

      Thanks,

      Courtney

    Viewing 1 reply thread
    • Author
      Replies
      • #61436
        Courtney Bush
        Participant

          OK, let’s try adding that attachment again….

        • #61437
          Anonymous
          Participant

            Just looking at your example and thinking off the top of my head, I would want to first look at the nested iterate for the NTE segment.  With the results you are getting it sounds like you have a basis issue.  With the way you say it is acting, I would think  that the basis for the NTE iterate is set up as:

            Basis= 1(0).NTE    variable= %s1

            If this is the case, then try setting it up as

            Basis= 1(%g1).NTE variable= %s1

            Hope this helps.  Let me know if it doesn’t and I will tinker with your xlate.  You can email me direct.

            Thomas Rioux

            thomas.rioux@memorialhermann.org

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