Run synthea according to the README guide found https://github.com/synthetichealth/synthea/blob/master/README.md. The default setting opens the synthea.properties file to set the output parameters, such as setting the exporter.csv.export option to TRUE, which is required for https://github.com/OHDSI/ETL-Synthea, which works off of the csv files and not the fhir files. To complete the run, this function should be re-called after saving any changes to the synthea.properties file and setting edit_synthea.properties to FALSE.

run_synthea(
  seed,
  populationSize,
  moduleFilter,
  state,
  city,
  edit_synthea.properties = TRUE
)

Arguments

seed

(Optional) Seed.

populationSize

(Optional) Integer of simulated population size.

moduleFilter

(Optional) Filter for a module. For example, "metabolic*" for all metabolic modules.

state

(Optional) Population state. Defaults to Massachusetts.

city

(Optional) Population city. If provided, state must be provided.

edit_synthea.properties

If TRUE and the session is interactive, the synthea.properties file is opened for editing and the run is skipped. To run Synthea using the new properties, the function should be called again with this argument set to FALSE.

Value

Simulated data in a timestamped folder in a synthea_output path.

See also