# Generate a synthetic EHR dataset for research

**Use case:** 

Generate a synthetic EHR dataset as FHIR R4 bundles, reproducible by seed, with no real PHI. Control population size, gender, and state.

## Input

```json
{
  "population_size": 10,
  "seed": 42,
  "gender": "F",
  "age_range": "0-100",
  "state": "California",
  "exporter_fhir_use_us_core_ig": false
}
```

## Output

```json
{
  "patient_count": {
    "label": "Patient Count",
    "format": "integer"
  },
  "generation_timestamp": {
    "label": "Generation Timestamp",
    "format": "string"
  },
  "summary": {
    "label": "Generation Summary",
    "format": "object"
  },
  "generated_files": {
    "label": "Generated Files",
    "format": "object"
  }
}
```

## About this Actor

This example demonstrates how to use [Synthea - Create Synthetic FHIR Compliant Health Records](https://apify.com/johnvc/synthea-medical-record-generator-api) with a specific input configuration. Visit the [Actor detail page](https://apify.com/johnvc/synthea-medical-record-generator-api) to learn more, explore other use cases, and run it yourself.