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 result (AVAL) and what was meant as the subject's first result (BASE), and report that the choice of a first result never had two results to choose between.

Input: one spec.yaml over one dataset. VS carries one row per vital signs result: subject, sequence number and the numeric result.

Variables:

  • USUBJID and VSSEQ are the result's subject and sequence number; each output row is one result.
  • AVAL is the result.
  • BASE was written to keep the subject's result with the lowest sequence number. It chooses only among the results that build one output row, and each output row is built from one result, so it holds the row's own result, the same as AVAL.

The run report (advs-checks.csv) has one row per item the run handled, each naming the dataset (ARTIFACT), the kind of item (KIND), where the spec states it (SPEC_PATH) and the item's name (NAME): the run and its outcome (OUTCOME), the input dataset read, the rows built, the count of rows where the first result chose between two results, which names the column it feeds (TARGET), and one row per output column. One warning follows, at the choice of the first result. It has no label (ID) or column (TARGET); it names the rule it reports (RULE), its SEVERITY and what it found (CONDITION), counts the choice as one unit (COUNT, TOTAL, KEYS), and its DETAILS name the result it reads.

Note: the warning changes no value and fails nothing. A first result per subject is chosen over the subject's results apart from the rows, such as a lookup over the vital signs keyed by subject, and gives no warning.

Inputs

Under review
1 source file

input/vs.csv

Edit
4 rows
input/vs.csv
USUBJIDVSSEQVSSTRESN
1120
2126
3131
1118

Expected output

Under review
13 expected rows

expected/advs-checks.csv

Edit
9 rows
expected/advs-checks.csv
ARTIFACTKINDSPEC_PATHNAMEIDTARGETRULESEVERITYOUTCOMECONDITIONCOUNTTOTALKEYSDETAILS
advs.csvrunoutput—————succeeded—4——{}
advs.csvinputinput.VSVS——————4——{"bytes":63,"path":"input/vs.csv","profile":"csv"}
advs.csvrowsbaseVS——————44—{}
advs.csvhandlercolumns.BASE.derivation.source.multiple_matchesmultiple_matches—BASELOOKUP-10———0——{}
advs.csvcolumncolumns.USUBJIDUSUBJID——————04—{"max_length":3}
advs.csvcolumncolumns.VSSEQVSSEQ——————04—{}
advs.csvcolumncolumns.AVALAVAL——————04—{}
advs.csvcolumncolumns.BASEBASE——————04—{}
advs.csvcheckcolumns.BASE.derivation.source.keepunchosen_selection——LOOKUP-10warningviolatedunchosen_selection11[{}]{"identifier":"VS.VSSTRESN"}

expected/advs.csv

Edit
4 rows
expected/advs.csv
USUBJIDVSSEQAVALBASE
1120120
2126126
3131131
1118118
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
ADVSUSUBJIDUnique Subject IdentifiercharacterCopy value from VS.USUBJID.Predecessor
ADVSVSSEQSequence NumbernumericCopy value from VS.VSSEQ.Predecessor
ADVSAVALAnalysis ValuenumericCopy value from VS.VSSTRESN.Predecessor
ADVSBASEBaseline ValuenumericCopy value from VS.VSSTRESN keeping the first ordered by VS.VSSEQ.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_spec("spec.yaml")$run()$output

Python

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