Review ask

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

Lifecycle: draftEditUnder review
What this benchmark means
README.md

Public 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:

  • PARAMCD is GLUC, glucose.
  • ADT is the date the sample was collected.
  • AVAL is 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 review
1 source file

input/lb.csv

Edit
4 rows
input/lb.csv
STUDYIDUSUBJIDLBTESTCDLBDTCLBSTRESN
LAB01GLUC2026-01-1595
LAB01GLUC2026-04-0297.4
LAB01GLUC2026-02-28101
LAB01GLUC2026-03-0199.8

Expected output

Under review
4 expected rows

expected/adlb.csv

Edit
4 rows
expected/adlb.csv
STUDYIDUSUBJIDPARAMCDADTAVAL
LAB01GLUC2026-01-1595
LAB01GLUC2026-04-0297.4
LAB01GLUC2026-02-28101
LAB01GLUC2026-03-0199.8

expected/define.xml

Edit
Define-XML

Define-XML 2.1.11: LAB01

Example study whose central laboratory changed on 2026-03-01; LAB-01; ADaMIG 1.3

Datasets
DatasetDescriptionClassStructurePurposeKeysDocumentationLocation
ADLBLaboratory Analysis DatasetBASIC DATA STRUCTUREOne record per subject per parameter per analysis dateAnalysisSTUDYID, USUBJID, PARAMCD, ADTadlb.csv

ADLB

ADLB variables
VariableLabel / DescriptionTypeLength or Display FormatControlled Terms or ISO FormatOrigin / Source / Method / Comment
STUDYIDStudy Identifiertext5Predecessor; LB.STUDYID
USUBJIDUnique Subject Identifiertext9Predecessor; LB.USUBJID
PARAMCDParameter Codetext4Predecessor; LB.LBTESTCD
ADTAnalysis DateintegerDATE9.Predecessor; LB.LBDTC
AVALAnalysis Valuefloat8Predecessor; LB.LBSTRESN
ADLB.AVAL value-level metadata
Where ConditionVariableLabel / DescriptionTypeLength or Display FormatControlled Terms or ISO FormatOrigin / Source / Method / Comment
PARAMCD = GLUC AND ADT < 24166AVALGlucose (mg/dL) from the first central laboratoryfloat8Predecessor; LB.LBSTRESN
PARAMCD = GLUC AND ADT >= 24166AVALGlucose (mg/dL) from the second central laboratoryfloat8Predecessor; 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>
Shaded columns are derived— = missing value

Human review and assessment

Your review

2 questions and your comments · View benchmark discussions

Mapping spec

Generated from the benchmark YAML; do not edit by hand

Dataset NameVariable NameVariable LabelTypeCodelist/Controlled TermsCoreComputational MethodOrigin
ADLBSTUDYIDStudy IdentifiercharacterReqCopy value from LB.STUDYID.Predecessor
ADLBUSUBJIDUnique Subject IdentifiercharacterReqCopy value from LB.USUBJID.Predecessor
ADLBPARAMCDParameter CodecharacterReqCopy value from LB.LBTESTCD.Predecessor
ADLBADTAnalysis DatenumericISO 8601PermCopy value from LB.LBDTC.Predecessor
ADLBAVALAnalysis ValuenumericCondCopy value from LB.LBSTRESN.Predecessor
VersionDateAuthorDescriptionReviewerSign-off
1.82026-11-19yamaa docs buildState open and closed range endpoints, including bounds of zero
1.72026-10-20yamaa docs buildRead 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.62026-10-17yamaa docs buildDescribe collected date parts written as ISO 8601 date text and times of day counted in seconds since midnight
1.52026-10-17yamaa docs buildName 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.42026-10-15yamaa docs buildState datetime precision codes through the hour and minute, and complete only the time parts a collected datetime lacks
1.32026-09-29yamaa docs buildShow study codelist names, external dictionaries, and ISO 8601 formats in variable rows; list the document's codelist values and metadata
1.22026-09-29yamaa docs buildClassify ADaM copies from a declared input as Predecessor and recodes as Derived, and SDTM recodes of locally derived columns as Derived
1.12026-09-29yamaa docs buildResolve lookups into the donor record they select, and give every derivation shape a plain-language rule instead of its raw YAML
1.0yamaa docs buildInitial generation from spec.yaml

yamaa code

Public calls generated from benchmark.yaml; results must match the expected output

R

Edit
3 lines
library(yamaa)yamaa_project("project.yaml")$spec("ADLB")$run()$output

Python

Edit
3 lines
import yamaayamaa.project("project.yaml").spec("ADLB").run().output