# Generate synthetic patient data for machine learning

**Use case:** 

Generate synthetic patient records as FHIR R4 bundles for machine learning, with no real PHI. Set population size, age range, state, and random seed.

## Input

```json
{
  "population_size": 10,
  "seed": 1,
  "age_range": "18-65",
  "state": "Massachusetts",
  "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.