Tested on the CDISC pilot. Errors planted, errors caught.
We ran ADaM Preflight on the public CDISC pilot study — its ADaM datasets, its SDTM and a published define.xml — then broke the data on purpose to see what it would catch. Nothing was tuned to this study.
We broke the data. It noticed.
Twelve deliberate mistakes, one of each kind a reviewer worries about, put into the pilot's real datasets — 89,156 records across ADSL, ADAE, ADTTE, ADLBC and two questionnaire datasets, with SDTM DM, AE and EX alongside.
| Planted error | Caught by | Result |
|---|---|---|
| Planned treatment code changed for one subject (ADSL.TRT01PN) | ADCR-76 | Caught |
| Baseline value not equal to the baseline record (ADQSADAS.BASE) | ADCR-181 | Caught |
| Change from baseline miscalculated (ADQSADAS.CHG) | ADCR-223 | Caught |
| Second baseline record for a subject and parameter (ADQSADAS.ABLFL) | ADCR-155 | Caught |
| Subject not in ADSL (ADTTE.USUBJID) | ADCR-256, ADCR-53 | Caught |
| AE sequence number not in SDTM AE (ADAE.AESEQ) | ADCR-898 | Caught |
| AE term changed from the SDTM record (ADAE.AETERM) | ADCR-899 | Caught |
| Age differs from SDTM DM (ADSL.AGE) | ADCR-204 | Caught |
| Relative day of zero (ADAE.ASTDY) | ADCR-46 | Caught |
| Start date after end date (ADAE.ASTDT) | ADCR-361 | Caught |
| Population flag left empty (ADSL.SAFFL) | ADCR-23 | Caught |
| Analysis visit number inconsistent with its visit (ADQSADAS.AVISITN) | ADCR-109 | Caught |
ADCR numbers are the rule identifiers of the CDISC ADaM Conformance Rules v5.0.
The published pilot isn’t perfect either.
Before we touched anything, the pilot datasets already had problems. Checked against ADaMIG 1.0, the version they were built for, with PMDA’s rating where PMDA has one:
| What it found | Rule | PMDA |
|---|---|---|
| 65 adverse events have TRTEMFL = N; the flag may only be Y or null | ADCR-269 | AD0269 · Error |
| ADSL has no dataset label; it must be “Subject-Level Analysis Dataset” | ADCR-320 | AD0320 · Error |
| CHG in ADQSADAS is labelled “Baseline Value” | ADCR-18 | AD0018 · Warning |
| ABLFL in ADQSADAS is labelled “ABLFL” | ADCR-18 | AD0018 · Warning |
| PARAM in ADTTE is labelled “Parameter Description”; the standard label is “Parameter” | ADCR-18 | AD0018 · Warning |
| ITTFL and TRTDUR labels differ from ADSL’s in three datasets (“Intent-to-Treat” vs “Intent-To-Treat”) | ADCR-85 | — |
| A1LO / A1HI in ADLBC are numeric; ADaMIG 1.0 defines them as character | ADCR-200 | — |
| ADAE lacks AEBDSYCD, AESTDTC and AEENDTC, which the ADAE structure requires | ADCR-625, 634, 636 | — |
Before any dataset: the define.xml.
The CDISC Pilot 3 ADaM define.xml (Define-XML 2.0, ADaMIG 1.1), checked with its SDTM define and CT 2025-03-28. It passes the Define-XML schema. Among its 48 findings:
| What it found | Rule |
|---|---|
| USUBJID is labelled “Unique Subject Identified” in ADAE, ADLBC and ADTTE | ADCR-2, ADCR-708 |
| The PARAMCD codelist has codes starting with an underscore (_ALB, _ALT …) | ADCR-144 |
| ADSL.STUDYID is “Derived” with no derivation method | DEF-73 · PMDA DD0042 Error |
| DTHFL is labelled “Subject Died?”; SDTM calls it “Subject Death Flag” | ADCR-2 |
| ADLBC.SAFFL says it comes from ADSL.SAF01FL, which doesn’t exist | SPC-I08 |
| TRTEMFL, ABLFL and other flags have no codelist, so their allowed values can’t be checked | ADCR-5, 176, 178 |
| AESEV and AEACN have no codelist although the standard binds them to CDISC CT | CT08 |
We also ran CDISC’s own Define-XML v2.1 ADaM example from the official release package: it passes the 135 schema rules, and three specification rules flag real deviations in it — two variables without the CDISC codelist their standard requires, and an ADSL description that isn’t the standard one.
Every rule, accounted for.
The CDISC ADaM Conformance Rules v5.0, rule row by rule row. Each run’s report lists every rule with what happened to it.
| Version | Rule rows | Checked on the spec | Checked on the data | Not yet compiled |
|---|---|---|---|---|
| ADaMIG 1.0 | 298 | 147 | 150 | 1 |
| ADaMIG 1.1 | 396 | 209 | 186 | 1 |
| ADaMIG 1.2 | 570 | 231 | 338 | 1 |
| ADaMIG 1.3 | 699 | 259 | 439 | 1 |
The one rule not compiled (719) needs the IG’s full list of treatment variables. On top of the CDISC rules: 79 of CDISC’s 90 Define-XML specification rules (the rest are SDTM-only, covered by the terminology checks, or need data), the Define-XML schemas, CDISC Controlled Terminology, PMDA Study Data Validation Rules v6.0 and FDA’s ADaM expectations.
The inputs, and our output.
How we ran it
- ADaM Preflight 0.2 with the CDISC ADaM Conformance Rules v5.0, CDISC Controlled Terminology 2025-03-28 and the PMDA Study Data Validation Rules v6.0. The ADaMIG version was chosen for each input, never assumed.
- Pilot datasets: the updated CDISC pilot submission package (ADaM XPT files, with SDTM DM, AE and EX), checked against ADaMIG 1.0. Planted errors were applied to a copy in memory; the published files were not changed.
- Ambiguous rule sentences are read conservatively and the reading is shown in the report; a finding reported by an official rule and a built-in check appears once, under the official rule.
- ADaM Preflight supports qualified review; it doesn’t replace it. A clean report means the rules found nothing, not that the analysis is right.
Pilot 3 define.xml © 2021 GSK/Atorus JPT, from pharmaverse metacore, used under the MIT License. CDISC standards and rules © CDISC; they are not reproduced here.
Run it on your own spec.
ADaM Preflight is invite-only while we work with a first group of statistical programming teams. It runs on your machine, so your specs and datasets stay with you.