PROTOCOL:fileset-local file extension

Clovertech Forums Cloverleaf PROTOCOL:fileset-local file extension

  • Creator
    Topic
  • #114839
    Stewart
    Participant

      Currently these files are dropping with a .dat extension.  I need this to be .hl7 instead.  How do you set the file extension for this protocol?

      • This topic was modified 4 years, 11 months ago by Stewart.
    Viewing 2 reply threads
    • Author
      Replies
      • #114843
        Keith McLeod
        Participant

          Look in your $HCIROOT/contrib directory at fileset_numfile_out.tcl

          Look at how this uses DRIVERCTL…

          set dvr_ctl_str “{FILESET {{OBFILE $file_name}}}”
          msgmetaset $mh DRIVERCTL $dvr_ctl_str

          This should help you in developing your filename schema.

        • #114858
          Matthew Brophy
          Participant

            assuming you’re calling this out in your inbound directory parse in a procedure

            <p style=”text-align: left;”> foreach fileName $fileList {
            if { [regexp — {\.XXX$} $fileName] } {
            lappend newFileList $fileName
            } else {
            }
            }</p>

             

            change .XXX to be whatever file extension you are using.

             

          • #114861
            Stewart
            Participant

              Thank you.

          Viewing 2 reply threads
          • You must be logged in to reply to this topic.