As a clinical trial statistician or programmer, answer two short questions in Your review: the task and the inputs and outputs. Agreeing with both approves this benchmark; disagreeing with either needs a comment. Propose a fix with the Edit button on any source file, or add it to your comments.
We suggest spending no more than 5 minutes on a review. The other tabs beside Your review are background for assessment, not under review.
Summary
README.mdPublic entries: Python and R. Passing coverage requires an installed inventory.
Goal: carry the demographics identifiers and collected values with
Define-XML 2.0.0 metadata and a SAS transport file; DOMAIN holds DM.
Input: project.yaml selects Define-XML 2.0.0 and composes spec.yaml,
which maps demographic capture records from input/dm_raw.csv into the
demographics table and supplies its submission metadata.
Variables:
SUBJIDis the subject identifier within the study.RFSTDTCis the subject's reference start date, blank when unavailable.SITEIDidentifies the site.AGEis the collected age, withAGEUfixed toYEARS.SEX,RACEandCOUNTRYretain the recorded values.
Note: the submission uses the older metadata representation: its guide is recorded on the metadata version, its dataset class is an attribute, and collected origins are marked CRF. The dataset values and transport layout are the same as in the corresponding newer-format submission.
Inputs
Under review1 source fileinput/dm_raw.csv
Edit3 rows| STUDYID | USUBJID | SUBJID | SITEID | RFSTDTC | AGE | SEX | RACE | COUNTRY |
|---|---|---|---|---|---|---|---|---|
| CATH | 0001 | UCSD | 2025-01-08 | 34 | F | WHITE | USA | |
| CATH | 0002 | UCSD | 2025-01-15 | 67 | M | BLACK OR AFRICAN AMERICAN | USA | |
| CATH | 0003 | MCGILL | — | 52 | F | ASIAN | CAN |
Expected output
Under review3 expected rowsexpected/define.xml
EditDefine-XMLDefine-XML 2.0.0: CATH
Example study submitting demographics in SAS transport; CATH-01; SDTM-IG 3.4
| Dataset | Description | Class | Structure | Purpose | Keys | Documentation | Location |
|---|---|---|---|---|---|---|---|
| DM | Demographics | SPECIAL PURPOSE | One record per subject | Tabulation | STUDYID, USUBJID | dm.xpt |
DM
| Variable | Label / Description | Type | Role | Length or Display Format | Controlled Terms or ISO Format | Origin / Source / Method / Comment |
|---|---|---|---|---|---|---|
| DOMAIN | Domain Abbreviation | text | Identifier | 2 | Assigned | |
| STUDYID | Study Identifier | text | Identifier | 4 | Protocol | |
| USUBJID | Unique Subject Identifier | text | Identifier | 16 | Assigned | |
| SUBJID | Subject Identifier for the Study | text | Topic | 4 | CRF; Annotated Case Report Form (acrf.pdf); pages 1 | |
| RFSTDTC | Subject Reference Start Date/Time | date | Record Qualifier | ISO 8601 | CRF; Annotated Case Report Form (acrf.pdf); pages 1 | |
| SITEID | Study Site Identifier | text | Record Qualifier | 6 | CRF; Annotated Case Report Form (acrf.pdf); pages 1 | |
| AGE | Age | integer | Record Qualifier | 3 | CRF; Annotated Case Report Form (acrf.pdf); pages 1 | |
| AGEU | Age Units | text | Variable Qualifier | 5 | Assigned | |
| SEX | Sex | text | Record Qualifier | 1 | CRF; Annotated Case Report Form (acrf.pdf); pages 1 | |
| RACE | Race | text | Record Qualifier | 25 | CRF; Annotated Case Report Form (acrf.pdf); pages 1 | |
| COUNTRY | Country | text | Record Qualifier | 3 | CRF; Annotated Case Report Form (acrf.pdf); pages 1 |
Original source
<?xml version="1.0" encoding="UTF-8"?>
<ODM xmlns="http://www.cdisc.org/ns/odm/v1.3" xmlns:def="http://www.cdisc.org/ns/def/v2.0" xmlns:xlink="http://www.w3.org/1999/xlink" ODMVersion="1.3.2" FileType="Snapshot" FileOID="CATH.sdtm.Define-XML_2.0" CreationDateTime="2026-09-11T00:00:00" SourceSystem="yamaa" SourceSystemVersion="1.0">
<Study OID="STDY.CATH">
<GlobalVariables>
<StudyName>CATH</StudyName>
<StudyDescription>Example study submitting demographics in SAS transport</StudyDescription>
<ProtocolName>CATH-01</ProtocolName>
</GlobalVariables>
<MetaDataVersion OID="MDV.CATH.sdtm" Name="CATH sdtm metadata" def:DefineVersion="2.0.0" def:StandardName="SDTM-IG" def:StandardVersion="3.4">
<def:AnnotatedCRF>
<def:DocumentRef leafID="LF.acrf"/>
</def:AnnotatedCRF>
<ItemGroupDef OID="IG.DM" Name="DM" Domain="DM" Purpose="Tabulation" SASDatasetName="DM" Repeating="No" IsReferenceData="No" def:Structure="One record per subject" def:Class="SPECIAL PURPOSE" def:ArchiveLocationID="LF.DM">
<Description>
<TranslatedText xml:lang="en">Demographics</TranslatedText>
</Description>
<ItemRef ItemOID="IT.DM.DOMAIN" OrderNumber="1" Mandatory="Yes" Role="Identifier"/>
<ItemRef ItemOID="IT.DM.STUDYID" OrderNumber="2" Mandatory="Yes" KeySequence="1" Role="Identifier"/>
<ItemRef ItemOID="IT.DM.USUBJID" OrderNumber="3" Mandatory="Yes" KeySequence="2" Role="Identifier"/>
<ItemRef ItemOID="IT.DM.SUBJID" OrderNumber="4" Mandatory="Yes" Role="Topic"/>
<ItemRef ItemOID="IT.DM.RFSTDTC" OrderNumber="5" Mandatory="No" Role="Record Qualifier"/>
<ItemRef ItemOID="IT.DM.SITEID" OrderNumber="6" Mandatory="Yes" Role="Record Qualifier"/>
<ItemRef ItemOID="IT.DM.AGE" OrderNumber="7" Mandatory="No" Role="Record Qualifier"/>
<ItemRef ItemOID="IT.DM.AGEU" OrderNumber="8" Mandatory="No" Role="Variable Qualifier"/>
<ItemRef ItemOID="IT.DM.SEX" OrderNumber="9" Mandatory="Yes" Role="Record Qualifier"/>
<ItemRef ItemOID="IT.DM.RACE" OrderNumber="10" Mandatory="No" Role="Record Qualifier"/>
<ItemRef ItemOID="IT.DM.COUNTRY" OrderNumber="11" Mandatory="Yes" Role="Record Qualifier"/>
<def:leaf ID="LF.DM" xlink:href="dm.xpt">
<def:title>dm.xpt</def:title>
</def:leaf>
</ItemGroupDef>
<ItemDef OID="IT.DM.DOMAIN" Name="DOMAIN" DataType="text" Length="2" SASFieldName="DOMAIN">
<Description>
<TranslatedText xml:lang="en">Domain Abbreviation</TranslatedText>
</Description>
<def:Origin Type="Assigned"/>
</ItemDef>
<ItemDef OID="IT.DM.STUDYID" Name="STUDYID" DataType="text" Length="4" SASFieldName="STUDYID">
<Description>
<TranslatedText xml:lang="en">Study Identifier</TranslatedText>
</Description>
<def:Origin Type="Protocol"/>
</ItemDef>
<ItemDef OID="IT.DM.USUBJID" Name="USUBJID" DataType="text" Length="16" SASFieldName="USUBJID">
<Description>
<TranslatedText xml:lang="en">Unique Subject Identifier</TranslatedText>
</Description>
<def:Origin Type="Assigned"/>
</ItemDef>
<ItemDef OID="IT.DM.SUBJID" Name="SUBJID" DataType="text" Length="4" SASFieldName="SUBJID">
<Description>
<TranslatedText xml:lang="en">Subject Identifier for the Study</TranslatedText>
</Description>
<def:Origin Type="CRF">
<def:DocumentRef leafID="LF.acrf">
<def:PDFPageRef PageRefs="1" Type="PhysicalRef"/>
</def:DocumentRef>
</def:Origin>
</ItemDef>
<ItemDef OID="IT.DM.RFSTDTC" Name="RFSTDTC" DataType="date" SASFieldName="RFSTDTC">
<Description>
<TranslatedText xml:lang="en">Subject Reference Start Date/Time</TranslatedText>
</Description>
<def:Origin Type="CRF">
<def:DocumentRef leafID="LF.acrf">
<def:PDFPageRef PageRefs="1" Type="PhysicalRef"/>
</def:DocumentRef>
</def:Origin>
</ItemDef>
<ItemDef OID="IT.DM.SITEID" Name="SITEID" DataType="text" Length="6" SASFieldName="SITEID">
<Description>
<TranslatedText xml:lang="en">Study Site Identifier</TranslatedText>
</Description>
<def:Origin Type="CRF">
<def:DocumentRef leafID="LF.acrf">
<def:PDFPageRef PageRefs="1" Type="PhysicalRef"/>
</def:DocumentRef>
</def:Origin>
</ItemDef>
<ItemDef OID="IT.DM.AGE" Name="AGE" DataType="integer" Length="3" SASFieldName="AGE">
<Description>
<TranslatedText xml:lang="en">Age</TranslatedText>
</Description>
<def:Origin Type="CRF">
<def:DocumentRef leafID="LF.acrf">
<def:PDFPageRef PageRefs="1" Type="PhysicalRef"/>
</def:DocumentRef>
</def:Origin>
</ItemDef>
<ItemDef OID="IT.DM.AGEU" Name="AGEU" DataType="text" Length="5" SASFieldName="AGEU">
<Description>
<TranslatedText xml:lang="en">Age Units</TranslatedText>
</Description>
<def:Origin Type="Assigned"/>
</ItemDef>
<ItemDef OID="IT.DM.SEX" Name="SEX" DataType="text" Length="1" SASFieldName="SEX">
<Description>
<TranslatedText xml:lang="en">Sex</TranslatedText>
</Description>
<def:Origin Type="CRF">
<def:DocumentRef leafID="LF.acrf">
<def:PDFPageRef PageRefs="1" Type="PhysicalRef"/>
</def:DocumentRef>
</def:Origin>
</ItemDef>
<ItemDef OID="IT.DM.RACE" Name="RACE" DataType="text" Length="25" SASFieldName="RACE">
<Description>
<TranslatedText xml:lang="en">Race</TranslatedText>
</Description>
<def:Origin Type="CRF">
<def:DocumentRef leafID="LF.acrf">
<def:PDFPageRef PageRefs="1" Type="PhysicalRef"/>
</def:DocumentRef>
</def:Origin>
</ItemDef>
<ItemDef OID="IT.DM.COUNTRY" Name="COUNTRY" DataType="text" Length="3" SASFieldName="COUNTRY">
<Description>
<TranslatedText xml:lang="en">Country</TranslatedText>
</Description>
<def:Origin Type="CRF">
<def:DocumentRef leafID="LF.acrf">
<def:PDFPageRef PageRefs="1" Type="PhysicalRef"/>
</def:DocumentRef>
</def:Origin>
</ItemDef>
<def:leaf ID="LF.acrf" xlink:href="acrf.pdf">
<def:title>Annotated Case Report Form</def:title>
</def:leaf>
</MetaDataVersion>
</Study>
</ODM>
expected/dm.csv
Edit3 rows| DOMAIN | STUDYID | USUBJID | SUBJID | RFSTDTC | SITEID | AGE | AGEU | SEX | RACE | COUNTRY |
|---|---|---|---|---|---|---|---|---|---|---|
| DM | CATH | 0001 | 2025-01-08 | UCSD | 34 | YEARS | F | WHITE | USA | |
| DM | CATH | 0002 | 2025-01-15 | UCSD | 67 | YEARS | M | BLACK OR AFRICAN AMERICAN | USA | |
| DM | CATH | 0003 | — | MCGILL | 52 | YEARS | F | ASIAN | CAN |
Human review and assessment
| Variable Name | Variable Label | Type | Length | Controlled Terms or Format | Origin | Core | Conversion Definition | Variable Type | Variable Order | Comments for Define |
|---|---|---|---|---|---|---|---|---|---|---|
| DOMAIN | Domain Abbreviation | Char | 2 | Assigned | Req | Set constant value "DM". | SDTM | 1 | ||
| STUDYID | Study Identifier | Char | 20 | Protocol | Req | Copy value from DM_RAW.STUDYID. | SDTM | 2 | ||
| USUBJID | Unique Subject Identifier | Char | 30 | Assigned | Req | Copy value from DM_RAW.USUBJID. | SDTM | 3 | ||
| SUBJID | Subject Identifier for the Study | Char | 10 | Collected | Req | Copy value from DM_RAW.SUBJID. | SDTM | 4 | ||
| RFSTDTC | Subject Reference Start Date/Time | Char | ISO 8601 | Collected | Exp | Copy value from DM_RAW.RFSTDTC. | SDTM | 5 | ||
| SITEID | Study Site Identifier | Char | 10 | Collected | Req | Copy value from DM_RAW.SITEID. | SDTM | 6 | ||
| AGE | Age | Num | 3 | Collected | Exp | Copy value from DM_RAW.AGE. | SDTM | 7 | ||
| AGEU | Age Units | Char | 6 | Assigned | Exp | Set constant value "YEARS". | SDTM | 8 | ||
| SEX | Sex | Char | 1 | Collected | Req | Copy value from DM_RAW.SEX. | SDTM | 9 | ||
| RACE | Race | Char | 40 | Collected | Exp | Copy value from DM_RAW.RACE. | SDTM | 10 | ||
| COUNTRY | Country | Char | 3 | Collected | Req | Copy value from DM_RAW.COUNTRY. | SDTM | 11 |
| Version | Date | Author | Description | Reviewer | Sign-off |
|---|---|---|---|---|---|
| 1.7 | 2026-10-20 | yamaa docs build | Read a specification in the 1.0 surface as its 0.5 counterpart; state that missing values stay missing where a mapping declares no missing handler, and leave out a declared missing answer that restates a handler's default | ||
| 1.6 | 2026-10-17 | yamaa docs build | Describe collected date parts written as ISO 8601 date text and times of day counted in seconds since midnight | ||
| 1.5 | 2026-10-17 | yamaa docs build | Name collected precision in words instead of letter codes; state imputation fallbacks, minimum source precision, bounds ignored outside the collected period, and invalid text with no handler as an error; describe date and datetime shifts, imputation flag codes, and partial text giving no date part | ||
| 1.4 | 2026-10-15 | yamaa docs build | State datetime precision codes through the hour and minute, and complete only the time parts a collected datetime lacks | ||
| 1.3 | 2026-09-29 | yamaa docs build | Show study codelist names, external dictionaries, and ISO 8601 formats in variable rows; list the document's codelist values and metadata | ||
| 1.2 | 2026-09-29 | yamaa docs build | Classify ADaM copies from a declared input as Predecessor and recodes as Derived, and SDTM recodes of locally derived columns as Derived | ||
| 1.1 | 2026-09-29 | yamaa docs build | Resolve lookups into the donor record they select, and give every derivation shape a plain-language rule instead of its raw YAML | ||
| 1.0 | yamaa docs build | Initial generation from spec.yaml |
yamaa