Announcement

Collapse

Mirth Connect 3.12.0 Released!

Mirth Connect 3.12.0 is now available as an appliance update and on our GitHub page. This release includes database performance improvements, improves visual HL7 representation, message pruning, keystore handling, PDF generation, community contributions, and fixes several security vulnerabilities. This release also contains many improvements to commercial extensions. See the release notes for the list of fixes and updates.

Download | See What's New | Upgrade Guide | Release Notes

For discussion on this release, see this thread.
See more
See less

Batch Process

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Batch Process

    I am having to convert hl7 from the Rapsody engine to the Mirth engine. I need to know if there is the ability in Mirth to combine separate messages into a single file. Rapsody has this ability and it is called Batching.

    Thanks

  • #2
    Re:Batch Process

    There are a few ways you could do this in Mirth. The simplest way may be to define a file name and put it in the channel map in your transformer, then use that as the file name in the file writer. Turn appending on rather than writing a new file each time, and you're done. You can set your transformer to change the file name based on whatever condition you want.

    If you simply want to output something like one file a day with all of your messages, all you would need to do is put the date in the filename field and leave append to file on, once again. You can pick whatever source endpoint you want to use for receiving messages on that channel.

    I think you will find tasks like this painless as you continue to use Mirth. You can also always do something like this by invoking the FileUtil from Javascript code anywhere in a Mirth channel.

    Good luck!
    Jacob Brauer
    Director, Software Development
    NextGen Healthcare

    sigpic

    Comment


    • #3
      Re:Batch Process

      Is there a way to say that once you get to a certain file size start a new file batch?

      Is there a way to say that after a certain amount of time start a new file batch?

      Sorry for the newbie questions....

      Comment


      • #4
        Re:Batch Process

        Certainly, but we don't have anything built in for that functionality. You would have to use Java/JavaScript code in the transformer in order to determine when to start a new file, and possibly even write the file directly from the transformer. Then you can just use Java to check the file size. Search a bit more on the forums for example Java code in transformers.
        Jacob Brauer
        Director, Software Development
        NextGen Healthcare

        sigpic

        Comment

        Working...
        X