Workflow education · Data managementUpdated November 1, 2026

How to write data queries in clinical trials

A good query names the field, the problem and the action the site must take, in one or two sentences. This guide shows 15 weak queries rewritten, by type, and how edit checks send many of them for you.

  • 15 worked examples
  • Anatomy of a query
  • Auto-queries from edit checks

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

  • ISO 27001 certified
  • 21 CFR Part 11 compliant
  • GDPR compliant
  • EU and US data hosting
  • HIPAA compliant
  • ICH GCP E6(R3) compliant
Vital signs · data query (demo)
Participant 002-0031 · Visit 2Query open

Heart rate

HR
20bpm

Auto-query: outside range 30-200. Confirm the value against source.

Systolic blood pressure

SYSBP
118mmHg

Within range

Reason for change

REASON

Required when the value is corrected

Demo data only.Save
The site sees the query next to the field and answers in context. The change and reason are audit-trailed.

What makes a query good

  • A query is a question about one data point. If it needs a paragraph, it is probably two queries.
  • Name the field, the value, what conflicts with it and the action wanted. "Missing data" is not a query; "Visit 3 diastolic BP is blank, please enter it or mark not done with a reason" is.
  • Ask, do not lead. A query must not tell the site what the answer should be, or the correction becomes data manipulation.
  • Anything a rule can detect should be an edit check that raises the query automatically, so people write only the queries that need judgement.
  • There is no universal turnaround standard to quote. Set your own response and closure targets in the data management plan and track against them.

Anatomy

The five parts of a clear data query

Queries are the main channel between data management, monitors and sites. They are read by a busy coordinator between participant visits, often on a phone, often without the protocol to hand. Everything the coordinator needs to answer correctly has to be inside the text or visible next to the field.

A reliable structure has five parts. Whether you write them as separate lines or one sentence matters less than including all of them.

1. Where

Participant, visit and field. In an EDC the query sits on the field, so the text can skip the location, but exports and emails need it.

2. What was found

The value as entered and the other value, rule or record it conflicts with. State both numbers or dates.

3. Why it matters

Only if not obvious: "protocol range for entry is 30 to 200" or "window is Day 28 +/- 3". One clause is enough.

4. The action

Confirm, correct, or explain. Offer the legitimate options, including "value is correct as entered, please confirm against source".

5. Neutral tone

No blame, no suggested answer, no "should be". The site decides from source.

Examples

15 data queries, weak and strong, by type

Participant IDs and values are invented for illustration. Adapt the thresholds to your protocol.

TypeWeak queryStrong query
1. Missing valueMissing data.Visit 3 diastolic BP is blank while systolic is 128 mmHg. Please enter the value or mark the measurement as not done with a reason.
2. Out of rangeValue wrong?Heart rate is 20 bpm at Visit 2. The entry range is 30 to 200 bpm. Please confirm against source and correct if needed.
3. Inconsistent fieldsCheck sex.Sex is Male on Demographics and a positive pregnancy test is recorded at Screening. Please confirm which is correct.
4. Date logic (AE)Dates look off.AE "Nausea" ends 03 Mar 2026 but starts 07 Mar 2026. Please check both dates against source.
5. Date logic (visit window)Late visit.Visit 4 was done on Day 41. The window is Day 28 +/- 3. Please confirm the visit date, or record a protocol deviation if the date is correct.
6. UnitWeight is wrong.Weight is 172 with unit kg. The Visit 1 weight was 71 kg. Please confirm the unit of measure.
7. AE and concomitant medicationCM and AE mismatch.Ondansetron is recorded as a concomitant medication for nausea from 12 Mar but no nausea adverse event is entered. Please add the adverse event or correct the indication.
8. AE action takenUpdate AE.AE "Headache" has action taken "medication given" but no matching concomitant medication. Please add the medication or change the action.
9. Duplicate recordDuplicate.Two adverse events "Nausea" both start 02 Apr 2026 with the same severity. Please confirm these are separate events or delete one with a reason.
10. EligibilityNot eligible?Inclusion criterion 1 (age 18 to 65) is answered Yes, but date of birth gives age 71 at consent. Please confirm the birth date and the answer.
11. Lab significanceLab abnormal.ALT is 412 U/L, above the reference range, with no clinical significance assessment. Please enter the investigator assessment.
12. Consent sequenceCheck consent date.Consent date is 06 May 2026 but screening bloods are dated 05 May 2026. Please confirm both dates against source.
13. Calculated valueBMI incorrect.Height 178 cm and weight 98 kg give BMI 30.9. A value of 27 is entered in the free-text note. Please correct the note or the measurement.
14. Serious AESAE needs form.AE "Hospitalisation for pneumonia" is marked serious but no SAE form exists. Please complete the SAE form or change seriousness.
15. DosingWrong dose.Dose given is 400 mg. The assigned dose at randomisation is 200 mg. Please confirm the dose given and explain any difference.

Every strong query states the value, the conflict, and the action. None tells the site what the right answer is.

Workflow

Who answers, who closes, and how long it should take

The site answers a query: it confirms the data are right as entered, or corrects them in the eCRF with a reason, or explains why the value cannot be known. The person who raised the query, or the data manager, closes it only after checking the answer resolves the question. A query that is answered but not closed stays in the review queue so nothing is lost.

No single turnaround number applies across trials, and published figures vary by sponsor, therapeutic area and phase, so this page does not quote one. Set targets in the data management plan for time to site response and time to closure, assign someone to chase overdue queries each week, and track the open count by site. Persistent late responses at one site are a monitoring signal, not just a data cleaning nuisance. For the wider process see the clinical data cleaning guide.

Query states to track

Open (raised, awaiting the site), answered (site has responded), closed (reviewer accepts), and re-opened (the answer did not resolve the question). A good query list shows each state and filters by site, form and priority.

When not to send a query

Do not query things the audit trail already explains, cosmetic spelling, or anything the protocol allows. Excess queries slow sites and hide the ones that matter.

Let rules write the routine queries for you

In the free sandbox, set a range edit check on a field, enter a bad value, and watch the auto-query appear on the form. No credit card, no time limit, pay only at go-live.

Try auto-queries free

Manual vs auto

Manual queries versus auto-queries from edit checks

A manual query is raised by a person after reading the data. It is right for cross-form judgement: an AE with no matching medication, a lab without an assessment, an eligibility answer that contradicts a date of birth. These need context a rule cannot encode cheaply.

An auto-query is raised by the system when a value breaks a rule defined in the form. Capture supports edit checks with range high, range low and custom value rules and a configurable priority, and the query is created automatically when a site enters a breaking value. The site sees it immediately, while the participant may still be in clinic and the source can be checked at once. That immediacy is the main saving: an error fixed in the minute it is made is cheaper than one found three weeks later.

A sensible split is to automate everything that a rule can state as a single condition (missing required values, range limits, impossible dates) and keep people for the queries in this guide numbered 3, 7, 8, 9, 10, 11 and 14 that span forms. Review the auto-query volume after the first participants: a rule that fires on a third of entries is too tight or the form wording is unclear, and fixing the form is better than answering the same query repeatedly. See also query management software for clinical trials.

In Capture

Edit checks raise the query when the value is entered

Define a range or value rule on a field, choose a priority, and Capture raises an auto-query as soon as a site enters a value that breaks it. The query list shows open, answered and closed queries with category and priority.

  • Range high, range low and custom value rules on a field, with a priority you set.
  • The query appears beside the field, so the site answers in context.
  • Corrections are held in the field-level audit trail with old value, new value and reason.
  • Calculated fields such as BMI update read-only, so manual arithmetic errors are avoided.
See edit checks software
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.

In Capture

One query list across forms and sites

Monitors and data managers work from a single list that shows state and priority. Filter to what is overdue or high priority and send a manual query where judgement is needed.

  • Open, answered and closed states.
  • Categories and priority on every query.
  • Closure is a recorded action, so the history survives into the audit trail.
app.capture.study · Data queries
Capture data queries list with open, answered and closed queries, categories and priority

Before you send

Seven-point check for a query before it goes out

Names the field and value

Both numbers or dates are in the text.

States the conflict

Says what it conflicts with: a range, a window, another field, a record.

Asks for a legitimate action

Confirm, correct or explain. Includes the option that the value is right.

Neutral wording

No "should be", no suggested value, no blame.

One question only

Split compound queries so each can be closed independently.

Needed at all

Not already explained by a note, the audit trail or a protocol allowance.

Right priority

Safety and endpoint queries first; cosmetic last.

FAQ

Questions teams ask before they switch

Something not covered here? Ask us directly.

What should a data query in a clinical trial contain?

The field and value, what it conflicts with, and the action the site should take, in neutral wording. For example: "Heart rate is 20 bpm at Visit 2. The entry range is 30 to 200 bpm. Please confirm against source and correct if needed."

Can a query suggest the correct value?

It should not. Leading queries risk the site changing data to fit the suggestion rather than the source. Ask the site to confirm or correct from source, and let them state the value. Your sponsor SOP may add its own rules on query wording.

What is the difference between a manual query and an auto-query?

A manual query is raised by a person after reviewing data, and an auto-query is raised by a rule when a value is entered. In Capture, edit checks (range high, range low and custom value rules with a priority) raise auto-queries automatically. See edit checks software.

How long should sites take to answer a query?

There is no universal figure to cite. Set a response and closure target in your data management plan, review overdue queries weekly, and treat consistently late responses at one site as a monitoring signal.

Who closes a query?

The reviewer who raised it, or the data manager, closes it after checking the site answer actually resolves the question. If it does not, re-open it with a clarifying note rather than raising a new query.

How do I query an adverse event that does not match a concomitant medication?

State both records and ask for an action: "Ondansetron is recorded for nausea from 12 Mar but no nausea adverse event is entered. Please add the adverse event or correct the indication." See adverse event for definitions.

How many queries are too many?

No fixed rate applies, but a rule that fires on a large share of entries usually signals a badly set range or a confusing form. Review auto-query volume after the first participants and adjust the rule or form wording. See query management software for tracking.

Send fewer queries, and better ones

Build a form free, set an edit check, and see the auto-query on the field. No credit card; pay only when you go live.

Try auto-queries free