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 vital-signs analysis values where each fragile read states its fallback beside it: an unmapped or absent test code, a collected result that cannot be read as a whole number, and a subject with more than one dosing record.

Input: one spec.yaml. VS carries the vital-signs records: subject, sequence, test code, the result as entered text, and units. EX carries the dosing records: subject, sequence, treatment, dose, and start date.

Fallbacks:

  • PARAM codes each test: a collected code with no dictionary entry, and a record with no collected code at all, both take the stated "Other measure" label.
  • AVAL reads the collected result as a whole number: a result that cannot be read that way, such as "ND" or the fractional "98.6", is left blank by the stated fallback. A record with no collected result is blank because there is nothing to read.
  • LASTDOSE takes each subject's latest dose: a dosing record with no dose never qualifies, the dosed record with the latest start date wins, and a subject with no dosed record keeps the dose blank.

Note: each fallback is stated beside the read it guards, so the run completes with the stated answers instead of failing; a read whose condition never occurs keeps its ordinary value.

Inputs

Under review
2 source files

input/ex.csv

Edit
4 rows
input/ex.csv
STUDYIDUSUBJIDEXSEQEXTRTEXDOSEEXSTDTC
YAMAA-011DRUG A102026-01-05
YAMAA-012DRUG A202026-02-05
YAMAA-013DRUG A—2026-03-05
YAMAA-011DRUG A102026-01-10

input/vs.csv

Edit
8 rows
input/vs.csv
STUDYIDUSUBJIDVSSEQVSTESTCDVSSTRESNVSSTRESU
YAMAA-011SYSBP120mmHg
YAMAA-012DIABP80mmHg
YAMAA-013PULSE72beats/min
YAMAA-011SYSBPNDmmHg
YAMAA-012DIABP78mmHg
YAMAA-013TEMP98.6F
YAMAA-014———
YAMAA-011PULSE68beats/min

Expected output

Under review
8 expected rows

expected/advs.csv

Edit
8 rows
expected/advs.csv
STUDYIDUSUBJIDVSSEQPARAMAVALLASTDOSE
YAMAA-011Systolic Blood Pressure12020
YAMAA-012Diastolic Blood Pressure8020
YAMAA-013Pulse Rate7220
YAMAA-011Systolic Blood Pressure—10
YAMAA-012Diastolic Blood Pressure7810
YAMAA-013Other measure—10
YAMAA-014Other measure—10
YAMAA-011Pulse Rate68—
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
ADVSPARAMParametercharacterRecode VS.VSTESTCD: "SYSBP" → "Systolic Blood Pressure", "DIABP" → "Diastolic Blood Pressure", "PULSE" → "Pulse Rate"; missing or unlisted values → "Other measure".Derived
ADVSAVALAnalysis ValuenumericCopy value from VS.VSSTRESN; a value that cannot be converted → blank.Derived
ADVSLASTDOSELatest DosenumericCopy value from EX.EXDOSE where EX.EXDOSE IS NOT NULL, keeping the last ordered by EX.EXSTDTC.Predecessor
VersionDateAuthorDescriptionReviewerSign-off
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_spec("spec.yaml")$run()$output

Python

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