Iteration on OBX

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Iteration on OBX

  • Creator
    Topic
  • #51009
    Ray Mullen
    Participant

      Hi ,

      Hi I have a message with multiple OBR and OBX segments and need to change the value in the third field of every OBX within a translate. I have set up an iteration with the following

      Type : group  Basis: 1(0).1(0).1 variable: %g1 and within the translate

      Pathcopy: Input  : =L     Output :    1(0).1(0).1(%g1).OBX.00571.[2]

      This changes all the values in the first set of OBX

    Viewing 1 reply thread
    • Author
      Replies
      • #68424
        Tom Rioux
        Participant

          Ray,

          If your variant is set up in a similar fashion to ours, then you have a group for the OBX/NTE segments.   The iteration for this is set up just as you have described below:

          Type : group  Basis: 1(0).1(0).1 variable: %g1 and within the translate

          Pathcopy: Input  : =L     Output :    1(0).1(0).1(%g1).OBX.00571.[2]

          You should also have a grouping that includes all of the OBR, OBX, and the associated NTE’s, if any.   You will probably need to do nested iterates like:

          Type : group  Basis: 1(0).1 variable: %g1

             Type : group  Basis: 1(0).1(%g1).1 variable: %g2

             (and within the translate)

             Pathcopy: Input  : =L     Output :    1(0).1(%g1).1(%g2).OBX.00571.[2]

          Hope this helps….

          Tom Rioux

        • #68425
          Ray Mullen
          Participant

            Thanks Tom , for your reply , that worked fine for me using nested iteration. it’s very much appreciated

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