Giter VIP home page Giter VIP logo

xmlfilereader_to_dbwriter's Introduction

MIRTH CONNECT EXAMPLE ON DOCKER

The goal of this multi-container docker is to test the functionalities of Mirth Connect. In particular, we will use Mirth Connect to read an HL7 message of type (ADT-A01) Admit a patient, to transform it, and then to add it to a mysql db.

The channel ./mirth-connect/channel.xml will read all the hl7 messages (with format ADT-A01) located in the container mirth-connect in the directory /home/Pickup. Each message succesfully read, will be moved to /home/Dropoff; otherwise, the message will be relocated to /home/Error. In addition, every succesfull message will be transformed and added to the table PERSON in the db mirth-test.

A Mirth-Connect image can be found here with instructions here on how to use it.

Configuration

  1. Create all the containers in detached mode:

     docker-compose up -d
    
  2. Open Mirth Connect by double clicking file webstart.jnlp. Use credentials:

     admin
     admin
    
  3. Once Mirth Connect is open, we need to import the example channel. Click on Channels located on left menu.

  4. Also on the left menu, click Import Channel and add the channel ./mirth-connect/channel.xml

  5. ssh into the container mirth-connect and cd into /home/Pickup. You will need the id of the mirth-connect container which you may find by running docker ps:

     docker exec -it <mirth-connect_container_id> bash
     cd /home/Pickup
    
  6. Create a file with extension .hl7 and add the following HL7 message:

     MSH|^~\&|EPICADT|DH|LABADT|DH|201301011226||ADT^A01|HL7MSG00001|P|2.3| EVN|A01|201301011223|| PID|||MRN12346^2^M11||Noether^Emmy||19710101|F||C|1 DATICA STREET^^MADISON^WI^13001-1020|GL|(414)379-1212|(414)271-3434||S||MRN12344001^2^M10|123456789|987654^NC| 
    
  7. Deploy channel.

Useful:

  • ssh into container:

      docker exec -it <mycontainer> bash
    
  • database credentials:

      database: mirth-test
      user: mirth
      password: password
    

xmlfilereader_to_dbwriter's People

Contributors

marlycormar avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.