Review ask

As a clinical trial statistician or programmer, challenge anything in this benchmark: describe a problem in Comments, or propose a fix with the Edit button on any source file.

  1. Task: Would a real study need this derivation, specified this way? Does it follow CDISC ADaM: variable names, controlled terms, record structure? Flag any rule that is ambiguous or that a sponsor would handle differently.
  2. Inputs: Do they look like data collected in a real trial, and do they include the situations you would expect to meet in one?
  3. Expected output: Would independent QC programming reproduce every value from these inputs and rules?

The other tabs beside Comments are background for assessment, not under review.

Summary

Lifecycle: draftEditUnder review
What this benchmark means
README.md

Goal: pin how each column's value is written and read: fixed values, values copied by naming their source column, age bands, a population flag chosen by a condition, first-available country selection, joining text, and the largest and smallest of several collected weights.

Input: one spec.yaml. DM carries one record per subject: sex, age, first-dose date, country, site country, and two collected weights, any of which may be blank.

Columns:

  • STUDYID holds a fixed study code written directly in the column.
  • USUBJID and SEX copy the collected values by naming the source column alone.
  • AGEGRP places each age in a band: under 18, 18 to 64, or 65 and over. Each band includes its lower edge, so an age of exactly 65 is in the oldest band and an age of exactly 18 is in the middle band; a 12-year-old exercises the youngest band. A subject with no age carries the fallback text NOT REPORTED.
  • SAFFL flags the safety population: Y for a subject with a first-dose date, N for a subject without one.
  • COUNTRY takes the subject's own country, or the site country when the subject's own entry is blank. When both are blank it carries the declared fallback text.
  • SUBJLBL joins the fixed word Subject to the subject number.
  • WTMAX carries the larger of the two collected weights, skipping a blank one; with both blank it stays blank.
  • WTMIN carries the smaller of the two collected weights, skipping a blank one; with both blank it stays blank.

Inputs

Under review
1 source file

input/dm.csv

Edit
6 rows
input/dm.csv
STUDYIDUSUBJIDSUBJIDSEXAGERFXSTDTCCOUNTRYSITECNTYWT_SCRWT_BL
YAMAA-01001M652026-01-12USAUSA7072
YAMAA-01002F402026-01-19—CAN—68
YAMAA-01003M——————
YAMAA-01004F252026-02-02GBRGBR5555
YAMAA-01005F182026-02-10USA—8075
YAMAA-01006M12—GBRGBR4545

Expected output

Under review
6 expected rows

expected/adsl.csv

Edit
6 rows
expected/adsl.csv
STUDYIDUSUBJIDSEXAGEGRPSAFFLCOUNTRYSUBJLBLWTMAXWTMIN
YAMAA-01M65+YUSASubject 0017270
YAMAA-01F18-64YCANSubject 0026868
YAMAA-01MNOT REPORTEDNUNKNOWNSubject 003——
YAMAA-01F18-64YGBRSubject 0045555
YAMAA-01F18-64YUSASubject 0058075
YAMAA-01M<18NGBRSubject 0064545
Shaded columns are derived— = missing value

Comments and assessment materials

Comments

Signed in with GitHub; saved in repository Discussions

Mapping spec

Generated from the benchmark YAML; do not edit by hand

Dataset NameVariable NameVariable LabelTypeCodelist/Controlled TermsCoreComputational MethodOrigin
ADSLSTUDYIDStudy IdentifiercharacterSet constant value "YAMAA-01".Assigned
ADSLUSUBJIDUnique Subject IdentifiercharacterCopy value from DM.USUBJID.Predecessor
ADSLSEXSexcharacterCopy value from DM.SEX.Predecessor
ADSLAGEGRPAge GroupcharacterBand DM.AGE at 18, 65 into "<18", "18-64" and "65+", intervals closed on the left; a missing source → "NOT REPORTED".Derived
ADSLSAFFLSafety Population FlagcharacterIf DM.RFXSTDTC IS NOT NULL then "Y"; otherwise "N".Derived
ADSLCOUNTRYCountrycharacterFirst non-missing of DM.COUNTRY and DM.SITECNTY; all missing → "UNKNOWN".Derived
ADSLSUBJLBLSubject LabelcharacterConcatenate "Subject " and DM.SUBJID.Derived
ADSLWTMAXHighest Recorded WeightnumericGreatest of DM.WT_SCR and DM.WT_BL.Derived
ADSLWTMINLowest Recorded WeightnumericLeast of DM.WT_SCR and DM.WT_BL.Derived
VersionDateAuthorDescriptionReviewerSign-off
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

Runs the yamaa specification; its result must match the expected output

run.R

Edit
4 lines
library(yamaa)adsl <- yamaa_domain("spec.yaml")$outputadsl

run.py

Edit
4 lines
import yamaaadsl = yamaa.yamaa_domain("spec.yaml").outputadsl