Would like to write HL7 ORM message to individual files.

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Would like to write HL7 ORM message to individual files.

  • Creator
    Topic
  • #53986
    Robert Denny
    Participant

      I am working on pulling on type of ORM test from an inbound thread, and create a thread that will write each ORDER message to a text file.

      My proc does write the message to the file, but I am not sure how to configure it to drop the file where I need it.

      Anyone ever done this before?

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

          Robert,

          Why not just route the messages to a Fileset/Local thread and let the engine do most of the work?

          You might need a proc to set the TrxID to route.

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

        • #79771
          Robert Denny
          Participant

            Hi Jim, Happy New Year to you.

            I got it working as far as dropping the file where I need it, but I keep overwriting the orginal file with the next message.

            I am going to work on the proc to see if I give the file name a more unique name if that will allow the second ORM to write to a new file and so on and so on.

            If I still have issues, I will post more details about the configuration I have setup.

          • #79772
            Russ Ross
            Participant

              Here is an old post I did to help show others a tangible expample with screen shots of using the numfile protocol that used to be in older versions of cloverleaf but now requires a custom tps proc to accomplish.

              Russ Ross
              RussRoss318@gmail.com

            • #79773
              Jim Kosloskey
              Participant

                Robert,

                Happy New Year to youa s well.

                I just sent you an updated proc to do what you want. Check your email.

                This proc allows a fair amount of flexibility in naming the file.

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

              • #79774
                Brandon Grudt
                Participant

                  Here is a snippet of a script I created to save future admissions for processing on the 1st of the next month.

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