HL7 Messages to file

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf HL7 Messages to file

  • Creator
    Topic
  • #55218
    Steve Lambert
    Participant

      I set up an interface to send to a file and it sends to a new file every hour.

      Is there a way to have it send to the same file for 24 hours before changing? I have tried the advanced settings and set that to 23hrs 59min but to no avail.

    Viewing 4 reply threads
    • Author
      Replies
      • #84604
        Keith McLeod
        Participant

          Look in your $HCIROOT/contrib directory for a file name fileset_numfile_out.tcl.

        • #84605
          David Coffey
          Participant

            In using a TCL proc you will have total control over all the attributes related to the file. Place the proc in the outbound tab in the configuration tool.

          • #84606
            Charlie Bursell
            Participant

              Keith:

              One tip I would provide.  The DRIVERCTL string IS a keyed list.  The problem with setting keyed lists by hand is there are so many opened and closed curly brackets that it easy to make an error.  I prefer:

                              keylset dvr_ctl_str  FILESET.OBFILE $dvr_ctl_str

              and let Tcl provide the curly brackets.

              With that said you could also use a OB UPoC driver setup to run the same proc in both read and write mode.  In write (Tcl run) mode simply write (append) the message to a file name saved in global.  In read (Tcl time) mode you can rename the file and move the old file to some other destination.

              While the Fileset option or UPoC option will both work, the UPoC option provides an option to do more if needed.

              Many ways to do the same thing.  You have to choose what is best for your particular case.  As I have said, that is why they pay you the big bucks  ðŸ˜›

            • #84607
              Keith McLeod
              Participant

                That is very good advice.  I had long ago tried to do keyed lists without the commands.  It gets ugly fast.  I too encourage that using the key commands is the best and easiest way to handle keyed lists.

              • #84608
                Steve Lambert
                Participant

                  Thanks I will give this a try.

                  Steve Lambert

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