Review ask

As a clinical trial statistician or programmer, answer two short questions in Your review: the task and the inputs. 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: give each questionnaire its treatment period (APERIOD), next to where it was completed (SOURCE), its sequence number (QSSEQ) and its date (QSDT).

Input: questionnaires completed at clinic visits, questionnaires completed on an electronic patient-reported outcome (ePRO) device, which store their fields in a different order, and a table giving each subject's treatment periods, each from a first to a last day.

Variables:

  • SOURCE would be CLINIC for a questionnaire completed at a visit and EPRO for one completed on the device.
  • APERIOD would be the number of the subject's period whose first and last days, both inclusive, hold the questionnaire's own date, and blank when no period does.

Note: a device questionnaire is placed by a value of the device row itself: a field of the device record the row was built from, or a column built for that row. The date is taken from a clinic record instead, which a device row does not have, so the run is rejected before any data is read; no artifact is accepted.

How to fix

Decide which date places a device questionnaire; usually it is the date the device recorded. Read that date from the device record the row is built from, as the clinic template reads its own record:

between: {value: EPRO.QSDT, lower: APERSDT, upper: APEREDT}

Or name the column QSDT, which each template already fills from its own record: a bare name reads that column of the row.

Expected failure

Edit
the run is rejected; no artifact is accepted
expected/error.yaml
phase
validation
condition
unknown_field
rule
LOOKUP-9
expected/error.yaml
phase: validation
condition: unknown_field
spec_paths:
  - rows.epro.derivations.APERIOD.source.between.value
rule: LOOKUP-9
context:
  identifier: CLINIC.QSDT
  variable: PERIODS.APERIOD

Inputs

Under review
3 source files

input/clinic.csv

Edit
3 rows
input/clinic.csv
STUDYIDUSUBJIDQSSEQVISITQSDT
YAMAA-011PERIOD 1 DAY 12025-01-01
YAMAA-012PERIOD 2 DAY 12025-02-01
YAMAA-011PERIOD 1 DAY 12025-03-01

input/epro.csv

Edit
3 rows
input/epro.csv
STUDYIDUSUBJIDQSDTQSSEQ
YAMAA-012025-01-313
YAMAA-012025-03-054
YAMAA-01—5

input/periods.csv

Edit
3 rows
input/periods.csv
STUDYIDUSUBJIDAPERIODAPERSDTAPEREDT
YAMAA-0112025-01-012025-01-31
YAMAA-0122025-02-012025-02-28
YAMAA-0112025-03-01—

Unexpected Output

Under review
No artifact is produced

No fixture files in this directory.

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
ADQSSTUDYIDStudy IdentifiercharacterSet per constructed row; see the Row construction sheet.Derived
ADQSUSUBJIDUnique Subject IdentifiercharacterSet per constructed row; see the Row construction sheet.Derived
ADQSSOURCEQuestionnaire SourcecharacterSet per constructed row; see the Row construction sheet.Derived
ADQSQSSEQSequence NumbernumericSet per constructed row; see the Row construction sheet.Derived
ADQSQSDTDate of QuestionnairenumericISO 8601Set per constructed row; see the Row construction sheet.Derived
ADQSAPERIODPeriodnumericSet per constructed row; see the Row construction sheet.Derived
TemplateInclude whenSTUDYIDUSUBJIDSOURCEQSSEQQSDTAPERIOD
clinicCopy CLINIC.STUDYIDCopy CLINIC.USUBJIDConstant "CLINIC"Copy CLINIC.QSSEQCopy CLINIC.QSDTCopy PERIODS.APERIOD
eproCopy EPRO.STUDYIDCopy EPRO.USUBJIDConstant "EPRO"Copy EPRO.QSSEQCopy EPRO.QSDTCopy PERIODS.APERIOD
VersionDateAuthorDescriptionReviewerSign-off
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