Link Search Menu Expand Document
  1. Synthea Home
  2. Synthea Introduction
  3. Basic Setup and Running

In a termainal, change the directory to where synthea is installed and execute the run_synthea script

OSX

cd ~/Source/synthea
./run_synthea

Windows

cd c:\users\kolowitz\synthea
run_synthea.bat

Note: if running on Windows, use .\run_synthea.bat instead of ./run_synthea – this guide uses ./run_synthea for brevity

import os
import pathlib

os.chdir(os.path.join(pathlib.Path.home(), 'Source/synthea'))
# generate a population of 5 patients
!./run_synthea -p 5
# generate a population of 5 patients in Pittsburgh Pennsylvania
!./run_synthea -p 5 Pennsylvania Pittsburgh
# generate a population of 5 patients with a seed of 12345
!./run_synthea -p 5 -s 12345

Common Configuration

Source

Setting Name Valid Values Default Description
exporter.ccda.export true/false false Change this setting to true to enable exporting patients in CCDA format.
exporter.fhir.export true/false true Change this setting to false to disable exporting patients in FHIR R4 format.
exporter.text.export true/false false Change this setting to true to enable exporting patients in a simple text-based format.
exporter.csv.export true/false false Change this setting to true to enable exporting patient data in a comma-separated value format. See the CSV File Data Dictionary.
exporter.years_of_history Whole number 10 The number of years of patient history to include in patient records. For example, if set to 5, then all patient history older than 5 years old (from the time you execute the program) will not be included in the exported records. Note that conditions and medications that are currently active will still be exported, regardless of this setting. Set this to 0 to keep all history in the patient record.
!cat ./src/main/resources/synthea.properties
cat: ./src/main/resources/synthea.properties: No such file or directory