Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 978 Bytes

File metadata and controls

28 lines (19 loc) · 978 Bytes

Generate Synthea Data

About

This is a script that is used to populate Example Health with realistic synthetic patient data. 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 Example Health API's generate endpoint where it gets processed and stored in the database. The script batches together around 50 patients in apidata.json per API call.

Prerequisites

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

Running

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

Flags:

  • p
    • The population of the generated Synthea data. If flag is not used, defaults to 150.
  • u
    • REQUIRED: The Example Health API's base url.