Sign inSign up

fliptscript/hapi-fhir-synthea

By fliptscript

•Updated over 6 years ago

Generates R4 Synthea simulations in bulk format, optionally loading to a FHIR server.

Image
0

1.6K

fliptscript/hapi-fhir-synthea repository overview

⁠Running the Synthea R4 Patient Simulator and FHIR Import
⁠Background

MITRE Synthea is a synthetic patient generator that models the medical history of synthetic patients. You can find more about it here: https://github.com/synthetichealth/synthea/wiki⁠

⁠How to run this image

Pull the image:

docker pull fliptscript/hapi-fhir-synthea

Create a Docker network:

docker network create hin-network

NOTE: This process is intensive. Give docker plenty of memory.

Create records (example below creates 30 Patient with medical history):

docker run --rm -e SYNTHEA_SIZE=30 -v ~/Desktop/synthea/output:/synthea/output fliptscript/hapi-fhir-synthea

Additionally, seed can be passed (see Synthea for documentation):

docker run --rm -e SYNTHEA_SIZE=<size> -e SYNTHEA_SEED=<seed> -v ~/Desktop/synthea/output:/synthea/output fliptscript/hapi-fhir-synthea 

Finally, the generated resources can be sent to a FHIR server via PUT (assuming it does not require authentication). This has been tested with a HAPI FHIR server like the public instance at http://hapi.fhir.org/⁠:

docker run --rm -e SYNTHEA_SIZE=30 -e FHIR_URL=http://localhost:8001/hapi-fhir-jpaserver/fhir -v ~/Desktop/synthea/output:/synthea/output fliptscript/hapi-fhir-synthea 

Assuming a Dockerized HAPI FHIR server running on a Docker network:

docker run --network=hin-network --rm -e SYNTHEA_SIZE=30 -e FHIR_URL=http://hin-fhir-server:8080/hapi-fhir-jpaserver/fhir -v ~/Desktop/synthea/output:/synthea/output fliptscript/hapi-fhir-synthea 

Tag summary

Content type

Image

Digest

Size

1.3 GB

Last updated

over 6 years ago

docker pull fliptscript/hapi-fhir-synthea