Mirth connection

  • Kjell Rasmundson


    Being new to OpenEmr I have a question regarding Mirth integration with OpenEmr.
    The background: I participate in a project to develop a HL7 gateway for a med tech company. The med tech device will receive incoming HL7 patient registration requests and send outgoing HL7 lab results. Mirth will be involved.
    Our idea is to use OpenEmr as a test tool.

    My question: Do I need to modifiy openEmr software source code to achieve these Mirth connections, or is it possible just to change OpenEmr configuration files?
    I couldn't really find any clear information on this. Maybe I just didn't look hard enough?

  • ViSolve

    ViSolve - 2013-12-16


    From our understanding your Problem is:
    you need to integrate your med device with a EMR(in this case OpenEMR) for demonstration. You are planning to use mirth as an intermediate Parser. So you want to know how mirth can communicate with OpenEMR.

    The Solution:

    In perspective of a developer, OpenEMR is nothing more than a Organized Database. So using mirth one can pool database and create any kind of HL7 transactions. The same reverse process can be applied to write data into database.

    Send Patient Registrations:

    Medical transactions are always Protocol Based. To register a patient one should use ADT-A04 feed. So we can directly communicate with OpenEMR database, pool necessary data records and compose a HL7 ADT-A04 message.

    Receive Result Information:

    Normally results will be sent in a HL7 ORU message. So the developer can parse information from the incoming ORU message and affect the database.

    For doing the above stuffs, there is no need to change anything in the code. May be to keep track of patient registration sent,etc you may have to alter some tables, so that mirth will manipulate the modified records and compose ADT's.

    To manipulate procedure order-results, you can make use of following tables:

    1.) Procedure Order
    2.) Procedure Type
    3.) Procedure report
    4.) Procedure result

    Hope This Helps

    OpenEMR Customization/Support provider,
    ViSolve Inc

    Last edit: ViSolve 2013-12-16
  • Rod Roark

    Rod Roark - 2013-12-16

    OpenEMR can already generate HL7 orders and receive HL7 results without itself requiring Mirth. There's some introductory info here:



    • Sherwin Gaddis

      Sherwin Gaddis - 2015-12-04

      Is there any more information on how OE is supposed to drop this HL7 file and import a return ORU from the ORM?

      Thanks, cause we're trying like the dickens to make this happen so we don't have to use myrth.

      • Rod Roark

        Rod Roark - 2015-12-04

        Sherwin, if you look in Procedures -> Providers you'll see theat SFTP and Local Filesystem are the methods currently available. If you have any specific questions I'll try to be of help.


  • Tony McCormick

    Tony McCormick - 2013-12-17

    WE use Mirth in various ways to connect HL7 sources to OpenEMR, we tend to use mirth to create reformed record from incoming HL7 into a table in OpenEMR and process it from the incoming table into the target tables.


    • shang

      shang - 2016-03-15

      Hi,Tony,sorry to disturb you,I find this discussion and really want to know the result,I was trying to connect openemr with mirth,so that I can sent procedure order to it and receive it as well,is all of this feasible?And how to configure this provider(mirth)?So many thanks!

      • Stephen Waite

        Stephen Waite - 2016-03-15

        i have mirth write the hl7 result to a file and then configure the procedure-> provider to read from either the local filesystem or sftp

        maybe you could try that approach with the order?


        Last edit: Stephen Waite 2016-03-15
      • MD Support

        MD Support - 2016-03-15

        'Provider' configuration you refer can fetch and put HL7 files .. like a broker or EDI mailbox. However, you should consider Tony's approach since Mirth connectors have much more robust handling of hl7 structures.

        • Stephen Waite

          Stephen Waite - 2016-03-15

          Rod's electronic procedure code handles the hl7 robustly, thanks MD support

  • Tony McCormick

    Tony McCormick - 2016-03-15

    If you are just pulling in lab orders then I agree, just use Rod's HL7 code.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks