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 each subject's age in whole years (AGE) into the demographics domain, and report the ages wider than the width the specification declares for them.

Input: collected demographics with the study and subject identifiers and the age in whole years, empty when it was not recorded.

Variables:

  • STUDYID and USUBJID are the study and subject identifiers, as collected.
  • AGE is the collected age in years, unchanged. It is described to reviewers as one digit wide, so an age of ten years or more is wider than that description. Every age is checked against it once the variable is filled in. A wider age is a warning, not a failure: the run still succeeds and publishes every age as collected. An age that was not recorded is left empty and is not checked.

The run report (dm-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 subjects built, each output column with its missing values, and one row for the declared length of AGE. That row names the column it checks (TARGET) and the rule behind the check (RULE), and is a warning (SEVERITY) that the length understates the ages (OUTCOME violated, with the condition in CONDITION): it counts the two subjects whose age has two digits (COUNT) of the four checked (TOTAL), names them by their keys (KEYS) and states the column and the declared length (DETAILS).

To silence the warning, describe the age as wide as the ages the study can collect, such as length: 3 for an adult study; a collected age is never changed to fit the description.

Inputs

Under review
1 source file

input/dm_raw.csv

Edit
4 rows
input/dm_raw.csv
STUDYIDUSUBJIDAGE
YAMAA-0134
YAMAA-017
YAMAA-0167
YAMAA-01—

Expected output

Under review
11 expected rows

expected/dm-checks.csv

Edit
7 rows
expected/dm-checks.csv
ARTIFACTKINDSPEC_PATHNAMEIDTARGETRULESEVERITYOUTCOMECONDITIONCOUNTTOTALKEYSDETAILS
dm.csvrunoutput—————succeeded—4——{}
dm.csvinputinput.DM_RAWDM_RAW——————4——{"bytes":117,"path":"input/dm_raw.csv","profile":"csv"}
dm.csvrowsbaseDM_RAW——————44—{}
dm.csvcolumncolumns.STUDYIDSTUDYID——————04—{"max_length":8}
dm.csvcolumncolumns.USUBJIDUSUBJID——————04—{"max_length":12}
dm.csvcolumncolumns.AGEAGE——————14—{}
dm.csvcheckcolumns.AGE.submission.lengthnumeric_width—AGESUB-29warningviolatednumeric_width_failed24[{"STUDYID":"YAMAA-01","USUBJID":"YAMAA-01-101"},{"STUDYID":"YAMAA-01","USUBJID":"YAMAA-01-103"}]{"column":"AGE","length":1}

expected/dm.csv

Edit
4 rows
expected/dm.csv
STUDYIDUSUBJIDAGE
YAMAA-0134
YAMAA-017
YAMAA-0167
YAMAA-01—
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

Variable NameVariable LabelTypeLengthControlled Terms or FormatOriginCoreConversion DefinitionVariable TypeVariable OrderComments for Define
STUDYIDStudy IdentifierCharCollectedCopy value from DM_RAW.STUDYID.SDTM1
USUBJIDUnique Subject IdentifierCharCollectedCopy value from DM_RAW.USUBJID.SDTM2
AGEAgeNum1CollectedExpCopy value from DM_RAW.AGE.SDTM3
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