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
README.mdPublic entries: Python and R. Passing coverage requires an installed inventory.
Goal: show that a single row template can replace a column's stated default for its own rows while every other template keeps it: weight records gain a body-mass-index record computed from baseline height, and all other records carry the standardized result unchanged.
Input: one spec.yaml with two row templates over a vital-signs
extract (input/vs.csv: height, weight, and temperature records with
standardized numeric results) and a subject-level file
(input/adsl.csv) carrying each subject's baseline height in
centimetres.
Variables:
AVAL: the analysis value. For body-mass-index rows, weight in kilograms divided by squared baseline height in metres; for every other row, the standardized result exactly as collected. A body-mass-index row with no usable baseline height keepsAVALblank, as does a row whose collected result is blank.PARAMCD: which record a row carries: the collected test code (HEIGHT,WEIGHT,TEMP), orBMIfor the derived body-mass-index rows.PARAM: the matching test name, orBody Mass Index (kg/m^2)for the derived rows.
Note: a column's stated default applies to every row template. A template that restates the column replaces the default for its own rows only, and the replacement reads that template's names exactly as if it had been written inside the template. The collected template therefore carries weight records through unchanged: the replacement never leaks onto them, while the body-mass-index template divides each weight by its own subject's baseline height.
Inputs
Under review2 source filesinput/adsl.csv
Edit2 rows| STUDYID | USUBJID | HEIGHTBL |
|---|---|---|
| YAMAA-01 | 172 | |
| YAMAA-01 | — |
input/vs.csv
Edit7 rows| STUDYID | USUBJID | VISIT | VSTESTCD | VSTEST | VSSTRESN | VSSTRESU |
|---|---|---|---|---|---|---|
| YAMAA-01 | BASELINE | HEIGHT | Height (cm) | 172 | cm | |
| YAMAA-01 | BASELINE | WEIGHT | Weight (kg) | 70 | kg | |
| YAMAA-01 | WEEK 4 | WEIGHT | Weight (kg) | 71 | kg | |
| YAMAA-01 | BASELINE | TEMP | Temperature (C) | 36.6 | C | |
| YAMAA-01 | BASELINE | HEIGHT | Height (cm) | 165 | cm | |
| YAMAA-01 | BASELINE | WEIGHT | Weight (kg) | 80 | kg | |
| YAMAA-01 | WEEK 4 | WEIGHT | Weight (kg) | — | kg |
Expected output
Under review11 expected rowsexpected/advs.csv
Edit11 rows| STUDYID | USUBJID | AVISIT | PARAMCD | PARAM | AVAL |
|---|---|---|---|---|---|
| YAMAA-01 | BASELINE | HEIGHT | Height (cm) | 172 | |
| YAMAA-01 | BASELINE | WEIGHT | Weight (kg) | 70 | |
| YAMAA-01 | WEEK 4 | WEIGHT | Weight (kg) | 71 | |
| YAMAA-01 | BASELINE | TEMP | Temperature (C) | 36.6 | |
| YAMAA-01 | BASELINE | HEIGHT | Height (cm) | 165 | |
| YAMAA-01 | BASELINE | WEIGHT | Weight (kg) | 80 | |
| YAMAA-01 | WEEK 4 | WEIGHT | Weight (kg) | — | |
| YAMAA-01 | BASELINE | BMI | Body Mass Index (kg/m^2) | 23.66143861546782 | |
| YAMAA-01 | WEEK 4 | BMI | Body Mass Index (kg/m^2) | 23.999459167117358 | |
| YAMAA-01 | BASELINE | BMI | Body Mass Index (kg/m^2) | — | |
| YAMAA-01 | WEEK 4 | BMI | Body Mass Index (kg/m^2) | — |
Human review and assessment
| Dataset Name | Variable Name | Variable Label | Type | Codelist/Controlled Terms | Core | Computational Method | Origin |
|---|---|---|---|---|---|---|---|
| ADVS | STUDYID | Study Identifier | character | Copy value from VS.STUDYID. | Predecessor | ||
| ADVS | USUBJID | Unique Subject Identifier | character | Copy value from VS.USUBJID. | Predecessor | ||
| ADVS | AVISIT | Analysis Visit Name | character | Copy value from VS.VISIT. | Predecessor | ||
| ADVS | PARAMCD | Parameter Code | character | Set per constructed row; see the Row construction sheet. | Derived | ||
| ADVS | PARAM | Parameter | character | Set per constructed row; see the Row construction sheet. | Derived | ||
| ADVS | AVAL | Analysis Value | numeric | Copy value from VS.VSSTRESN. | Predecessor |
| Template | Include when | PARAMCD | PARAM | HEIGHTBL | AVAL |
|---|---|---|---|---|---|
| collected | Copy VS.VSTESTCD | Copy VS.VSTEST | Constant "None" | None | |
| derived_bmi | VS.VSTESTCD = 'WEIGHT' | Constant "BMI" | Constant "Body Mass Index (kg/m^2)" | Copy ADSL.HEIGHTBL | Compute VS.VSSTRESN / NULLIF(HEIGHTBL * HEIGHTBL / 10000, 0) |
| Version | Date | Author | Description | Reviewer | Sign-off |
|---|---|---|---|---|---|
| 1.7 | 2026-10-20 | yamaa docs build | Read 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.6 | 2026-10-17 | yamaa docs build | Describe collected date parts written as ISO 8601 date text and times of day counted in seconds since midnight | ||
| 1.5 | 2026-10-17 | yamaa docs build | Name 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.4 | 2026-10-15 | yamaa docs build | State datetime precision codes through the hour and minute, and complete only the time parts a collected datetime lacks | ||
| 1.3 | 2026-09-29 | yamaa docs build | Show study codelist names, external dictionaries, and ISO 8601 formats in variable rows; list the document's codelist values and metadata | ||
| 1.2 | 2026-09-29 | yamaa docs build | Classify ADaM copies from a declared input as Predecessor and recodes as Derived, and SDTM recodes of locally derived columns as Derived | ||
| 1.1 | 2026-09-29 | yamaa docs build | Resolve lookups into the donor record they select, and give every derivation shape a plain-language rule instead of its raw YAML | ||
| 1.0 | yamaa docs build | Initial generation from spec.yaml |
yamaa