Showing how to use MySQL with HAPI FHIR rather than the file based derby database. My goal is to more easily access manipulate the data with the tools in the MySQL ecosystem. For example I generated the EER diagram using MySQL Workbench.
This worked. I had issues with Method 2. You use the docker image from hbits. Bhits also has a git repo.
- run
docker-compose up
- browse to
http://http://localhost:9090/hapi-fhir-jpaserver/
You can use curl to populate FHIR resources using this base URL http://localhost:9090/hapi-fhir-jpaserver/baseStu3
. Find examples in the curl-fhir-resources
folder.
The set up instructions I got from How-to-guide.
NB I had issues getting this to work.
- Clone HAPI FHIR repo
- Change FHIRServerConfig.java in the hapi-fhir-jpaserver-example to set password & change driver to MySQL.
- run
docker-compose up
- Browse to
http://http://localhost:9090/hapi-fhir-jpaserver/