Create multiple group based on Number of segments in a group

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Create multiple group based on Number of segments in a group

  • Creator
    Topic
  • #54620
    Amith Lankesar
    Participant

      Hi there, I’ve tried looking for help in the forum but can’t find anything that related to my odd translation in CL5.8.

      I have an ORM with the following structure:

      MSH

      EVN

      PID

      PV1

      {

       ORC

       RXO

       RXR

       {RXG}

      }

      This will convert to an RDS with a similar structure:

      MSH

      EVN

      PID

      PV1

      {

       ORC

       RXD

       RXR

      }

      The problem is that the {RXG} is repeated. So this to work I need to create the ORC,RXD, RXR again eg

      MSH

      EVN

      PID

      PV1

      ORC

      RXD|1|values from RXG1

      RXR

      ORC

      RXD|2|values from RXG2

      RXR

      My translation works for only the first RXG, so all I get is:

      MSH

      EVN

      PID

      PV1

      ORC

      RXD|1|values from RXG1

      RXR

      The source message can contain single or multiple RXG.

      1) How do I use a segment iteration to create a new group?

      2) Will I need to use a TCL?

      Thanks for your help in advance.

    Viewing 1 reply thread
    • Author
      Replies
      • #82249
        Robert Milfajt
        Participant

          Create a group variable for your Destination and maintain it in your code.

          Robert Milfajt
          Northwestern Medicine
          Chicago, IL

        • #82250
          Amith Lankesar
          Participant

            Thanks SO MUCH Robert. That has worked perfectly.

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