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: submit a subject-level and a laboratory analysis dataset with one data-definition document that also describes the analysis behind two tables of the study report.

Input: two spec files, the project that lists them and one file of analysis results:

  • spec_adsl.yaml builds the subject-level dataset (ADSL) from demographics, one record per subject;
  • spec_adlb.yaml builds the laboratory dataset (ADLB) from standardized laboratory results, one record per subject and test;
  • project.yaml lists both, declares the analysis plan, the tables document and a program as supporting documents, and describes the table of subject counts itself;
  • arm/efficacy.yaml, which the project names first, describes the glucose table.

Variables:

  • SAFFL is Y for a subject who received a study treatment and N otherwise.
  • TRT01AN numbers the treatment the subject received; missing for a subject who received none.
  • PARAMCD is the laboratory test code: glucose, creatinine and the pregnancy test.
  • PARAM names the parameter, with its unit for the numeric tests.
  • AVAL is the numeric result; missing for the pregnancy test.
  • AVALC is the result as text.

Note: the data-definition document describes each table once, in the order the project names them, whether a table is described in the project or in a file of its own: its name and where it is in the tables document, then each result it shows with the reason and purpose of the analysis, the datasets it reads, the records it selects from each and the variables it analyses. The glucose table reads both datasets, so it says how they are joined, points to the section of the analysis plan that describes it and carries its program; the subject-level dataset only selects its subjects, so no variable of it is analysed. Because that table summarises laboratory parameters, its result names the parameter variable; the count of subjects reads the subject-level dataset alone and names none, and cites its program as a document. Every dataset, variable and document a table names is one the study describes.

Inputs

Under review
2 source files

input/dm.csv

Edit
3 rows
input/dm.csv
STUDYIDUSUBJIDACTARMCD
CATHA
CATHB
CATH—

input/lb.csv

Edit
6 rows
input/lb.csv
STUDYIDUSUBJIDLBSEQLBTESTCDLBTESTLBSTRESCLBSTRESNLBSTRESU
CATH1GLUCGlucose9595mg/dL
CATH2CREATCreatinine79.679.6umol/L
CATH3HCGChoriogonadotropin BetaNEGATIVE——
CATH1GLUCGlucose101101mg/dL
CATH2CREATCreatinine88.488.4umol/L
CATH3HCGChoriogonadotropin BetaPOSITIVE——

Expected output

Under review
9 expected rows

expected/adlb.csv

Edit
6 rows
expected/adlb.csv
STUDYIDUSUBJIDPARAMCDPARAMAVALAVALC
CATHGLUCGlucose (mg/dL)9595
CATHCREATCreatinine (umol/L)79.679.6
CATHHCGChoriogonadotropin Beta—NEGATIVE
CATHGLUCGlucose (mg/dL)101101
CATHCREATCreatinine (umol/L)88.488.4
CATHHCGChoriogonadotropin Beta—POSITIVE

expected/adlb.json

Edit
{
  "datasetJSONCreationDateTime": "2026-09-11T00:00:00",
  "datasetJSONVersion": "1.1.0",
  "fileOID": "CATH.adam.Define-XML_2.1.ADLB",
  "sourceSystem": {"name": "yamaa", "version": "1.0"},
  "studyOID": "STDY.CATH",
  "metaDataVersionOID": "MDV.CATH.adam",
  "metaDataRef": "define.xml",
  "itemGroupOID": "IG.ADLB",
  "records": 6,
  "name": "ADLB",
  "label": "Laboratory Analysis Dataset",
  "columns": [
    {"itemOID": "IT.ADLB.STUDYID", "name": "STUDYID", "label": "Study Identifier", "dataType": "string", "length": 4, "keySequence": 1},
    {"itemOID": "IT.ADLB.USUBJID", "name": "USUBJID", "label": "Unique Subject Identifier", "dataType": "string", "length": 8, "keySequence": 2},
    {"itemOID": "IT.ADLB.PARAMCD", "name": "PARAMCD", "label": "Parameter Code", "dataType": "string", "length": 5, "keySequence": 3},
    {"itemOID": "IT.ADLB.PARAM", "name": "PARAM", "label": "Parameter", "dataType": "string", "length": 23},
    {"itemOID": "IT.ADLB.AVAL", "name": "AVAL", "label": "Analysis Value", "dataType": "float", "length": 8},
    {"itemOID": "IT.ADLB.AVALC", "name": "AVALC", "label": "Analysis Value (C)", "dataType": "string", "length": 8}
  ],
  "rows": [
    ["CATH", "CATH-001", "GLUC", "Glucose (mg/dL)", 95, "95"],
    ["CATH", "CATH-001", "CREAT", "Creatinine (umol/L)", 79.6, "79.6"],
    ["CATH", "CATH-001", "HCG", "Choriogonadotropin Beta", null, "NEGATIVE"],
    ["CATH", "CATH-002", "GLUC", "Glucose (mg/dL)", 101, "101"],
    ["CATH", "CATH-002", "CREAT", "Creatinine (umol/L)", 88.4, "88.4"],
    ["CATH", "CATH-002", "HCG", "Choriogonadotropin Beta", null, "POSITIVE"]
  ]
}

expected/adsl.csv

Edit
3 rows
expected/adsl.csv
STUDYIDUSUBJIDSAFFLTRT01AN
CATHY1
CATHY2
CATHN—

expected/adsl.json

Edit
{
  "datasetJSONCreationDateTime": "2026-09-11T00:00:00",
  "datasetJSONVersion": "1.1.0",
  "fileOID": "CATH.adam.Define-XML_2.1.ADSL",
  "sourceSystem": {"name": "yamaa", "version": "1.0"},
  "studyOID": "STDY.CATH",
  "metaDataVersionOID": "MDV.CATH.adam",
  "metaDataRef": "define.xml",
  "itemGroupOID": "IG.ADSL",
  "records": 3,
  "name": "ADSL",
  "label": "Subject-Level Analysis Dataset",
  "columns": [
    {"itemOID": "IT.ADSL.STUDYID", "name": "STUDYID", "label": "Study Identifier", "dataType": "string", "length": 4, "keySequence": 1},
    {"itemOID": "IT.ADSL.USUBJID", "name": "USUBJID", "label": "Unique Subject Identifier", "dataType": "string", "length": 8, "keySequence": 2},
    {"itemOID": "IT.ADSL.SAFFL", "name": "SAFFL", "label": "Safety Population Flag", "dataType": "string", "length": 1},
    {"itemOID": "IT.ADSL.TRT01AN", "name": "TRT01AN", "label": "Actual Treatment for Period 01 (N)", "dataType": "integer", "length": 8}
  ],
  "rows": [
    ["CATH", "CATH-001", "Y", 1],
    ["CATH", "CATH-002", "Y", 2],
    ["CATH", "CATH-003", "N", null]
  ]
}

expected/define.xml

Edit
Define-XML

Define-XML 2.1.11: CATH

Example study describing the analyses behind its tables; CATH-01; ADaMIG 1.3

Datasets
DatasetDescriptionClassStructurePurposeKeysDocumentationLocation
ADSLSubject-Level Analysis DatasetSUBJECT LEVEL ANALYSIS DATASETOne record per subjectAnalysisSTUDYID, USUBJIDadsl.json
ADLBLaboratory Analysis DatasetBASIC DATA STRUCTUREOne record per subject per parameterAnalysisSTUDYID, USUBJID, PARAMCDadlb.json

ADSL

ADSL variables
VariableLabel / DescriptionTypeLength or Display FormatControlled Terms or ISO FormatOrigin / Source / Method / Comment
STUDYIDStudy Identifiertext4Predecessor; DM.STUDYID
USUBJIDUnique Subject Identifiertext8Predecessor; DM.USUBJID
SAFFLSafety Population Flagtext1No Yes Response (CL.NY) N YDerived; Sponsor Y when the subject received a study treatment, otherwise N.
TRT01ANActual Treatment for Period 01 (N)integer8Assigned; Sponsor

ADLB

ADLB variables
VariableLabel / DescriptionTypeLength or Display FormatControlled Terms or ISO FormatOrigin / Source / Method / Comment
STUDYIDStudy Identifiertext4Predecessor; LB.STUDYID
USUBJIDUnique Subject Identifiertext8Predecessor; LB.USUBJID
PARAMCDParameter Codetext5Predecessor; LB.LBTESTCD
PARAMParametertext23Assigned; Sponsor
AVALAnalysis Valuefloat8Predecessor; LB.LBSTRESN
AVALCAnalysis Value (C)text8Predecessor; LB.LBSTRESC
ADLB.AVAL value-level metadata
Where ConditionVariableLabel / DescriptionTypeLength or Display FormatControlled Terms or ISO FormatOrigin / Source / Method / Comment
PARAMCD = GLUCAVALGlucose (mg/dL)float8Predecessor; LB.LBSTRESN
PARAMCD = CREATAVALCreatinine (umol/L)float8Predecessor; LB.LBSTRESN
ADLB.AVALC value-level metadata
Where ConditionVariableLabel / DescriptionTypeLength or Display FormatControlled Terms or ISO FormatOrigin / Source / Method / Comment
PARAMCD = HCGAVALCAnalysis Value (C)text8Pregnancy Test Result (CL.HCGRS) NEGATIVE POSITIVEPredecessor; LB.LBSTRESC
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" xmlns:arm="http://www.cdisc.org/ns/arm/v1.0" ODMVersion="1.3.2" FileType="Snapshot" FileOID="CATH.adam.Define-XML_2.1" CreationDateTime="2026-09-11T00:00:00" SourceSystem="yamaa" SourceSystemVersion="1.0" def:Context="Submission">
  <Study OID="STDY.CATH">
    <GlobalVariables>
      <StudyName>CATH</StudyName>
      <StudyDescription>Example study describing the analyses behind its tables</StudyDescription>
      <ProtocolName>CATH-01</ProtocolName>
    </GlobalVariables>
    <MetaDataVersion OID="MDV.CATH.adam" Name="CATH 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:SupplementalDoc>
        <def:DocumentRef leafID="LF.SAP"/>
      </def:SupplementalDoc>
      <def:ValueListDef OID="VL.ADLB.AVAL">
        <ItemRef ItemOID="IT.ADLB.AVAL.GLUC" OrderNumber="1" Mandatory="Yes">
          <def:WhereClauseRef WhereClauseOID="WC.ADLB.AVAL.GLUC"/>
        </ItemRef>
        <ItemRef ItemOID="IT.ADLB.AVAL.CREAT" OrderNumber="2" Mandatory="Yes">
          <def:WhereClauseRef WhereClauseOID="WC.ADLB.AVAL.CREAT"/>
        </ItemRef>
      </def:ValueListDef>
      <def:ValueListDef OID="VL.ADLB.AVALC">
        <ItemRef ItemOID="IT.ADLB.AVALC.HCG" OrderNumber="1" Mandatory="Yes">
          <def:WhereClauseRef WhereClauseOID="WC.ADLB.AVALC.HCG"/>
        </ItemRef>
      </def:ValueListDef>
      <def:WhereClauseDef OID="WC.ADLB.AVAL.GLUC">
        <RangeCheck Comparator="EQ" SoftHard="Soft" def:ItemOID="IT.ADLB.PARAMCD">
          <CheckValue>GLUC</CheckValue>
        </RangeCheck>
      </def:WhereClauseDef>
      <def:WhereClauseDef OID="WC.ADLB.AVAL.CREAT">
        <RangeCheck Comparator="EQ" SoftHard="Soft" def:ItemOID="IT.ADLB.PARAMCD">
          <CheckValue>CREAT</CheckValue>
        </RangeCheck>
      </def:WhereClauseDef>
      <def:WhereClauseDef OID="WC.ADLB.AVALC.HCG">
        <RangeCheck Comparator="EQ" SoftHard="Soft" def:ItemOID="IT.ADLB.PARAMCD">
          <CheckValue>HCG</CheckValue>
        </RangeCheck>
      </def:WhereClauseDef>
      <def:WhereClauseDef OID="WCA.T14.3.01.R1.ADSL">
        <RangeCheck Comparator="EQ" SoftHard="Soft" def:ItemOID="IT.ADSL.SAFFL">
          <CheckValue>Y</CheckValue>
        </RangeCheck>
        <RangeCheck Comparator="EQ" SoftHard="Soft" def:ItemOID="IT.ADSL.TRT01AN">
          <CheckValue>1</CheckValue>
        </RangeCheck>
      </def:WhereClauseDef>
      <def:WhereClauseDef OID="WCA.T14.3.01.R1.ADLB">
        <RangeCheck Comparator="EQ" SoftHard="Soft" def:ItemOID="IT.ADLB.PARAMCD">
          <CheckValue>GLUC</CheckValue>
        </RangeCheck>
      </def:WhereClauseDef>
      <def:WhereClauseDef OID="WCA.T14.1.01.R1.ADSL">
        <RangeCheck Comparator="EQ" SoftHard="Soft" def:ItemOID="IT.ADSL.SAFFL">
          <CheckValue>Y</CheckValue>
        </RangeCheck>
      </def:WhereClauseDef>
      <ItemGroupDef OID="IG.ADSL" Name="ADSL" Purpose="Analysis" SASDatasetName="ADSL" Repeating="No" IsReferenceData="No" def:Structure="One record per subject" def:ArchiveLocationID="LF.ADSL" def:StandardOID="STD.ADaMIG">
        <Description>
          <TranslatedText xml:lang="en">Subject-Level Analysis Dataset</TranslatedText>
        </Description>
        <ItemRef ItemOID="IT.ADSL.STUDYID" OrderNumber="1" Mandatory="Yes" KeySequence="1"/>
        <ItemRef ItemOID="IT.ADSL.USUBJID" OrderNumber="2" Mandatory="Yes" KeySequence="2"/>
        <ItemRef ItemOID="IT.ADSL.SAFFL" OrderNumber="3" Mandatory="Yes" MethodOID="MT.ADSL.SAFFL"/>
        <ItemRef ItemOID="IT.ADSL.TRT01AN" OrderNumber="4" Mandatory="No"/>
        <def:Class Name="SUBJECT LEVEL ANALYSIS DATASET"/>
        <def:leaf ID="LF.ADSL" xlink:href="adsl.json">
          <def:title>adsl.json</def:title>
        </def:leaf>
      </ItemGroupDef>
      <ItemGroupDef OID="IG.ADLB" Name="ADLB" Purpose="Analysis" SASDatasetName="ADLB" Repeating="Yes" IsReferenceData="No" def:Structure="One record per subject per parameter" 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.PARAM" OrderNumber="4" Mandatory="Yes"/>
        <ItemRef ItemOID="IT.ADLB.AVAL" OrderNumber="5" Mandatory="No"/>
        <ItemRef ItemOID="IT.ADLB.AVALC" OrderNumber="6" Mandatory="No"/>
        <def:Class Name="BASIC DATA STRUCTURE"/>
        <def:leaf ID="LF.ADLB" xlink:href="adlb.json">
          <def:title>adlb.json</def:title>
        </def:leaf>
      </ItemGroupDef>
      <ItemDef OID="IT.ADSL.STUDYID" Name="STUDYID" DataType="text" Length="4" SASFieldName="STUDYID">
        <Description>
          <TranslatedText xml:lang="en">Study Identifier</TranslatedText>
        </Description>
        <def:Origin Type="Predecessor">
          <Description>
            <TranslatedText xml:lang="en">DM.STUDYID</TranslatedText>
          </Description>
        </def:Origin>
      </ItemDef>
      <ItemDef OID="IT.ADSL.USUBJID" Name="USUBJID" DataType="text" Length="8" SASFieldName="USUBJID">
        <Description>
          <TranslatedText xml:lang="en">Unique Subject Identifier</TranslatedText>
        </Description>
        <def:Origin Type="Predecessor">
          <Description>
            <TranslatedText xml:lang="en">DM.USUBJID</TranslatedText>
          </Description>
        </def:Origin>
      </ItemDef>
      <ItemDef OID="IT.ADSL.SAFFL" Name="SAFFL" DataType="text" Length="1" SASFieldName="SAFFL">
        <Description>
          <TranslatedText xml:lang="en">Safety Population Flag</TranslatedText>
        </Description>
        <CodeListRef CodeListOID="CL.NY"/>
        <def:Origin Type="Derived" Source="Sponsor"/>
      </ItemDef>
      <ItemDef OID="IT.ADSL.TRT01AN" Name="TRT01AN" DataType="integer" Length="8" SASFieldName="TRT01AN">
        <Description>
          <TranslatedText xml:lang="en">Actual Treatment for Period 01 (N)</TranslatedText>
        </Description>
        <def:Origin Type="Assigned" Source="Sponsor"/>
      </ItemDef>
      <ItemDef OID="IT.ADLB.STUDYID" Name="STUDYID" DataType="text" Length="4" 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="8" 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="5" 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.PARAM" Name="PARAM" DataType="text" Length="23" SASFieldName="PARAM">
        <Description>
          <TranslatedText xml:lang="en">Parameter</TranslatedText>
        </Description>
        <def:Origin Type="Assigned" Source="Sponsor"/>
      </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.GLUC" Name="AVAL" DataType="float" Length="8" SignificantDigits="0" SASFieldName="AVAL">
        <Description>
          <TranslatedText xml:lang="en">Glucose (mg/dL)</TranslatedText>
        </Description>
        <def:Origin Type="Predecessor">
          <Description>
            <TranslatedText xml:lang="en">LB.LBSTRESN</TranslatedText>
          </Description>
        </def:Origin>
      </ItemDef>
      <ItemDef OID="IT.ADLB.AVAL.CREAT" Name="AVAL" DataType="float" Length="8" SignificantDigits="1" SASFieldName="AVAL">
        <Description>
          <TranslatedText xml:lang="en">Creatinine (umol/L)</TranslatedText>
        </Description>
        <def:Origin Type="Predecessor">
          <Description>
            <TranslatedText xml:lang="en">LB.LBSTRESN</TranslatedText>
          </Description>
        </def:Origin>
      </ItemDef>
      <ItemDef OID="IT.ADLB.AVALC" Name="AVALC" DataType="text" Length="8" SASFieldName="AVALC">
        <Description>
          <TranslatedText xml:lang="en">Analysis Value (C)</TranslatedText>
        </Description>
        <def:Origin Type="Predecessor">
          <Description>
            <TranslatedText xml:lang="en">LB.LBSTRESC</TranslatedText>
          </Description>
        </def:Origin>
        <def:ValueListRef ValueListOID="VL.ADLB.AVALC"/>
      </ItemDef>
      <ItemDef OID="IT.ADLB.AVALC.HCG" Name="AVALC" DataType="text" Length="8" SASFieldName="AVALC">
        <Description>
          <TranslatedText xml:lang="en">Analysis Value (C)</TranslatedText>
        </Description>
        <CodeListRef CodeListOID="CL.HCGRS"/>
        <def:Origin Type="Predecessor">
          <Description>
            <TranslatedText xml:lang="en">LB.LBSTRESC</TranslatedText>
          </Description>
        </def:Origin>
      </ItemDef>
      <CodeList OID="CL.HCGRS" Name="Pregnancy Test Result" DataType="text" def:IsNonStandard="Yes">
        <EnumeratedItem CodedValue="NEGATIVE"/>
        <EnumeratedItem CodedValue="POSITIVE"/>
      </CodeList>
      <CodeList OID="CL.NY" Name="No Yes Response" DataType="text" def:IsNonStandard="Yes">
        <EnumeratedItem CodedValue="N"/>
        <EnumeratedItem CodedValue="Y"/>
      </CodeList>
      <MethodDef OID="MT.ADSL.SAFFL" Name="ADSL.SAFFL" Type="Computation">
        <Description>
          <TranslatedText xml:lang="en">Y when the subject received a study treatment, otherwise N.</TranslatedText>
        </Description>
      </MethodDef>
      <def:CommentDef OID="COMA.T14.3.01.R1">
        <Description>
          <TranslatedText xml:lang="en">ADSL selects the subjects; ADLB is joined to it by USUBJID.</TranslatedText>
        </Description>
      </def:CommentDef>
      <def:leaf ID="LF.SAP" xlink:href="sap.pdf">
        <def:title>Statistical Analysis Plan</def:title>
      </def:leaf>
      <def:leaf ID="LF.TLF" xlink:href="tlf.pdf">
        <def:title>Tables</def:title>
      </def:leaf>
      <def:leaf ID="LF.PGM" xlink:href="t14-1-01.R">
        <def:title>Program of Table 14.1.01</def:title>
      </def:leaf>
      <arm:AnalysisResultDisplays>
        <arm:ResultDisplay OID="RD.T14.3.01" Name="Table 14.3.01">
          <Description>
            <TranslatedText xml:lang="en">Summary of glucose in treatment group 1</TranslatedText>
          </Description>
          <def:DocumentRef leafID="LF.TLF">
            <def:PDFPageRef PageRefs="T14_3_01" Type="NamedDestination"/>
          </def:DocumentRef>
          <arm:AnalysisResult OID="AR.T14.3.01.R1" ParameterOID="IT.ADLB.PARAMCD" AnalysisReason="SPECIFIED IN SAP" AnalysisPurpose="PRIMARY OUTCOME MEASURE">
            <Description>
              <TranslatedText xml:lang="en">Mean glucose of the safety population in treatment group 1</TranslatedText>
            </Description>
            <arm:AnalysisDatasets def:CommentOID="COMA.T14.3.01.R1">
              <arm:AnalysisDataset ItemGroupOID="IG.ADSL">
                <def:WhereClauseRef WhereClauseOID="WCA.T14.3.01.R1.ADSL"/>
              </arm:AnalysisDataset>
              <arm:AnalysisDataset ItemGroupOID="IG.ADLB">
                <def:WhereClauseRef WhereClauseOID="WCA.T14.3.01.R1.ADLB"/>
                <arm:AnalysisVariable ItemOID="IT.ADLB.AVAL"/>
              </arm:AnalysisDataset>
            </arm:AnalysisDatasets>
            <arm:Documentation>
              <Description>
                <TranslatedText xml:lang="en">Glucose is summarised as section 9.2 of the plan describes.</TranslatedText>
              </Description>
              <def:DocumentRef leafID="LF.SAP">
                <def:PDFPageRef PageRefs="Sec9.2" Type="NamedDestination"/>
              </def:DocumentRef>
            </arm:Documentation>
            <arm:ProgrammingCode Context="R 4.5.1">
              <arm:Code>s &lt;- adsl[adsl$SAFFL == "Y" &amp; adsl$TRT01AN == 1, ]
d &lt;- merge(s, adlb[adlb$PARAMCD == "GLUC", ], by = "USUBJID")
mean(d$AVAL)
</arm:Code>
            </arm:ProgrammingCode>
          </arm:AnalysisResult>
        </arm:ResultDisplay>
        <arm:ResultDisplay OID="RD.T14.1.01" Name="Table 14.1.01">
          <Description>
            <TranslatedText xml:lang="en">Subjects by treatment group</TranslatedText>
          </Description>
          <arm:AnalysisResult OID="AR.T14.1.01.R1" AnalysisReason="SPECIFIED IN PROTOCOL" AnalysisPurpose="SECONDARY OUTCOME MEASURE">
            <Description>
              <TranslatedText xml:lang="en">Number of subjects of the safety population in each treatment group</TranslatedText>
            </Description>
            <arm:AnalysisDatasets>
              <arm:AnalysisDataset ItemGroupOID="IG.ADSL">
                <def:WhereClauseRef WhereClauseOID="WCA.T14.1.01.R1.ADSL"/>
                <arm:AnalysisVariable ItemOID="IT.ADSL.TRT01AN"/>
              </arm:AnalysisDataset>
            </arm:AnalysisDatasets>
            <arm:Documentation>
              <Description>
                <TranslatedText xml:lang="en">Subjects are counted by treatment group.</TranslatedText>
              </Description>
            </arm:Documentation>
            <arm:ProgrammingCode Context="R 4.5.1">
              <def:DocumentRef leafID="LF.PGM"/>
            </arm:ProgrammingCode>
          </arm:AnalysisResult>
        </arm:ResultDisplay>
      </arm:AnalysisResultDisplays>
    </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
ADLBPARAMParametercharacterReqRecode LB.LBTESTCD: "GLUC" → "Glucose (mg/dL)", "CREAT" → "Creatinine (umol/L)", "HCG" → "Choriogonadotropin Beta"; missing values stay missing; unlisted values are errors.Assigned
ADLBAVALAnalysis ValuenumericCondCopy value from LB.LBSTRESN.Predecessor
ADLBAVALCAnalysis Value (C)characterCondCopy value from LB.LBSTRESC.Predecessor
Codelist IDNameValueDecodeCodelist NCI aliasValue NCI aliasExtensibleExtended valueSAS formatDictionaryVersion
HCGRSPregnancy Test ResultNEGATIVENo
HCGRSPregnancy Test ResultPOSITIVENo
NYNo Yes ResponseNNo
NYNo Yes ResponseYNo
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
4 lines
library(yamaa)yamaa_project("project.yaml")$spec("ADSL")$run()$save()yamaa_project("project.yaml")$spec("ADLB")$run()$output

Python

Edit
4 lines
import yamaayamaa.project("project.yaml").spec("ADSL").run().save()yamaa.project("project.yaml").spec("ADLB").run().output