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: publish the category B findings, obs_b.csv, with the subject (SUBJ), the sequence number (SEQ) and the value (VAL), and check the keys, the values and the record count over the published records alone.

Input: input/findings.csv holds five findings. The two category A findings are faulty: one repeats subject S1's sequence number 1 and misses its value, and one misses its sequence number. Two spec files:

  • spec_part.yaml keeps the category B findings and writes its run report to obs_b-checks.csv;
  • spec_empty.yaml names spec_part.yaml as its parent and keeps the category Z findings, of which there are none, writing obs_z.csv and obs_z-checks.csv.

Variables:

  • SUBJ, SEQ and VAL carry the subject, the sequence number and the value from the input record.

Each run report 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 findings read and built, each published variable with its missing values and longest text (DETAILS), then one row per check. A check row carries no label (ID), the variable it covers (TARGET), the rule it applies (RULE), its SEVERITY, and how many records failed out of how many it examined (COUNT, TOTAL); every check holds, so CONDITION and KEYS are empty.

Note: the faulty findings are built and then left out, so the subject and sequence number identify each published record, no published value is missing, and the count of at most three records holds. The run report counts the three published records (zero for the empty part) for every variable and check, while its row-construction line still counts the five findings read and built.

Inputs

Under review
1 source file

input/findings.csv

Edit
5 rows
input/findings.csv
SUBJSEQCATVAL
S11B10
S11A—
S1—A12
S12B13
S21B14

Expected output

Under review
19 expected rows

expected/obs_b-checks.csv

Edit
8 rows
expected/obs_b-checks.csv
ARTIFACTKINDSPEC_PATHNAMEIDTARGETRULESEVERITYOUTCOMECONDITIONCOUNTTOTALKEYSDETAILS
obs_b.csvrunoutput—————succeeded—3——{}
obs_b.csvinputinput.FNDFND——————5——{"bytes":64,"path":"input/findings.csv","profile":"csv"}
obs_b.csvrowsrows.findingsFND——————55—{}
obs_b.csvcolumncolumns.SUBJSUBJ——————03—{"max_length":2}
obs_b.csvcolumncolumns.SEQSEQ——————03—{}
obs_b.csvcolumncolumns.VALVAL——————03—{}
obs_b.csvcheckcolumns.VAL.verifications[0].not_missingnot_missing—VALCHECK-5errorheld—03—{}
obs_b.csvcheckverifications[0].row_countrow_count——CHECK-13errorheld—01—{}

expected/obs_b.csv

Edit
3 rows
expected/obs_b.csv
SUBJSEQVAL
S1110
S1213
S2114

expected/obs_z-checks.csv

Edit
8 rows
expected/obs_z-checks.csv
ARTIFACTKINDSPEC_PATHNAMEIDTARGETRULESEVERITYOUTCOMECONDITIONCOUNTTOTALKEYSDETAILS
obs_z.csvrunoutput—————succeeded—0——{}
obs_z.csvinputinput.FNDFND——————5——{"bytes":64,"path":"input/findings.csv","profile":"csv"}
obs_z.csvrowsrows.findingsFND——————55—{}
obs_z.csvcolumncolumns.SUBJSUBJ——————00—{"max_length":0}
obs_z.csvcolumncolumns.SEQSEQ——————00—{}
obs_z.csvcolumncolumns.VALVAL——————00—{}
obs_z.csvcheckcolumns.VAL.verifications[0].not_missingnot_missing—VALCHECK-5errorheld—00—{}
obs_z.csvcheckverifications[0].row_countrow_count——CHECK-13errorheld—01—{}

expected/obs_z.csv

Edit
0 rows
expected/obs_z.csv
SUBJSEQVAL

This file has no data rows.

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
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
4 lines
library(yamaa)yamaa_spec("spec_part.yaml")$run()$save()yamaa_spec("spec_empty.yaml")$run()$output

Python

Edit
4 lines
import yamaayamaa.spec("spec_part.yaml").run().save()yamaa.spec("spec_empty.yaml").run().output