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: submit demographics and device identifiers with one data-definition document that cites both implementation guides they follow, each dataset pointing at its own.
Input: two spec files and the project that lists them:
spec_dm.yamlbuilds demographics (DM) from the study's subjects and names no guide;spec_di.yamlbuilds device identifiers (DI) from the identifying attributes of each study device, one row per attribute as its manufacturer supplies them, and names the medical device supplement to the tabulation guide;project.yamlcites the general tabulation guide first and the medical device supplement second.
Variables:
SPDEVIDis the sponsor's identifier for one device.DIPARMCDandDIPARMname the identifying attribute:MODELfor the model number andSERIALfor the serial number.DIVALis that attribute's value as the manufacturer printed it on the device.
Note: the data-definition document cites every guide the project lists, in the project's order. Each dataset's definition points at the guide its spec names, or at the first guide when it names none, so demographics follows the general guide and the device identifiers follow the supplement.
Inputs
Under review2 source filesExpected output
Under review6 expected rowsexpected/define.xml
EditDefine-XMLDefine-XML 2.1.11: DEV01
Example study of an implanted glucose sensor; DEV-01; SDTMIG 3.4; SDTMIG-MD 1.1
| Dataset | Description | Class | Structure | Purpose | Keys | Documentation | Location |
|---|---|---|---|---|---|---|---|
| DM | Demographics | SPECIAL PURPOSE | One record per subject | Tabulation | STUDYID, USUBJID | dm.csv | |
| DI | Device Identifiers | STUDY REFERENCE | One record per device identifier per device | Tabulation | STUDYID, SPDEVID, DIPARMCD | di.csv |
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; Sponsor | |
| STUDYID | Study Identifier | text | Identifier | 5 | Protocol; Sponsor | |
| USUBJID | Unique Subject Identifier | text | Identifier | 9 | Assigned; Sponsor |
DI
| 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; Sponsor | |
| STUDYID | Study Identifier | text | Identifier | 5 | Protocol; Sponsor | |
| SPDEVID | Sponsor Device Identifier | text | Identifier | 6 | Assigned; Sponsor | |
| DIPARMCD | Device Identifier Element Short Name | text | Topic | 6 | Assigned; Sponsor | |
| DIPARM | Device Identifier Element Name | text | Synonym Qualifier | 13 | Assigned; Sponsor | |
| DIVAL | Device Identifier Element Value | text | Result Qualifier | 7 | Collected; Vendor |
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.1" xmlns:xlink="http://www.w3.org/1999/xlink" ODMVersion="1.3.2" FileType="Snapshot" FileOID="DEV01.sdtm.Define-XML_2.1" CreationDateTime="2026-09-11T00:00:00" SourceSystem="yamaa" SourceSystemVersion="1.0" def:Context="Other">
<Study OID="STDY.DEV01">
<GlobalVariables>
<StudyName>DEV01</StudyName>
<StudyDescription>Example study of an implanted glucose sensor</StudyDescription>
<ProtocolName>DEV-01</ProtocolName>
</GlobalVariables>
<MetaDataVersion OID="MDV.DEV01.sdtm" Name="DEV01 sdtm metadata" def:DefineVersion="2.1.11">
<def:Standards>
<def:Standard OID="STD.SDTMIG" Name="SDTMIG" Type="IG" Version="3.4" Status="Final"/>
<def:Standard OID="STD.SDTMIG-MD" Name="SDTMIG-MD" Type="IG" Version="1.1" Status="Final"/>
</def:Standards>
<ItemGroupDef OID="IG.DM" Name="DM" Domain="DM" Purpose="Tabulation" SASDatasetName="DM" Repeating="No" IsReferenceData="No" def:Structure="One record per subject" def:ArchiveLocationID="LF.DM" def:StandardOID="STD.SDTMIG">
<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"/>
<def:Class Name="SPECIAL PURPOSE"/>
<def:leaf ID="LF.DM" xlink:href="dm.csv">
<def:title>dm.csv</def:title>
</def:leaf>
</ItemGroupDef>
<ItemGroupDef OID="IG.DI" Name="DI" Domain="DI" Purpose="Tabulation" SASDatasetName="DI" Repeating="No" IsReferenceData="Yes" def:Structure="One record per device identifier per device" def:ArchiveLocationID="LF.DI" def:StandardOID="STD.SDTMIG-MD">
<Description>
<TranslatedText xml:lang="en">Device Identifiers</TranslatedText>
</Description>
<ItemRef ItemOID="IT.DI.DOMAIN" OrderNumber="1" Mandatory="Yes" Role="Identifier"/>
<ItemRef ItemOID="IT.DI.STUDYID" OrderNumber="2" Mandatory="Yes" KeySequence="1" Role="Identifier"/>
<ItemRef ItemOID="IT.DI.SPDEVID" OrderNumber="3" Mandatory="Yes" KeySequence="2" Role="Identifier"/>
<ItemRef ItemOID="IT.DI.DIPARMCD" OrderNumber="4" Mandatory="Yes" KeySequence="3" Role="Topic"/>
<ItemRef ItemOID="IT.DI.DIPARM" OrderNumber="5" Mandatory="Yes" Role="Synonym Qualifier"/>
<ItemRef ItemOID="IT.DI.DIVAL" OrderNumber="6" Mandatory="Yes" Role="Result Qualifier"/>
<def:Class Name="STUDY REFERENCE"/>
<def:leaf ID="LF.DI" xlink:href="di.csv">
<def:title>di.csv</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" Source="Sponsor"/>
</ItemDef>
<ItemDef OID="IT.DM.STUDYID" Name="STUDYID" DataType="text" Length="5" SASFieldName="STUDYID">
<Description>
<TranslatedText xml:lang="en">Study Identifier</TranslatedText>
</Description>
<def:Origin Type="Protocol" Source="Sponsor"/>
</ItemDef>
<ItemDef OID="IT.DM.USUBJID" Name="USUBJID" DataType="text" Length="9" SASFieldName="USUBJID">
<Description>
<TranslatedText xml:lang="en">Unique Subject Identifier</TranslatedText>
</Description>
<def:Origin Type="Assigned" Source="Sponsor"/>
</ItemDef>
<ItemDef OID="IT.DI.DOMAIN" Name="DOMAIN" DataType="text" Length="2" SASFieldName="DOMAIN">
<Description>
<TranslatedText xml:lang="en">Domain Abbreviation</TranslatedText>
</Description>
<def:Origin Type="Assigned" Source="Sponsor"/>
</ItemDef>
<ItemDef OID="IT.DI.STUDYID" Name="STUDYID" DataType="text" Length="5" SASFieldName="STUDYID">
<Description>
<TranslatedText xml:lang="en">Study Identifier</TranslatedText>
</Description>
<def:Origin Type="Protocol" Source="Sponsor"/>
</ItemDef>
<ItemDef OID="IT.DI.SPDEVID" Name="SPDEVID" DataType="text" Length="6" SASFieldName="SPDEVID">
<Description>
<TranslatedText xml:lang="en">Sponsor Device Identifier</TranslatedText>
</Description>
<def:Origin Type="Assigned" Source="Sponsor"/>
</ItemDef>
<ItemDef OID="IT.DI.DIPARMCD" Name="DIPARMCD" DataType="text" Length="6" SASFieldName="DIPARMCD">
<Description>
<TranslatedText xml:lang="en">Device Identifier Element Short Name</TranslatedText>
</Description>
<def:Origin Type="Assigned" Source="Sponsor"/>
</ItemDef>
<ItemDef OID="IT.DI.DIPARM" Name="DIPARM" DataType="text" Length="13" SASFieldName="DIPARM">
<Description>
<TranslatedText xml:lang="en">Device Identifier Element Name</TranslatedText>
</Description>
<def:Origin Type="Assigned" Source="Sponsor"/>
</ItemDef>
<ItemDef OID="IT.DI.DIVAL" Name="DIVAL" DataType="text" Length="7" SASFieldName="DIVAL">
<Description>
<TranslatedText xml:lang="en">Device Identifier Element Value</TranslatedText>
</Description>
<def:Origin Type="Collected" Source="Vendor"/>
</ItemDef>
</MetaDataVersion>
</Study>
</ODM>
expected/di.csv
Edit4 rows| DOMAIN | STUDYID | SPDEVID | DIPARMCD | DIPARM | DIVAL |
|---|---|---|---|---|---|
| DI | DEV01 | GS-001 | MODEL | Model Number | GS200 |
| DI | DEV01 | GS-001 | SERIAL | Serial Number | SN10458 |
| DI | DEV01 | GS-002 | MODEL | Model Number | GS200 |
| DI | DEV01 | GS-002 | SERIAL | Serial Number | SN10461 |
expected/dm.csv
Edit2 rows| DOMAIN | STUDYID | USUBJID |
|---|---|---|
| DM | DEV01 | |
| DM | DEV01 |
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 "DI". | SDTM | 1 | ||
| STUDYID | Study Identifier | Char | 5 | Protocol | Req | Copy value from DEVICES.STUDYID. | SDTM | 2 | ||
| SPDEVID | Sponsor Device Identifier | Char | 6 | Assigned | Req | Copy value from DEVICES.SPDEVID. | SDTM | 3 | ||
| DIPARMCD | Device Identifier Element Short Name | Char | 6 | Assigned | Req | Copy value from DEVICES.DIPARMCD. | SDTM | 4 | ||
| DIPARM | Device Identifier Element Name | Char | 13 | Assigned | Req | Copy value from DEVICES.DIPARM. | SDTM | 5 | ||
| DIVAL | Device Identifier Element Value | Char | 7 | Collected | Req | Copy value from DEVICES.DIVAL. | SDTM | 6 |
| 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