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: derive each vital-signs record's analysis date (ADT), the subject's first treatment date (TRTSDT) and the analysis day (ADY) in ADVS, while the first-exposure dates in the demographics (DM) are still being collected.

Input: two spec files, run in order:

  • spec_adsl.yaml builds ADSL from DM and saves it as adsl.csv. DM carries the first-exposure date for every subject, empty for a subject whose date has not been collected yet;
  • spec_advs.yaml is the entry: it reads the vital-signs records and takes TRTSDT from the saved adsl.csv.

Variables:

  • ADT is the vital-signs date, derived for every record whatever DM holds;
  • TRTSDT is DM's first-exposure date, taken from ADSL; it stays empty while that date has not been delivered;
  • ADY is the study day of ADT from TRTSDT: the first treatment day is day 1, the day before it is day -1, and there is no day zero; it stays empty while TRTSDT is.

Note: every vital-signs record is derived whether or not its subject's first-exposure date has been delivered, and only the values that need a missing date stay empty. When the date arrives in a later delivery, the same two specs derive it with no change. A delivery that leaves the field out altogether is not accepted: the spec names a field the file does not have, and the run stops before deriving anything.

Inputs

Under review
2 source files

input/dm.csv

Edit
2 rows
input/dm.csv
STUDYIDUSUBJIDRFXSTDTC
YAMAA-012026-01-05
YAMAA-01—

input/vs.csv

Edit
4 rows
input/vs.csv
STUDYIDUSUBJIDVSSEQVSDTC
YAMAA-0112026-01-04
YAMAA-0122026-01-05
YAMAA-0132026-01-10
YAMAA-0112026-01-12

Expected output

Under review
6 expected rows

expected/adsl.csv

Edit
2 rows
expected/adsl.csv
STUDYIDUSUBJIDTRTSDT
YAMAA-012026-01-05
YAMAA-01—

expected/advs.csv

Edit
4 rows
expected/advs.csv
STUDYIDUSUBJIDVSSEQADTTRTSDTADY
YAMAA-0112026-01-042026-01-05-1
YAMAA-0122026-01-052026-01-051
YAMAA-0132026-01-102026-01-056
YAMAA-0112026-01-12——
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
ADVSSTUDYIDStudy IdentifiercharacterCopy value from VS.STUDYID.Predecessor
ADVSUSUBJIDUnique Subject IdentifiercharacterCopy value from VS.USUBJID.Predecessor
ADVSVSSEQSequence NumbernumericCopy value from VS.VSSEQ.Predecessor
ADVSADTAnalysis DatenumericISO 8601Copy value from VS.VSDTC.Predecessor
ADVSTRTSDTDate of First Exposure to TreatmentnumericISO 8601Copy value from ADSL.TRTSDT.Predecessor
ADVSADYAnalysis Relative DaynumericCDISC study day of ADT against TRTSDT as day 1; there is no day zero.Derived
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_spec("spec_adsl.yaml")$run()$save()yamaa_spec("spec_advs.yaml")$run()$output

Python

Edit
4 lines
import yamaayamaa.spec("spec_adsl.yaml").run().save()yamaa.spec("spec_advs.yaml").run().output