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 the planned arm code (ARMCD) into ADSL and give its description (ARM), with a data-definition document listing the coded values of each under a codelist named for its dataset and variable.

Input: spec.yaml reads one pre-analysis row per subject, and project.yaml declares the study's two codelists, named ADSL.ARMCD and ADSL.ARM.

Variables:

  • ARMCD is the planned arm code, one of the coded values of ADSL.ARMCD.
  • ARM is the description of the planned arm: the decode ADSL.ARMCD gives the subject's arm code, one of the values of ADSL.ARM.

Note: a codelist's name may join several parts with periods, as submitted data-definition documents commonly name a codelist for the dataset and variable it serves. The document identifies each codelist by that name behind a fixed CL. prefix, so the arm code's codelist is CL.ADSL.ARMCD.

Inputs

Under review
1 source file

input/adsl_raw.csv

Edit
3 rows
input/adsl_raw.csv
STUDYIDUSUBJIDARMCD
CATHVITD
CATHPBO
CATHVITD

Expected output

Under review
3 expected rows

expected/adsl.csv

Edit
3 rows
expected/adsl.csv
STUDYIDUSUBJIDARMCDARM
CATHVITDVitamin D3
CATHPBOPlacebo
CATHVITDVitamin D3

expected/define.xml

Edit
Define-XML

Define-XML 2.1.11: CATH

Example study naming its codelists by dataset and variable; CATH-01; ADaMIG 1.3

Datasets
DatasetDescriptionClassStructurePurposeKeysDocumentationLocation
ADSLSubject-Level Analysis DatasetSUBJECT LEVEL ANALYSIS DATASETOne record per subjectAnalysisSTUDYID, USUBJIDadsl.csv

ADSL

ADSL variables
VariableLabel / DescriptionTypeLength or Display FormatControlled Terms or ISO FormatOrigin / Source / Method / Comment
STUDYIDStudy Identifiertext4Predecessor; ADSL_RAW.STUDYID
USUBJIDUnique Subject Identifiertext9Predecessor; ADSL_RAW.USUBJID
ARMCDPlanned Arm Codetext4Planned Arm Code (CL.ADSL.ARMCD) PBO = Placebo VITD = Vitamin D3Predecessor; ADSL_RAW.ARMCD
ARMDescription of Planned Armtext10Description of Planned Arm (CL.ADSL.ARM) Placebo Vitamin D3Derived; Sponsor Decode of ARMCD in the planned arm code codelist.
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="CATH.adam.Define-XML_2.1" CreationDateTime="2026-09-11T00:00:00" SourceSystem="yamaa" SourceSystemVersion="1.0" def:Context="Other">
  <Study OID="STDY.CATH">
    <GlobalVariables>
      <StudyName>CATH</StudyName>
      <StudyDescription>Example study naming its codelists by dataset and variable</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>
      <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.ARMCD" OrderNumber="3" Mandatory="Yes"/>
        <ItemRef ItemOID="IT.ADSL.ARM" OrderNumber="4" Mandatory="Yes" MethodOID="MT.ADSL.ARM"/>
        <def:Class Name="SUBJECT LEVEL ANALYSIS DATASET"/>
        <def:leaf ID="LF.ADSL" xlink:href="adsl.csv">
          <def:title>adsl.csv</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">ADSL_RAW.STUDYID</TranslatedText>
          </Description>
        </def:Origin>
      </ItemDef>
      <ItemDef OID="IT.ADSL.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">ADSL_RAW.USUBJID</TranslatedText>
          </Description>
        </def:Origin>
      </ItemDef>
      <ItemDef OID="IT.ADSL.ARMCD" Name="ARMCD" DataType="text" Length="4" SASFieldName="ARMCD">
        <Description>
          <TranslatedText xml:lang="en">Planned Arm Code</TranslatedText>
        </Description>
        <CodeListRef CodeListOID="CL.ADSL.ARMCD"/>
        <def:Origin Type="Predecessor">
          <Description>
            <TranslatedText xml:lang="en">ADSL_RAW.ARMCD</TranslatedText>
          </Description>
        </def:Origin>
      </ItemDef>
      <ItemDef OID="IT.ADSL.ARM" Name="ARM" DataType="text" Length="10" SASFieldName="ARM">
        <Description>
          <TranslatedText xml:lang="en">Description of Planned Arm</TranslatedText>
        </Description>
        <CodeListRef CodeListOID="CL.ADSL.ARM"/>
        <def:Origin Type="Derived" Source="Sponsor"/>
      </ItemDef>
      <CodeList OID="CL.ADSL.ARMCD" Name="Planned Arm Code" DataType="text" def:IsNonStandard="Yes">
        <CodeListItem CodedValue="PBO">
          <Decode>
            <TranslatedText xml:lang="en">Placebo</TranslatedText>
          </Decode>
        </CodeListItem>
        <CodeListItem CodedValue="VITD">
          <Decode>
            <TranslatedText xml:lang="en">Vitamin D3</TranslatedText>
          </Decode>
        </CodeListItem>
      </CodeList>
      <CodeList OID="CL.ADSL.ARM" Name="Description of Planned Arm" DataType="text" def:IsNonStandard="Yes">
        <EnumeratedItem CodedValue="Placebo"/>
        <EnumeratedItem CodedValue="Vitamin D3"/>
      </CodeList>
      <MethodDef OID="MT.ADSL.ARM" Name="ADSL.ARM" Type="Computation">
        <Description>
          <TranslatedText xml:lang="en">Decode of ARMCD in the planned arm code codelist.</TranslatedText>
        </Description>
      </MethodDef>
    </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
ADSLSTUDYIDStudy IdentifiercharacterReqCopy value from ADSL_RAW.STUDYID.Predecessor
ADSLUSUBJIDUnique Subject IdentifiercharacterReqCopy value from ADSL_RAW.USUBJID.Predecessor
ADSLARMCDPlanned Arm CodecharacterPlanned Arm CodeReqCopy value from ADSL_RAW.ARMCD.Predecessor
ADSLARMDescription of Planned ArmcharacterDescription of Planned ArmReqDecode of ARMCD in the planned arm code codelist.Derived
Codelist IDNameValueDecodeCodelist NCI aliasValue NCI aliasExtensibleExtended valueSAS formatDictionaryVersion
ADSL.ARMCDPlanned Arm CodePBOPlaceboNo
ADSL.ARMCDPlanned Arm CodeVITDVitamin D3No
ADSL.ARMDescription of Planned ArmPlaceboNo
ADSL.ARMDescription of Planned ArmVitamin D3No
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("ADSL")$run()$output

Python

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