This repository contains the exercise materials for MI-Lab Exercise 2 on transforming CSV to FHIR using Mirth-Connect and Hapi FHIR.
- Docker Installation
- Docker-Compose
- Mirth-Connect Installation
- Docker Network with Mirth-Connect
- Mirth-Connect Folder Structure
Prerequisites: Docker with Docker-Compose, Java
Docker Desktop Download (Windows) For other operating systems, see: Docker Important: The installation will restart your computer once
- Configuration

- Continue without signing in
Click "Skip" to use Docker Desktop without logging in
- Installation completed

Important: Docker Desktop must be running in order to work with Docker.
- Clone the GitHub repository into a new folder:
git clone https://github.com/IMISE/MI-Lab-CSV-FHIR-transformation.git - Navigate from the root folder
MI-Lab-CSV-FHIR-transformationto theSetupfolder containing the filedocker-compose.yml - Open a terminal in this folde
- Run the command:
docker-compose up -dThis will pull all Docker images from a server. The download takes about 5 minutes. It will look like this in Docker Desktop:
- Open
http://localhost:8080in your browser Or access it via Docker Desktop:
- Click Download Administrator Launcher
- nstall the downloaded file "mirth-administrator-launcher-latest-windows"
For this exercise, several applications are required, which are connected via a network as Docker containers. Using Docker-Compose, all required containers can be started with a single command.
The following containers (applications) are available after starting docker-compose:
| Container | Ports | Volumes | Purpose |
|---|---|---|---|
| Mirth-Connect | 8080, 8443 | Folder: /Setup/mirth-connect/ | Main application |
| Mirth-Connect Database | 5434 | Database for storing Mirth-Connect data | |
| Hapi FHIR | 8090 | Hapi FHIR server where the final mapped FHIR resources are sent | |
| Hapi FHIR Database | 5433 | Database for storing Hapi FHIR data | |
| ClinFHIR | 8000 | Browser application for graphical visualization of FHIR data |
In this exercise, Mirth-Connect should access the CSV files in a defined folder and read them. Since Mirth-Connect runs isolated within a
Docker container, a folder inside the container is mapped to a local folder on the computer.
More information can be found in the Docker documentation on Volumes.
Docker container folder: /opt/connect/appdata
Local folder: /Setup/mirth-connect
Important: Only files and subfolders within the folder /Setup/mirth-connect are recognized by Mirth-Connect.