Hi,
Not sure how helpful this will be to us, but been learning about HAPI FHIR and how to set up server etc. Nicely, there is a HAPI FHIR docker. Here’s a docker-compose.yml script that I used to bring in HAPI FHIR, openemr(5.0.1), mysql, and phpmyadmin on a cloud instance (trying out google cloud so did this on a ubuntu instance there with just docker installed):
# admin/pass are default user/password credentials for openemr
# openemr is default mysql database
# openemr/openemr are default user/password credentials for mysql openemr database
version: '2.0'
services:
mysql:
restart: always
image: mysql
command: ['mysqld','--character-set-server=utf8']
environment:
MYSQL_ROOT_PASSWORD: root
hapi-fhir:
restart: always
image: bradymiller/hapi-fhir-jpaserver-example
ports:
- 8080:8080
openemr:
restart: always
image: openemr/openemr
ports:
- 80:80
- 443:443
environment:
MYSQL_HOST: mysql
MYSQL_ROOT_PASS: root
MYSQL_USER: openemr
MYSQL_PASS: openemr
OE_USER: admin
OE_PASS: pass
links:
- mysql
- hapi-fhir
phpmyadmin:
restart: always
image: phpmyadmin/phpmyadmin
ports:
- 81:80
environment:
PMA_HOST: mysql
links:
- mysql
Just to demonstrate that it works(already ‘published’ one patient from OpenEMR to HAPI FHIR), I’ll leave it up on the google cloud instance for awhile:
OpenEMR is at http://35.229.69.20 (admin/pass credentials)
HAPI FHIR is at http://35.229.69.20:8080
And if just need a HAPI docker going locally without openemr and other stuff, then following docker-compose.yml script would suffice:
version: '2.0'
services:
hapi-fhir:
restart: always
image: bradymiller/hapi-fhir-jpaserver-example
ports:
- 8080:8080
Note the hapi-fhir-jpaserver-example image is from my dockerhub (there appears to be no already built docker, so I built it and posted it to make it easier to use (and will plan to update it to most recent version every once in awhile)).
-brady