Health1st AI Logo
CDISC & Data Standards

What Is Define.xml? The Metadata Backbone of a CDISC Submission

Define-XML is the machine-readable map that lets regulators navigate your study data. Learn what it contains, why reviewers reach for it first, and how to stop treating it as a last-minute afterthought.

Elena Vasquez
Principal Biostatistician
April 7, 202610 min read

It is the final push before submission. The datasets are clean, the tables are locked, the CSR is drafting — and then someone remembers the Define-XML still has to be built. What should be the map to your data becomes a frantic, error-prone reconstruction: variables that do not quite match the datasets, derivations described in vague half-sentences, controlled terminology references that point at the wrong version. The reviewer will open this file first, and right now it is the weakest thing in the package.

That sequence is backwards, and it is avoidable. When a regulatory reviewer opens your study data package, the very first file they reach for is not a dataset — it is the Define-XML. It tells them what every dataset and variable means, where the values come from, and which controlled terminology governs them. Submit strong data with a weak Define-XML and reviewers are navigating without a map, which is precisely when questions, delays, and information requests multiply.

The one-line definition

Define-XML (current version 2.1) is a CDISC standard for machine-readable dataset metadata. It describes the structure and content of your SDTM and ADaM datasets in a standardised XML format that both humans (rendered through a stylesheet) and validation tools can read. It is the interface between your data and the people who judge it.

What Define-XML actually contains

A complete Define-XML is not a summary — it is a full specification of your data package. It documents:

  • Datasets — every SDTM domain and ADaM dataset, with its structure, class, and purpose.
  • Variables — each variable's name, label, type, length, and role.
  • Controlled terminology — the code lists and permitted values, such as the terminology governing adverse event severity or units, tied to a specific CT version.
  • Value-level metadata — where a single variable's meaning depends on context, Define-XML specifies the rules that apply.
  • Derivations and computational methods — how derived variables, especially in ADaM, were computed. This is central to traceability.
  • Origins and comments — whether a value was collected on a CRF (with an annotated CRF link), derived, assigned, or taken as a protocol value.
Inside a Define-XML File
DatasetsDomains, class, structure
VariablesName, label, type, length, role
Controlled terminologyCode lists, CT version
Value-level metadataContext-dependent rules
Methods and originsDerivations, CRF or derived

Where it sits in the traceability chain

Define-XML is not a standalone document; it is the connective tissue that makes the whole data journey legible. It sits alongside the datasets and the annotated CRF, describing how a value travels from the collected form to the analysis result.

How Define-XML Guides a Reviewer
Annotated CRFField to SDTM mapping
SDTM datasetsDefine-XML describes origins
ADaM datasetsDefine-XML describes methods
Reviewer verifiesTraces result to source

The annotated CRF connection

Define-XML for SDTM works hand in hand with the annotated CRF (aCRF) — a copy of the case report form marked up to show which SDTM variables each field maps to. Together they let a reviewer trace a value from the collected form, through tabulation and analysis, all the way to a number in a table. Without the aCRF, the origins in Define-XML point at nothing a reviewer can see; without Define-XML, the aCRF is an island.

Why it matters more than teams assume

Regulators require Define-XML as part of the standardised electronic submission — that alone makes it non-negotiable. But the deeper reason to invest in it is that Define-XML is the reviewer's efficiency tool. A clear, complete file lets a reviewer understand and trust your data quickly. A poor one triggers questions, delays, and information requests that land weeks after you thought the work was done. Because Define-XML encodes derivations and origins, it is also a core piece of the traceability story reviewers use to independently verify your analysis results.

The failure modes that cost you

Almost every serious Define-XML problem comes from treating it as documentation to be back-filled rather than metadata to be maintained:

  • Metadata that does not match the datasets — a variable in the data but absent from Define, or a mismatch in type, length, or origin.
  • Missing or incorrect controlled terminology references — or a CT version that disagrees with the version actually used in the data.
  • Vague or absent derivation descriptions for ADaM variables, so a reviewer cannot reproduce a derived value.
  • Wrong or missing origins, which quietly breaks the traceability chain.

Tools like Pinnacle 21 check Define-XML conformance and its consistency with the datasets, which is exactly why validation should run continuously rather than once at the end. A mismatch caught the day it appears is a one-line fix; the same mismatch caught the week before submission is a fire drill.

How automation helps

Because Define-XML is structured metadata, it is far better suited to generation than to hand-authoring. When SDTM and ADaM specifications, annotations, controlled terminology, origins, and derivations are captured in a structured way from the start, a Define-XML file can be generated automatically and kept synchronised with the datasets as they evolve. AI-assisted tooling can draft and maintain that metadata, flag where Define and data have drifted apart, and apply the correct CT version — turning the last-minute scramble into a continuous, low-drama background task. The statistician still owns every derivation description and every judgment call; the machine removes the mechanical assembly and the drift.

The bottom line

Define-XML is not paperwork you generate at the finish line — it is the map the reviewer opens first. Treat it as a first-class deliverable, keep it consistent with the datasets throughout the study, validate it continuously, and let structured tooling keep the metadata and the data from ever drifting apart.

Tagged

Define-XML
CDISC
SDTM
ADaM
traceability
submission

Frequently asked questions

Let's see it on your study

No pitch, no pressure — a working walkthrough on your workflow and honest answers, including on the limits. Bring your hardest study.