{"id":17322314,"url":"https://github.com/marlycormar/xmlfilereader_to_dbwriter","last_synced_at":"2026-05-09T01:04:34.881Z","repository":{"id":152320762,"uuid":"108322426","full_name":"marlycormar/xmlFileReader_to_dbWriter","owner":"marlycormar","description":"Mirth-connect example channel that reads, transforms, and saves hl7 messages to a mysql db.","archived":false,"fork":false,"pushed_at":"2018-06-27T20:00:14.000Z","size":6198,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T09:12:53.046Z","etag":null,"topics":["channel","compose","database-writer","docker","file-reader","mirth","mirth-connect","mysql","xml"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marlycormar.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-25T20:28:12.000Z","updated_at":"2025-01-10T15:05:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"f4dbeff1-52da-460c-90c2-cbbf5aefeb77","html_url":"https://github.com/marlycormar/xmlFileReader_to_dbWriter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlycormar%2FxmlFileReader_to_dbWriter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlycormar%2FxmlFileReader_to_dbWriter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlycormar%2FxmlFileReader_to_dbWriter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlycormar%2FxmlFileReader_to_dbWriter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marlycormar","download_url":"https://codeload.github.com/marlycormar/xmlFileReader_to_dbWriter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245778167,"owners_count":20670682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["channel","compose","database-writer","docker","file-reader","mirth","mirth-connect","mysql","xml"],"created_at":"2024-10-15T13:41:40.516Z","updated_at":"2026-05-09T01:04:29.838Z","avatar_url":"https://github.com/marlycormar.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MIRTH CONNECT EXAMPLE ON DOCKER\n\nThe 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.\n\nThe 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**.\n\nA **Mirth-Connect** image can be found [here](https://hub.docker.com/r/marlycormar/mirth-connect-3.5.1/) with instructions [here](https://github.com/marlycormar/mirth-connect-3.5.1) on how to use it.\n\n## Configuration\n1. Create all the containers in detached mode:\n\n        docker-compose up -d\n     \n1. Open Mirth Connect by double clicking file **webstart.jnlp**. Use credentials:\n\n        admin\n        admin\n\n1. Once Mirth Connect is open, we need to import the example channel. Click on **Channels** located on left menu.\n\n1. Also on the left menu, click **Import Channel** and add the channel `./mirth-connect/channel.xml`\n\n1. `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`:\n\n\t\tdocker exec -it \u003cmirth-connect_container_id\u003e bash\n\t\tcd /home/Pickup\n\n1. Create a file with extension `.hl7` and add the following HL7 message:\n\n\t\tMSH|^~\\\u0026|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| \n\n1. Deploy channel.\n\n\n## Useful:\n\n- ssh into container:\n\n        docker exec -it \u003cmycontainer\u003e bash\n\n- database credentials:\n\n\t\tdatabase: mirth-test\n\t\tuser: mirth\n\t\tpassword: password\n\t\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarlycormar%2Fxmlfilereader_to_dbwriter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarlycormar%2Fxmlfilereader_to_dbwriter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarlycormar%2Fxmlfilereader_to_dbwriter/lists"}