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.
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.
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.
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.
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.
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.
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 type | What it tests | Example | Drafted by |
|---|---|---|---|
| Required | A field that must be answered | The informed consent date is recorded | AI or people |
| Range | A number or date inside bounds | Systolic blood pressure is 60 to 250 mmHg | AI or people |
| Format | A value in a registered format | The visit date is a valid calendar date | AI or people |
| Consistency | Two fields on the form agree | The visit date is on or after the consent date | AI or people |
| Allowed values | One of a fixed list | The dose level is 10, 20 or 40 mg | AI or people |
| Pattern | A value matching a safe regular expression | The subject ID looks like S-0000 | AI or people |
| Formula | A calculated condition | BMI from height and weight is between 12 and 70 | AI or people |
| Business logic | A multi-condition study rule | A pregnancy test is required when sex is female and age is under 55 | People only |
| Cross-form | Values on a subject’s other forms | Adverse event onset is on or after the first dose date | People 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.
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.
| Stage | In a typical EDC build | With AccuraTrials |
|---|---|---|
| Specification | A spreadsheet written from the protocol by hand | Drafted from the clause that requires it, with the quote attached |
| Implementation | Programmed by a study builder | Compiled from the approved rule into versioned, deterministic code |
| Testing | Test scripts written and run separately | Pattern and format checks self-test on the live evaluator; other checks receive applicable validation, followed by your study validation |
| Amendments | A change order, re-programming and re-testing | A reviewed change your team authorizes and deploys after validation |
| Traceability | The link to the protocol is usually lost | Every check and every firing names its clause and rule version |
| AI safeguards | Not applicable | Identifier 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