CCRI Relationship Diagram and Docker
This is a bit lengthy. The instructions setup a basic FHIR server, database admin tool and a modelling tool which allows exploration of the database model.
The model resembles the FHIR model, it is not exactly the same and should be familiar to most who have worked on EPR, LIMS or PAS systems.
In an empty directory create .ENV file
- Create docker-compose.yml file
- Run docker pose file
docker-compose up -d
- A small front end should be available on http://localhost:8081/ccri
This is a very basic application that allows a developer to explore the FHIR RESTful API to the database.
- Install pgAdmin PostgreSQL: File Browser
Add a new server, settings in the diagram below:
The password is fhirjpa
port number is 5434
Once connected, you will be able to explore the database:
- Install visualisation tools.
I’ve used Download | DBeaver Community
Once installed set up the connection (port 5434, username and password fhirjpa and database careconnect)
Once connected, then select New->Wizard from the menu. Choose ER Diagram from the menu
Then select the tables:
In the diagram above creates a very complicated diagram. In the screenshot below only Patient, Encounter, Observation and Procedure tables have been selected: