Generate a synthetic EHR dataset for research
John
Generate a synthetic EHR dataset as FHIR R4 bundles, reproducible by seed, with no real PHI. Control population size, gender, and state.
Input
Output fields
Sign up on Apify or log in
The Synthea - Create Synthetic FHIR Compliant Health Records Actor is ready to run with the inputs already set for "Generate a synthetic EHR dataset for research". Sign up or log in and you'll land in Apify Console with a copy of this exact task.
Start the "Generate a synthetic EHR dataset for research" task
The Synthea - Create Synthetic FHIR Compliant Health Records Actor will start running based on the input automatically. You can also change all the input fields, like population size, random seed, and more, to match your specific use case.
Receive the "Generate a synthetic EHR dataset for research" output
Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as patient count, generation timestamp, generation summary, and more.
Integrate into your workflow
The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Generate a synthetic EHR dataset for research" task via API.

Integrate "Generate a synthetic EHR dataset for research" into your workflow
Connect "Generate a synthetic EHR dataset for research" with 100+ integrations, or run it via API or MCP.
Webhook
n8n
Make
Zapier
Airbyte
Keboola
IFTTT
Hubspot
GDrive
Gmail
Apify MCP
GitHub
Slack
LangChain
LlamaIndex
Flowise
Pinecone
OpenAI
Mastra
Clay
Generate a synthetic EHR dataset for research returns a summary item with patient_count, generation_timestamp, summary and generated_files, and stores ten FHIR R4 bundles for synthetic women in California, each a full fabricated history.
population_size 10, seed 42, gender F and state California. Because seed 42 is fixed, another researcher running the same input gets the identical synthetic cohort, which makes a methods section reproducible.
POST to the task's run endpoint on the Apify API or use apify-client, then fetch the dataset item as JSON. Each entry in the bundle list carries a key_value_store_key for downloading that synthetic patient's FHIR Bundle.
In the Apify Console choose Actions, then Schedule, and set 0 6 1 1,4,7,10 * for the start of each quarter. reference_date defaults to the run date when left empty, so set it if every run must match one study date.
Register https://mcp.apify.com/?tools=actors,docs,johnvc/synthea-medical-record-generator-api in Claude or any MCP client and ask for ten synthetic female patients in California with seed 42. The agent runs the Synthea Actor.
The Synthea Actor charges a fee per patient record generated plus an Actor Start charge when each run begins, so population_size drives the total for a research cohort. Current rates are listed on the Actor page.
Generate a synthetic EHR dataset for research fixes seed 42; add clinician_seed to keep clinician assignments stable and set reference_date. Generate synthetic patient data for machine learning follows the same pattern with seed 1.