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 each subject's glucose result, AVAL, with PARAMCD and its
analysis date ADT, and describe the results of each central laboratory
separately in the data-definition document.
Input: spec.yaml reads the subjects' glucose results, one row per
subject per collection date, and project.yaml submits the analysis dataset.
Variables:
PARAMCDisGLUC, glucose.ADTis the date the sample was collected.AVALis the glucose result in mg/dL.
Note: the study changed central laboratory on 2026-03-01. The first
laboratory reported whole numbers and the second one decimal, so the
data-definition document describes AVAL twice: once for the results
collected before that day, with no decimals, and once for those collected on
or after it, with one. A result collected on the day of the change belongs to
the second laboratory. The analysis dataset carries no variable naming the
laboratory: the descriptions select their records by date.
Inputs
Under review1 source fileinput/lb.csv
Edit4 rows| STUDYID | USUBJID | LBTESTCD | LBDTC | LBSTRESN |
|---|---|---|---|---|
| LAB01 | GLUC | 2026-01-15 | 95 | |
| LAB01 | GLUC | 2026-04-02 | 97.4 | |
| LAB01 | GLUC | 2026-02-28 | 101 | |
| LAB01 | GLUC | 2026-03-01 | 99.8 |
Expected output
Under review4 expected rowsexpected/adlb.csv
Edit4 rows| STUDYID | USUBJID | PARAMCD | ADT | AVAL |
|---|---|---|---|---|
| LAB01 | GLUC | 2026-01-15 | 95 | |
| LAB01 | GLUC | 2026-04-02 | 97.4 | |
| LAB01 | GLUC | 2026-02-28 | 101 | |
| LAB01 | GLUC | 2026-03-01 | 99.8 |
expected/define.xml
EditDefine-XMLDefine-XML 2.1.11: LAB01
Example study whose central laboratory changed on 2026-03-01; LAB-01; ADaMIG 1.3
| Dataset | Description | Class | Structure | Purpose | Keys | Documentation | Location |
|---|---|---|---|---|---|---|---|
| ADLB | Laboratory Analysis Dataset | BASIC DATA STRUCTURE | One record per subject per parameter per analysis date | Analysis | STUDYID, USUBJID, PARAMCD, ADT | adlb.csv |
ADLB
| Variable | Label / Description | Type | Length or Display Format | Controlled Terms or ISO Format | Origin / Source / Method / Comment |
|---|---|---|---|---|---|
| STUDYID | Study Identifier | text | 5 | Predecessor; LB.STUDYID | |
| USUBJID | Unique Subject Identifier | text | 9 | Predecessor; LB.USUBJID | |
| PARAMCD | Parameter Code | text | 4 | Predecessor; LB.LBTESTCD | |
| ADT | Analysis Date | integer | DATE9. | Predecessor; LB.LBDTC | |
| AVAL | Analysis Value | float | 8 | Predecessor; LB.LBSTRESN |
| Where Condition | Variable | Label / Description | Type | Length or Display Format | Controlled Terms or ISO Format | Origin / Source / Method / Comment |
|---|---|---|---|---|---|---|
| PARAMCD = GLUC AND ADT < 24166 | AVAL | Glucose (mg/dL) from the first central laboratory | float | 8 | Predecessor; LB.LBSTRESN | |
| PARAMCD = GLUC AND ADT >= 24166 | AVAL | Glucose (mg/dL) from the second central laboratory | float | 8 | Predecessor; LB.LBSTRESN |
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="LAB01.adam.Define-XML_2.1" CreationDateTime="2026-09-11T00:00:00" SourceSystem="yamaa" SourceSystemVersion="1.0" def:Context="Other">
<Study OID="STDY.LAB01">
<GlobalVariables>
<StudyName>LAB01</StudyName>
<StudyDescription>Example study whose central laboratory changed on 2026-03-01</StudyDescription>
<ProtocolName>LAB-01</ProtocolName>
</GlobalVariables>
<MetaDataVersion OID="MDV.LAB01.adam" Name="LAB01 adam metadata" def:DefineVersion="2.1.11">
<def:Standards>
<def:Standard OID="STD.ADaMIG" Name="ADaMIG" Type="IG" Version="1.3" Status="Final"/>
</def:Standards>
<def:ValueListDef OID="VL.ADLB.AVAL">
<ItemRef ItemOID="IT.ADLB.AVAL.LAB_A" OrderNumber="1" Mandatory="Yes">
<def:WhereClauseRef WhereClauseOID="WC.ADLB.AVAL.LAB_A"/>
</ItemRef>
<ItemRef ItemOID="IT.ADLB.AVAL.LAB_B" OrderNumber="2" Mandatory="Yes">
<def:WhereClauseRef WhereClauseOID="WC.ADLB.AVAL.LAB_B"/>
</ItemRef>
</def:ValueListDef>
<def:WhereClauseDef OID="WC.ADLB.AVAL.LAB_A">
<RangeCheck Comparator="EQ" SoftHard="Soft" def:ItemOID="IT.ADLB.PARAMCD">
<CheckValue>GLUC</CheckValue>
</RangeCheck>
<RangeCheck Comparator="LT" SoftHard="Soft" def:ItemOID="IT.ADLB.ADT">
<CheckValue>24166</CheckValue>
</RangeCheck>
</def:WhereClauseDef>
<def:WhereClauseDef OID="WC.ADLB.AVAL.LAB_B">
<RangeCheck Comparator="EQ" SoftHard="Soft" def:ItemOID="IT.ADLB.PARAMCD">
<CheckValue>GLUC</CheckValue>
</RangeCheck>
<RangeCheck Comparator="GE" SoftHard="Soft" def:ItemOID="IT.ADLB.ADT">
<CheckValue>24166</CheckValue>
</RangeCheck>
</def:WhereClauseDef>
<ItemGroupDef OID="IG.ADLB" Name="ADLB" Purpose="Analysis" SASDatasetName="ADLB" Repeating="Yes" IsReferenceData="No" def:Structure="One record per subject per parameter per analysis date" def:ArchiveLocationID="LF.ADLB" def:StandardOID="STD.ADaMIG">
<Description>
<TranslatedText xml:lang="en">Laboratory Analysis Dataset</TranslatedText>
</Description>
<ItemRef ItemOID="IT.ADLB.STUDYID" OrderNumber="1" Mandatory="Yes" KeySequence="1"/>
<ItemRef ItemOID="IT.ADLB.USUBJID" OrderNumber="2" Mandatory="Yes" KeySequence="2"/>
<ItemRef ItemOID="IT.ADLB.PARAMCD" OrderNumber="3" Mandatory="Yes" KeySequence="3"/>
<ItemRef ItemOID="IT.ADLB.ADT" OrderNumber="4" Mandatory="Yes" KeySequence="4"/>
<ItemRef ItemOID="IT.ADLB.AVAL" OrderNumber="5" Mandatory="Yes"/>
<def:Class Name="BASIC DATA STRUCTURE"/>
<def:leaf ID="LF.ADLB" xlink:href="adlb.csv">
<def:title>adlb.csv</def:title>
</def:leaf>
</ItemGroupDef>
<ItemDef OID="IT.ADLB.STUDYID" Name="STUDYID" DataType="text" Length="5" SASFieldName="STUDYID">
<Description>
<TranslatedText xml:lang="en">Study Identifier</TranslatedText>
</Description>
<def:Origin Type="Predecessor">
<Description>
<TranslatedText xml:lang="en">LB.STUDYID</TranslatedText>
</Description>
</def:Origin>
</ItemDef>
<ItemDef OID="IT.ADLB.USUBJID" Name="USUBJID" DataType="text" Length="9" SASFieldName="USUBJID">
<Description>
<TranslatedText xml:lang="en">Unique Subject Identifier</TranslatedText>
</Description>
<def:Origin Type="Predecessor">
<Description>
<TranslatedText xml:lang="en">LB.USUBJID</TranslatedText>
</Description>
</def:Origin>
</ItemDef>
<ItemDef OID="IT.ADLB.PARAMCD" Name="PARAMCD" DataType="text" Length="4" SASFieldName="PARAMCD">
<Description>
<TranslatedText xml:lang="en">Parameter Code</TranslatedText>
</Description>
<def:Origin Type="Predecessor">
<Description>
<TranslatedText xml:lang="en">LB.LBTESTCD</TranslatedText>
</Description>
</def:Origin>
</ItemDef>
<ItemDef OID="IT.ADLB.ADT" Name="ADT" DataType="integer" Length="8" SASFieldName="ADT" def:DisplayFormat="DATE9.">
<Description>
<TranslatedText xml:lang="en">Analysis Date</TranslatedText>
</Description>
<def:Origin Type="Predecessor">
<Description>
<TranslatedText xml:lang="en">LB.LBDTC</TranslatedText>
</Description>
</def:Origin>
</ItemDef>
<ItemDef OID="IT.ADLB.AVAL" Name="AVAL" DataType="float" Length="8" SignificantDigits="1" SASFieldName="AVAL">
<Description>
<TranslatedText xml:lang="en">Analysis Value</TranslatedText>
</Description>
<def:Origin Type="Predecessor">
<Description>
<TranslatedText xml:lang="en">LB.LBSTRESN</TranslatedText>
</Description>
</def:Origin>
<def:ValueListRef ValueListOID="VL.ADLB.AVAL"/>
</ItemDef>
<ItemDef OID="IT.ADLB.AVAL.LAB_A" Name="AVAL" DataType="float" Length="8" SignificantDigits="0" SASFieldName="AVAL">
<Description>
<TranslatedText xml:lang="en">Glucose (mg/dL) from the first central laboratory</TranslatedText>
</Description>
<def:Origin Type="Predecessor">
<Description>
<TranslatedText xml:lang="en">LB.LBSTRESN</TranslatedText>
</Description>
</def:Origin>
</ItemDef>
<ItemDef OID="IT.ADLB.AVAL.LAB_B" Name="AVAL" DataType="float" Length="8" SignificantDigits="1" SASFieldName="AVAL">
<Description>
<TranslatedText xml:lang="en">Glucose (mg/dL) from the second central laboratory</TranslatedText>
</Description>
<def:Origin Type="Predecessor">
<Description>
<TranslatedText xml:lang="en">LB.LBSTRESN</TranslatedText>
</Description>
</def:Origin>
</ItemDef>
</MetaDataVersion>
</Study>
</ODM>
Human review and assessment
| Dataset Name | Variable Name | Variable Label | Type | Codelist/Controlled Terms | Core | Computational Method | Origin |
|---|---|---|---|---|---|---|---|
| ADLB | STUDYID | Study Identifier | character | Req | Copy value from LB.STUDYID. | Predecessor | |
| ADLB | USUBJID | Unique Subject Identifier | character | Req | Copy value from LB.USUBJID. | Predecessor | |
| ADLB | PARAMCD | Parameter Code | character | Req | Copy value from LB.LBTESTCD. | Predecessor | |
| ADLB | ADT | Analysis Date | numeric | ISO 8601 | Perm | Copy value from LB.LBDTC. | Predecessor |
| ADLB | AVAL | Analysis Value | numeric | Cond | Copy value from LB.LBSTRESN. | Predecessor |
| Version | Date | Author | Description | Reviewer | Sign-off |
|---|---|---|---|---|---|
| 1.8 | 2026-11-19 | yamaa docs build | State open and closed range endpoints, including bounds of zero | ||
| 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