ADaM Preflight · Proof

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.

12 / 12planted errors caught, each by the right CDISC rule
89,156dataset records checked in about 3 seconds
698 of 699ADaM Conformance Rules v5.0 rows run for ADaMIG 1.3
13real issues found in the published pilot datasets
Planted errors

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 errorCaught byResult
Planned treatment code changed for one subject (ADSL.TRT01PN)ADCR-76Caught
Baseline value not equal to the baseline record (ADQSADAS.BASE)ADCR-181Caught
Change from baseline miscalculated (ADQSADAS.CHG)ADCR-223Caught
Second baseline record for a subject and parameter (ADQSADAS.ABLFL)ADCR-155Caught
Subject not in ADSL (ADTTE.USUBJID)ADCR-256, ADCR-53Caught
AE sequence number not in SDTM AE (ADAE.AESEQ)ADCR-898Caught
AE term changed from the SDTM record (ADAE.AETERM)ADCR-899Caught
Age differs from SDTM DM (ADSL.AGE)ADCR-204Caught
Relative day of zero (ADAE.ASTDY)ADCR-46Caught
Start date after end date (ADAE.ASTDT)ADCR-361Caught
Population flag left empty (ADSL.SAFFL)ADCR-23Caught
Analysis visit number inconsistent with its visit (ADQSADAS.AVISITN)ADCR-109Caught

ADCR numbers are the rule identifiers of the CDISC ADaM Conformance Rules v5.0.

Real findings

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 foundRulePMDA
65 adverse events have TRTEMFL = N; the flag may only be Y or nullADCR-269AD0269 · Error
ADSL has no dataset label; it must be “Subject-Level Analysis Dataset”ADCR-320AD0320 · Error
CHG in ADQSADAS is labelled “Baseline Value”ADCR-18AD0018 · Warning
ABLFL in ADQSADAS is labelled “ABLFL”ADCR-18AD0018 · Warning
PARAM in ADTTE is labelled “Parameter Description”; the standard label is “Parameter”ADCR-18AD0018 · 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 characterADCR-200—
ADAE lacks AEBDSYCD, AESTDTC and AEENDTC, which the ADAE structure requiresADCR-625, 634, 636—
Spec stage

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 foundRule
USUBJID is labelled “Unique Subject Identified” in ADAE, ADLBC and ADTTEADCR-2, ADCR-708
The PARAMCD codelist has codes starting with an underscore (_ALB, _ALT …)ADCR-144
ADSL.STUDYID is “Derived” with no derivation methodDEF-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 existSPC-I08
TRTEMFL, ABLFL and other flags have no codelist, so their allowed values can’t be checkedADCR-5, 176, 178
AESEV and AEACN have no codelist although the standard binds them to CDISC CTCT08

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.

Coverage

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.

VersionRule rowsChecked on the specChecked on the dataNot yet compiled
ADaMIG 1.02981471501
ADaMIG 1.13962091861
ADaMIG 1.25702313381
ADaMIG 1.36992594391

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.

Check it yourself

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.

Your turn

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.