Counting 3,834 Big Data & Machine Learning Frameworks, Toolsets, and Examples...
Suggestion? Feedback? Tweet @stkim1


SyntheaTM Patient Generator Build Status codecov

SyntheaTM is a Synthetic Patient Population Simulator. The goal is to output synthetic, realistic (but not real), patient data and associated health records in a variety of formats.

Read our wiki for more information.

Currently, SyntheaTM features:

  • Birth to Death Lifecycle
  • Configuration-based statistics and demographics (defaults with Massachusetts Census data)
  • Modular Rule System
    • Drop in Generic Modules
    • Custom Java rules modules for additional capabilities
  • Primary Care Encounters, Emergency Room Encounters, and Symptom-Driven Encounters
  • Conditions, Allergies, Medications, Vaccinations, Observations/Vitals, Labs, Procedures, CarePlans
  • Formats
    • FHIR (STU3 v3.0.1, DSTU2 v1.0.2 and R4)
    • C-CDA
    • CSV
  • Rendering Rules and Disease Modules with Graphviz

Quick Start


System Requirements: SyntheaTM requires Java 1.8 or above.

To clone the SyntheaTM repo, then build and run the test suite:

git clone
cd synthea
./gradlew build check test

Generate Synthetic Patients

Generating the population one at a time...


Command-line arguments may be provided to specify a state, city, population size, or seed for randomization.

Usage is

run_synthea [-s seed] [-p populationSize] [-m moduleFilter] [state [city]]

For example:

  • run_synthea Massachusetts
  • run_synthea Alaska Juneau
  • run_synthea -s 12345
  • run_synthea -p 1000
  • run_synthea -s 987 Washington Seattle
  • run_synthea -s 21 -p 100 Utah "Salt Lake City"
  • run_synthea -m metabolic*

Some settings can be changed in ./src/main/resources/

SyntheaTM will output patient records in C-CDA and FHIR formats in ./output.

SyntheaTM GraphViz

Generate graphical visualizations of SyntheaTM rules and modules.

./gradlew graphviz

Concepts and Attributes

Generate a list of concepts (used in the records) or attributes (variables on each patient).

./gradlew concepts
./gradlew attributes


Copyright 2017-2019 The MITRE Corporation

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Latest Releases
 Jan. 22 2019
 Jan. 18 2019
 Sep. 27 2018
 Jul. 6 2018
 Feb. 6 2018