Automated edit checks for clinical trials

AccuraTrials drafts edit checks from the clauses that require them, validates each one for its rule type, and enforces it at entry once a data manager approves. Every firing is logged with its clause and rule version.

The basics

What is an edit check?

Edit check
An automated rule in an electronic data capture (EDC) system that tests clinical trial data as it is entered: a value outside its allowed range, a required field left blank, two dates in the wrong order. When a check fails it can stop the value, warn the site or open a query, so errors are resolved at the site instead of months later in data cleaning.

A single study can need hundreds of edit checks. In a typical build they are written into a spreadsheet, programmed by hand and redone for every amendment.

Along the way the link to the sentence that required each check is lost, and why a check exists has to be reconstructed from old spreadsheets and email.

How it works

From the clause to a check at the site.

Five steps, each one on the record. The model drafts, deterministic code enforces, and a person decides. Enforcement at entry and AI drafting are in production; the AI was tested on a synthetic study.

  1. 01

    Found in the study documents

    The study model harvests the requirements a check should enforce: required fields, ranges, date order, allowed values and consistency between fields. Each proposed check carries the page, section and quote it came from.

  2. 02

    Or described in plain English

    Type a rule the way you would say it, such as “systolic blood pressure between 60 and 250”, and the AI proposes the field, operator, value and message. Descriptions are screened for patient identifiers first, off-topic or injected instructions are refused, and every request is logged.

  3. 03

    Validated before approval

    A proposal must attach to a field that exists on the form, any regular expression must compile in a linear-time RE2 sandbox, and pattern and format checks are self-tested on the evaluator the live form uses. A check that fails a gate is never shipped.

  4. 04

    Approved by a person

    Nothing goes live on the model’s authority. A data manager reviews the compiled logic, the source clause and the validation result, then approves it. Business-logic and cross-form rules are written by people.

  5. 05

    Enforced at entry, recorded for good

    Approved checks run as versioned, deterministic code as sites enter data, and every firing is written to the audit trail with its rule version, clause and time.

One check, end to endThe clause it came from, the rule it compiled to, the proof it passed and the person who approved it, in one record.
Four honest outcomesEvery check reports passed, fired, not checked or not applied, with its version and clause. A check that could not run is never counted as a pass.

Check types

Nine kinds of check. Seven the AI may draft.

The engine runs nine rule types. The AI may propose the first seven; the two that execute richer logic are written by your data managers.

Check typeWhat it testsExampleDrafted by
RequiredA field that must be answeredThe informed consent date is recordedAI or people
RangeA number or date inside boundsSystolic blood pressure is 60 to 250 mmHgAI or people
FormatA value in a registered formatThe visit date is a valid calendar dateAI or people
ConsistencyTwo fields on the form agreeThe visit date is on or after the consent dateAI or people
Allowed valuesOne of a fixed listThe dose level is 10, 20 or 40 mgAI or people
PatternA value matching a safe regular expressionThe subject ID looks like S-0000AI or people
FormulaA calculated conditionBMI from height and weight is between 12 and 70AI or people
Business logicA multi-condition study ruleA pregnancy test is required when sex is female and age is under 55People only
Cross-formValues on a subject’s other formsAdverse event onset is on or after the first dose datePeople only

Checks on fields hidden by skip logic never run, never block a save and never raise a query.

When a check fires

Stop what is unsafe. Ask about the rest.

Severity decides what a site experiences. Only values that must never enter the record block a save; everything else keeps the site moving with the evidence attached.

At the site

What a coordinator sees

The right amount of friction for each finding, and never a silent pass.

Errors stop unsafe values
An error-level check blocks the save until the value is corrected.
ERROR
Warnings ask, not refuse
The value saves and the site is asked to confirm it, so a plausible outlier never pushes data back onto paper.
WARNING
Queries open themselves
A failing check can raise a query on the exact field automatically, carrying its message, so the site and the monitor start from the same evidence.
AUTO-QUERY
Skipped fields stay quiet
A field hidden by skip logic never triggers a check or raises a spurious query.
BRANCHING-AWARE
No silent passes
A check that cannot run, such as one waiting on a partial date or a missing baseline, is reported as not checked with a reason, never as passed.
NOT CHECKED

Compared

Hand-programmed edit checks, and what changes here.

StageIn a typical EDC buildWith AccuraTrials
SpecificationA spreadsheet written from the protocol by handDrafted from the clause that requires it, with the quote attached
ImplementationProgrammed by a study builderCompiled from the approved rule into versioned, deterministic code
TestingTest scripts written and run separatelyPattern and format checks self-test on the live evaluator; other checks receive applicable validation, followed by your study validation
AmendmentsA change order, re-programming and re-testingA reviewed change your team authorizes and deploys after validation
TraceabilityThe link to the protocol is usually lostEvery check and every firing names its clause and rule version
AI safeguardsNot applicableIdentifier screening, a scope guard, a regex sandbox and human approval

A worked example

One Phase III protocol, compiled into a reviewable study build. Every rule is mapped to the protocol text that required it.

  • 8visits
  • 6forms
  • 54fields
  • 70validation rules
  • 16branching rules

FAQ

Edit checks, answered plainly.

Updated September 2026

What happens to edit checks when the protocol is amended?

The amendment is compiled like the original and compared with the running study, so changed checks appear as a reviewed diff with the collected data behind each one. Your team authorizes deployment, and every change is recorded with its effective date, prior value and reason.

Does the AI see patient data when it drafts an edit check?

No. The rule compiler works from the rule description and the form’s field definitions, not subject records. Descriptions are screened for patient identifiers before they reach the model, and your study documents and patient data are not used to train models.

Are edit checks part of the 21 CFR Part 11 audit trail?

Yes. AI requests, proposals and approvals are logged and attributed, and every automated evaluation is written to the same audit trail as a human edit, naming the rule version and the clause it enforces. Part 11 compliance itself is demonstrated by the sponsor for its own validated system.

Can we still write edit checks by hand?

Yes. Data managers can write every check type in a visual rule builder, with no XML or scripting, and business-logic and cross-form rules are always written by people. Hand-written and AI-drafted checks run on the same engine and audit trail.

Bring one study. Watch its checks drafted live.

Thirty minutes on the real platform with the team that built it.

Or email us: jgui@accuratrials.com

Request a demo · your study, our model

See AccuraTrials in action.

Walk through the EDC in production and the platform running beside it, using a study like yours.

I’m interested in

Tell us about your study. We’ll follow up by email.

We will be in touch.

Your demo request has been received. We’ll follow up by email.