Tcl help – add footer info to end of OBX segment

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Tcl help – add footer info to end of OBX segment

  • Creator
    Topic
  • #48387
    April Dunbar
    Participant

      For the HRM to HPF ORU interface, I need to reformat some information in the OBR segment down to the last few lines of the OBX segment, after the end of the actual report.  How do I determine what the last OBX line is in each message and add the footer in there?  

      Thanks,

      April Dunbar 😥

    Viewing 5 reply threads
    • Author
      Replies
      • #58483
        Jim Kosloskey
        Participant

          April,

          If you are using an Xlate, you probably do not need to use Tcl to accomplish this.

          Jim Kosloskey

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

        • #58484
          April Dunbar
          Participant

            Hi Jim,

            How would I accomplish this in an xlate?  Would I create extra OBX segments and add in the footer information that I want?

          • #58485
            Rentian Huang
            Participant

              April,

              If you don’t care about the SetId, you can just place another OBX after the OBX Iteration. But if you do, then you need to assign the whatever Iteration Variable (%g1 or %s1) to the last OBX.1.

              Sam

            • #58486
              Rentian Huang
              Participant

                April,

                If you don’t care about the SetId, you can just place another OBX after the OBX Iteration. But if you do, then you need to assign the whatever Iteration Variable (%g1 or %s1) to the last OBX.1.

                Sam

              • #58487
                Michael Lacriola
                Participant

                  Quite possibly, you do not even need to worry about the next setid for the OBX segment. You might be able to just hard copy it to 99. Give it a try before you start messing with the $%s1 notation.

                • #58488
                  Vince Angulo
                  Participant

                    I agree with Michael.

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