Iterate over the Output message in xlate

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Iterate over the Output message in xlate

  • Creator
    Topic
  • #51034
    Jon Doherty
    Participant

      Is it possible to use the Iterate action in xlate to iterate over the output message?

      Here is what I am attempting, but it is not outputing the puts statement in the copy directly following the iterate.

      Action: Iterate

      Type: group

      Basis: ~1(0).1

      Variable: %g3

      If not then I need to append my post-proc to handle this.

      Thanks in advance.

    Viewing 1 reply thread
    • Author
      Replies
      • #68516
        Jim Kosloskey
        Participant

          Jon,

          That is not possible.

          However, if you indicate what you are trying to accomplish there may be another way other than applying a proc following the Xlate.

          email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

        • #68517
          Jon Doherty
          Participant

            What I am attempting is to group certain OBX segments in my message together based on the value in OBX3. I am going from a 2.3.1 HL7 message to a 2.5 HL7 message. The problem is that the field I am using to group has already changed.

            In this translation I am adding additional OBXs (done in pre-proc), removing OBXs if the value is empty or there is no mapping to this standard (finished in post-proc), and changing the Observation Identifier in OBX3 to the new value from the standard. Because of this I can’t iterate over the old OBX segments.

            The easiest way that I can see is to do this in post proc if I can’t iterate over the new message.

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