Multiple files created in a single Fileset Local thread

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Multiple files created in a single Fileset Local thread

  • Creator
    Topic
  • #50252
    john benevento
    Participant

      We’re adding a new thread to our ADT process which will use fileset-Local on the outbound to write A04 messages to a file in a new folder on Cloverleaf (All of our other ADT threads use tcpip for both IB/OB).  The new application will pick up the file from this folder on a scheduled basis, but it requires that each file contain one message only (representing a single outpatient visit) with the medical record number as part of the filename.  Does Cloverleaf have any provisions for writing each message in a fileset-Local protocol to a separate file?

    Viewing 5 reply threads
    • Author
      Replies
      • #65341
        Bryan Dort
        Participant

          John,

          I’m doing this same thing for A08s after discharge on certain threads. I’m using a modified .tcl for the outbound provided from Russ Ross.  Check out https://usspvlclovertch2.infor.com/viewtopic.php?t=1663” class=”bbcode_url”>https://usspvlclovertch2.infor.com/viewtopic.php?t=1663.

          Bryan

        • #65342
          john benevento
          Participant

            Thanks, Bryan.  Unfortunately, I’m not too familiar with .tcl procs and am just starting to learn the basics.  I would really appreciate it if you can provide me with some of the code you’re using – perhaps I could figure out how to modify it for my own thread.

            John

          • #65343
            Bryan Dort
            Participant

              Take a look at the tps_fileset_outbound.tcl that Russ posted in https://usspvlclovertch2.infor.com/viewtopic.php?t=1663” class=”bbcode_url”>https://usspvlclovertch2.infor.com/viewtopic.php?t=1663 with the screen shots of how to setup the thread and where to put the tcl.

            • #65344
              john benevento
              Participant

                Thanks for your help, Bryan – I’ll give it a try.  Where would I create the Tcl Procedure?  I assume there’s an editor in Cloverleaf to accomplish this.  Can I just copy and paste the code from the post?

                John

              • #65345
                john benevento
                Participant

                  Hi Bryan

                  Please disregard the last post – it works!

                  The only other thing I need to modify is to include the value of PID-4 (patient medical record number) in the name of each file.  Do you know if it is possible to include specific message data in the filename?

                  John

                • #65346
                  Rentian Huang
                  Participant

                    John,

                    Use

                    Code:

                    msgmetaset $mh USERDATA FileName


                    to set your file name to the USERDATA of a message. Then use

                    Code:

                    msgmetaset $mh DRIVERCTL “{FILESET {{OBFILE $newfname}}}”


                    to set your output file name.

                    Sam  8)

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