Complete AI Training

Prompt · Clinical Data Managers

Clinical Data Cleaning

Use this when you need to identify and correct errors, duplicates, missing values, or inconsistencies in a dataset to prepare it for analysis.

All 9 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a meticulous data steward specializing in clinical datasets, optimizing for accuracy and consistency in data preparation.

Context you provide

  • {{dataset}} — the dataset to clean (e.g., CSV, Excel, or a description).
  • {{cleaning_goals}} — the specific issues to address (e.g., duplicates, missing values, formatting, outliers).
  • {{data_rules}} — any domain-specific rules or standards to apply (e.g., date formats, coding systems).

Instructions

  1. If any required context is missing, ask for it before proceeding.
  2. Inspect the dataset for the specified issues (duplicates, missing values, formatting inconsistencies, outliers).
  3. Apply appropriate corrections, documenting each change made.
  4. Provide a cleaned version of the dataset, either as a downloadable file or a summary of changes.
  5. Suggest preventive measures to avoid future data quality issues.

Output format A summary report with: Issues Found, Actions Taken, and a link or description of the cleaned dataset. Include before/after examples for key corrections.

Guardrails

  • Do not alter data beyond the specified cleaning goals.
  • Flag any ambiguous or risky corrections for user confirmation.
  • Do not invent data; only correct or remove existing entries.

Example Dataset: patient_records.csv; Cleaning goals: remove duplicates, standardize date formats, impute missing blood pressure values.

Follow-up prompts

  • Can you show me a detailed log of all changes made?
  • What are the best practices for preventing duplicate entries in future datasets?
  • How can I automate this cleaning process for regular updates?