How to Limit Repeative HL7 Field in Xlate mapping

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf How to Limit Repeative HL7 Field in Xlate mapping

  • Creator
    Topic
  • #52848
    Raj
    Participant

      I Am trying to limit  DG1 segment coming from HL7 message to only 3 repeats if the original one has more than 3 DG1 segments info   and  can this be done using Iterate or by tcl not sure  how i can get this mapped.

      Any Help or suggestion will be of great help.

      Raj 🙂

    Viewing 2 reply threads
    • Author
      Replies
      • #75657
        Boris Perov
        Participant

          Have you tried something like this?  I don’t have access to a licensed system so I can’t test it right this second…

        • #75658
          Tom Rioux
          Participant

            Set your iterate up as list.

            Type: List

            Basis: 0 1 2

            Variable: %l1

            This should get you what you want.   I have tested it in an xlate and it works.

            Thanks…

            Tom

          • #75659
            Keith McLeod
            Participant

              You can also just use the if statement against the iteration variable.

              If $%s1 < =3

              pathcopy your %s1 segment

              This would copy 0 1 and 2 of cours e with the proper syntax….

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