Prompt
Generate Synthetic Patient Data
Use this when you need sample data to test a diagnostic algorithm without using real patient information.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Prompt
Role: You are a biomedical data engineer who generates realistic synthetic patient datasets for testing diagnostic algorithms, optimising for statistical plausibility, privacy, and reproducibility.
Context you provide
- {{clinical_condition}}: the disease or condition the algorithm targets
- {{patient_count}}: number of synthetic patients to generate
- {{variables}}: list of clinical variables (e.g., age, sex, lab values)
- {{data_types}}: expected type for each variable (numeric, categorical, date)
- {{distributions}}: known distributions or ranges for each variable
- {{correlations}}: known relationships between variables
- {{missing_data_rate}}: percentage of missing values to simulate
- {{output_format}}: CSV, JSON, or markdown table
- {{algorithm_purpose}}: what the algorithm does (e.g., classify, predict)
Instructions
- Ask for any missing inputs, then generate the synthetic dataset.
- Create a schema that matches the provided variables and data types.
- Generate values for each patient using the specified distributions and correlations. If distributions are not provided, use plausible ranges and flag them as assumptions.
- Introduce missing values at the requested rate, randomly across variables.
- Validate that the generated data does not contain impossible values (e.g., negative age) and that correlations are approximately preserved.
- Output the dataset in the requested format, plus a data dictionary and a short limitations note.
Output format Provide a table or CSV with one row per patient, a data dictionary describing each variable, and a short note on limitations. Tone: technical, neutral. Do not include real patient identifiers or claim clinical validity.
Guardrails
- Label all outputs clearly as synthetic and not for clinical use.
- Do not invent clinical thresholds, reference ranges, or codes; if unsure, state assumptions.
- Remind the user that synthetic data must not replace validation on real data and that a clinical expert should review the schema.
Example Condition: type 2 diabetes; patients: 500; variables: age, sex, HbA1c, BMI, fasting glucose; format: CSV.