Glossary · Data and documentsUpdated October 15, 2026

What is clinical data cleaning?

Clinical data cleaning is the process of finding and resolving errors, omissions and inconsistencies in trial data so that the final dataset is accurate and complete enough to analyse. It runs throughout the trial, not only at the end.

  • Data cleaning in plain language
  • How it works in practice
  • Related terms

Free sandbox · No credit card · 21 CFR Part 11 aligned

Data management

Clinical data cleaning

noun · clinical research

Identifying, querying and resolving discrepancies in clinical trial data until the dataset is ready to be locked and analysed.

Related terms

Edit checkData queryReconciliationDatabase lockSource data verification

In short

  • Cleaning means detect, query, resolve and document. The fix is made by the person with access to the source, and the change is recorded.
  • Most errors are cheapest to catch at entry with edit checks; others only show up when data are compared across forms, visits or systems.
  • Cleaning never means silently overwriting values. A traceable audit trail shows what changed, who changed it and why.
  • The finish line is database lock: no open queries, reconciled safety data, and sign-off.

Explained

What gets cleaned, and how

Data cleaning is a core part of clinical data management. It aims to make sure that what is in the database matches what happened to the participant. The rules for what to check are normally written down in advance, in a data management plan and a data validation plan; see the data management plan template and the data validation plan template. Our clinical data cleaning guide covers the working routine.

A discrepancy is any data point that fails a check or looks implausible. The data manager or monitor raises a query to the site, the site checks the source and either corrects the value or confirms it, and the query is closed. Everything is recorded so that an inspector can reconstruct the history.

Common kinds of check

Range checks flag values outside a plausible or protocol-allowed range, such as a systolic blood pressure of 1200. Consistency checks compare fields on the same or different forms, for example an adverse event start date before consent, or a visit date before the previous visit. Missing-data checks catch required fields left blank. Cross-form and cross-system checks reconcile data held elsewhere, such as safety cases or central lab results.

Cleaning versus monitoring versus coding

Cleaning looks at the data. Monitoring looks at conduct and compliance, including source data verification. Medical coding assigns standard dictionary terms to events and medicines. They overlap in practice, and the plan should say who owns which step.

What cleaning must not do

Cleaning is not data manipulation. Changes are made to correct documented errors, with a reason, and not to improve results. Blinded teams should not use unblinded information while cleaning. Missing values are queried, not guessed.

Examples

A few checks with demo data

Illustrative checks of the kind a data manager might write. Values are made up for demonstration.

CheckExample findingTypical action
RangeHeart rate recorded as 720 bpm at Visit 3Auto-query to site; likely extra digit
Date logicAE onset date earlier than consent dateQuery: confirm date or whether it is medical history
Missing valueWeight blank at baseline, BMI cannot be calculatedQuery for value or "not done" reason
Cross-formMedication recorded for an AE, but no matching con-med rowQuery to complete concomitant medications
DuplicateTwo enrolment records with the same subject IDCheck site log and merge or correct

Workflow

The cleaning cycle

  1. 1

    Define the checks

    List edit checks and manual review rules before first participant in, in line with the protocol.

  2. 2

    Catch errors at entry

    Automated checks fire when the value is typed, while the site still has the participant and source to hand.

  3. 3

    Review listings

    Data management reviews outliers, trends and patterns that rules did not catch.

  4. 4

    Query and resolve

    Raise queries, track age and status, and resolve with a documented answer.

  5. 5

    Reconcile and close

    Reconcile with safety data and external data, close queries and move toward lock.

See edit checks and auto-queries in action

Create a form, set a range rule and enter a bad value in the free sandbox to watch the query appear. No credit card.

Try Capture free

In Capture

Cleaning built into data entry

Capture edit checks (range high, range low and custom value rules, with configurable priority) raise an auto-query when a site enters a value that breaks a rule. Skip logic keeps irrelevant fields out of the way, calculated fields such as BMI and eGFR are shown read-only, and the audit trail records timestamp, user, old value, new value and reason for every change. Source data verification can be set per field.

  • Auto-queries from edit checks.
  • Field-level audit trail with reason.
  • Per-field SDV settings.
Edit checks software for clinical trials
Vital signs · Systolic blood pressure

Edit checks / auto-queries

2
Auto-query

Type

Range High

Operator

Greater than

Value

180

Priority: High

Auto-query

Type

Range Low

Operator

Less than

Value

80

Priority: Normal

Query raised automatically

Value 192 violates limit (180). Please verify.

FAQ

Common questions

Something not covered here? Ask us directly.

What is clinical data cleaning?

Finding and resolving errors, gaps and inconsistencies in clinical trial data so the dataset is accurate and complete enough for analysis and database lock.

What is the difference between data cleaning and data validation?

Validation is the set of rules and checks that detect problems. Cleaning is the wider process of acting on what those checks find, including queries and resolution.

What is a data query?

A question raised about a specific data point, sent to the site for confirmation or correction. Queries are tracked until closed.

When does data cleaning start?

Before the first participant is entered, when the checks are designed, and it continues throughout the study until database lock.

Is changing a value during cleaning allowed?

Yes, if it corrects a documented error and the change is traceable with who, when, old value, new value and reason. Silent overwriting is not acceptable.

Who cleans the data?

Data managers write checks and raise queries, monitors verify against source, and site staff answer queries. Smaller academic trials often combine these roles.

Clean as you collect

Free sandbox with edit checks, queries and audit trail. No credit card.

Try Capture free