Batch HL7 Messages to OB File

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Batch HL7 Messages to OB File

  • Creator
    Topic
  • #55201
    Daniel Walker
    Participant

      Good Afternoon!

      I need to build an outbound thread that will allow me to “queue” all of the transactions, and then write them out to a file once a day.

      I also need the have the filename contain the name of the source thread, along with the date/time.

      I’m not really sure where to start on this one, so I’m looking for some guidance.

      Thanks!

    Viewing 4 reply threads
    • Author
      Replies
      • #84545
        Jim Kosloskey
        Participant

          One way:

          OB Fileset/Local thread building one message per file (need a Outbound Tps Tcl proc – I have one if you need it).

          IB Fileset/Local thread to retrieve files built in the above OB thread – use advanced scheduling to schedule the run. Depending on criteria may need a DirParse proc here – I have that too.

          Route the IB thread above to a Fileset/Local OB thread which has an Outbound Tps Proc to set the filename as you need. I have one of those which might work.

          If you want any of the procs indicated that I have, email me.

          email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.

        • #84546
          Daniel Walker
          Participant

            Jim Kosloskey wrote:

            One way:

            OB Fileset/Local thread building one message per file (need a Outbound Tps Tcl proc – I have one if you need it).

            IB Fileset/Local thread to retrieve files built in the above OB thread – use advanced scheduling to schedule the run. Depending on criteria may need a DirParse proc here – I have that too.

            Route the IB thread above to a Fileset/Local OB thread which has an Outbound Tps Proc to set the filename as you need. I have one of those which might work.

            If you want any of the procs indicated that I have, email me.

            Jim –

            I appreciate the offer, and I’ll take it into consideration. However I was hoping to find a solution that would be “one and done”. There are already 6 other threads in this series, with this being the 7th. Adding 2 more is obviously undesirable, unless there is no other way.

          • #84547
            Charlie Bursell
            Participant

              I have done this many times

              Set up a UPoC protocol in two modes, time and run

              In the run mode simply append the OB message to a file

              In the time mode, when triggered, move the file where you want it to be

              Not hard to do

            • #84548
              Daniel Walker
              Participant

                Charlie Bursell wrote:

                I have done this many times

                Set up a UPoC protocol in two modes, time and run

                In the run mode simply append the OB message to a file

                In the time mode, when triggered, move the file where you want it to be

                Not hard to do

                Charlie, do you have the tcl procs that you’d be willing to share with me to accomplish this? I’m new to tcl and CL.

                Thanks!

              • #84549
                Charlie Bursell
                Participant

                  I couldn’t find one right away so I threw one together to give you a flavor of what needs to be done.  I did not test so there may be some fat finger errors

                  Set up your OB thread for UPoC for both read and write.  Put the same proc in both

                  In the read mode, use advance scheduling,  set the time when you want to move the file.

                  Modify the proc for your needs

                  Let me know if questions

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