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: Is this a specification error a study team could realistically make, and should the build stop on it rather than continue?
  2. Inputs: Do they trigger the failure for the reason the summary gives?
  3. Expected failure: Is this the right error, raised at the right point, and would it tell the programmer what to fix?

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

Summary

Lifecycle: reviewedEditUnder review
What this benchmark means
README.md

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_date: TRTSDT

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
requirement
REQ-0385
expected/error.yaml
phase: verification
condition: row_count_failed
spec_paths:
  - verifications[1].row_count
requirement: REQ-0385
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

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
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.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