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: reviewedEditUnder review
What this benchmark means
README.md

Public entries: Python and R. Passing coverage requires an installed inventory.

Goal: carry over the analysis value (AVAL) and the baseline record flag (ABLFL) for each laboratory record.

Input: pre-derived laboratory records carrying study, subject, and parameter identifiers, the analysis date (ADT), the analysis value (AVAL), and the baseline record flag (ABLFL). One subject carries two Y flags for a parameter; another subject carries none.

Variables:

  • ABLFL is the input baseline flag: Y on the record that serves as the baseline for the subject and parameter, blank on every other record.

Note: each subject and parameter must have exactly one record flagged Y; a combination with none is rejected as well. Two flagged records leave the change from baseline undefined, and neither record can be preferred without inventing a rule the study did not state. The run is rejected and no artifact is accepted. The expected output records the completed rows presented to that check.

How to fix

Correct the flag in the incoming records so that one record carries it, choosing the record the study's baseline definition selects, ordinarily the latest result on or before the first exposure. When the flag should be derived here instead of trusted from the input, derive it and let a tie be reported where it arises:

- name: ABLFL
  type: str
  label: Baseline Record Flag
  derivation:
    baseline_flag:
      window:
        group_by: [STUDYID, USUBJID, PARAMCD]
      date: ADT
      reference: TRTSDT
      source: AVAL

Do not widen the count to accept two records; a second baseline is a defect in the data rather than a policy the analysis can adopt.

Expected failure

Edit
the run is rejected; no artifact is accepted
expected/error.yaml
phase
verification
condition
row_count_failed
rule
CHECK-13
expected/error.yaml
phase: verification
condition: row_count_failed
spec_paths:
  - verifications[0].row_count
rule: CHECK-13
context:
  verification_id: one-baseline-record-per-subject-and-parameter
  failure_count: 2
  keys:
    - STUDYID: YAMAA-01
      USUBJID: YAMAA-01-101
      PARAMCD: ALT
    - STUDYID: YAMAA-01
      USUBJID: YAMAA-01-103
      PARAMCD: ALT
  counts:
    - 2
    - 0

Inputs

Under review
1 source file

input/adlb_raw.csv

Edit
7 rows
input/adlb_raw.csv
STUDYIDUSUBJIDPARAMCDADTAVALABLFL
YAMAA-01ALT2025-01-0110Y
YAMAA-01ALT2025-01-0212Y
YAMAA-01ALT2025-01-0815—
YAMAA-01ALT2025-01-018Y
YAMAA-01ALT2025-01-0812—
YAMAA-01ALT2025-01-019—
YAMAA-01ALT2025-01-0811—

Unexpected Output

Under review
7 rows presented to the failing check - not an accepted artifact

expected/adlb.csv

Edit
7 rows
expected/adlb.csv
STUDYIDUSUBJIDPARAMCDADTAVALABLFL
YAMAA-01ALT2025-01-0110Y
YAMAA-01ALT2025-01-0212Y
YAMAA-01ALT2025-01-0815—
YAMAA-01ALT2025-01-018Y
YAMAA-01ALT2025-01-0812—
YAMAA-01ALT2025-01-019—
YAMAA-01ALT2025-01-0811—
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
ADLBSTUDYIDStudy IdentifiercharacterCopy value from ADLB_RAW.STUDYID.Predecessor
ADLBUSUBJIDUnique Subject IdentifiercharacterCopy value from ADLB_RAW.USUBJID.Predecessor
ADLBPARAMCDParameter CodecharacterCopy value from ADLB_RAW.PARAMCD.Predecessor
ADLBADTAnalysis DatenumericISO 8601Copy value from ADLB_RAW.ADT.Predecessor
ADLBAVALAnalysis ValuenumericCopy value from ADLB_RAW.AVAL.Predecessor
ADLBABLFLBaseline Record FlagcharacterYCopy value from ADLB_RAW.ABLFL.Predecessor
VariablePermitted values
ABLFLY
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