Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Latest commit

 

History

History
36 lines (24 loc) · 1.61 KB

README.md

File metadata and controls

36 lines (24 loc) · 1.61 KB

Generate Synthea Data

About

This is an alternative to populate Example Health Analytics with patient and allergy data as opposed to getting data from a data source. The bash script works by cloning Synthea, running Synthea to generate data, converting the Synthea data output to a JSON file, and sending the apidata.json JSON file to the data service of Example Health Analytics where it is processed and stored in the datalake.

Prerequisites

  • NPM: Install here
  • Install dependencies:
npm install
  • Java 1.8 or above: Install here

Running

./generate.sh -p [population] -s [state] -u [url]

Flags:

  • p
    • The population of the generated Synthea data. If flag is not used, defaults to 100.
  • s
    • The state for where the Synthea data will be generated. If flag is not used, defaults to California.
  • u
    • The API url for the data service of Example Health Analytics. If flag is not used, defaults to http://localhost:3000

License

This code pattern is licensed under the Apache License, Version 2. Separate third-party code objects invoked within this code pattern are licensed by their respective providers pursuant to their own separate licenses. Contributions are subject to the Developer Certificate of Origin, Version 1.1 and the Apache License, Version 2.

Apache License FAQ