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.
- Task: Is this a specification error a study team could realistically make, and should the build stop on it rather than continue?
- Inputs: Do they trigger the failure for the reason the summary gives?
- 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
README.mdGoal: add an absolute lymphocyte (LYMPH) record carrying
AVAL and DTYPE.
Input: collected laboratory records carrying the collected
result in AVAL, identified by subject, visit, and parameter
code, including white blood cell (WBC) counts and lymphocyte
fractions (LYMLE).
Variables:
AVAL: the collected result on collected records. On the newLYMPHrecord it is theWBCcount multiplied by theLYMLEfraction from the same subject and visit; that record is added only when both values are present and noLYMPHresult was collected at the visit.DTYPE:CALCULATIONon the newLYMPHrecord, empty on collected records.
Note: each contributing parameter may occur at most once within a
subject and visit. A repeated WBC or LYMLE result leaves no single value
to multiply, so the run stops with no artifact rather than choosing one
record by amount or position or adding both values.
How to fix
Resolve the duplicate WBC records according to the study's data conventions before calculating the absolute differential. The run then sees one WBC record per subject and visit, for example:
STUDYID,USUBJID,PARAMCD,AVAL,PARAM,VISIT
YAMAA-01,YAMAA-01-101,WBC,34,Leukocyte Count (10^9/L),CYCLE 1 DAY 1
YAMAA-01,YAMAA-01-101,LYMLE,0.90,Lymphocytes (fraction of 1),CYCLE 1 DAY 1
Do not replace ONLY with MIN, MAX, or file-order selection unless that
choice is a documented clinical rule; those alternatives answer a different
question.
Expected failure
Editthe run is rejected; no artifact is acceptedexpected/error.yaml- phase
- row_construction
- condition
- aggregate_multiple_records
- requirement
- REQ-0501
expected/error.yaml
phase: row_construction
condition: aggregate_multiple_records
spec_paths:
- rows[1].derivations.WBCVAL.aggregate
requirement: REQ-0501
context:
expr: ONLY(ADLB_RAW.AVAL)
reducer: ONLY
row: derived_lymph
group:
STUDYID: YAMAA-01
USUBJID: YAMAA-01-101
VISIT: CYCLE 1 DAY 1
record_count: 2
Inputs
Under review1 source fileinput/adlb.csv
Edit3 rows| STUDYID | USUBJID | PARAMCD | AVAL | PARAM | VISIT |
|---|---|---|---|---|---|
| YAMAA-01 | WBC | 33 | Leukocyte Count (10^9/L) | CYCLE 1 DAY 1 | |
| YAMAA-01 | WBC | 34 | Leukocyte Count (10^9/L) | CYCLE 1 DAY 1 | |
| YAMAA-01 | LYMLE | 0.90 | Lymphocytes (fraction of 1) | CYCLE 1 DAY 1 |
Unexpected Output
Under reviewNo artifact is producedNo fixture files in this directory.
Comments and assessment materials
| Dataset Name | Variable Name | Variable Label | Type | Codelist/Controlled Terms | Core | Computational Method | Origin |
|---|---|---|---|---|---|---|---|
| ADLB | STUDYID | Study Identifier | character | Copy value from ADLB_RAW.STUDYID. | Predecessor | ||
| ADLB | USUBJID | Unique Subject Identifier | character | Copy value from ADLB_RAW.USUBJID. | Predecessor | ||
| ADLB | VISIT | Visit Name | character | Copy value from ADLB_RAW.VISIT. | Predecessor | ||
| ADLB | PARAMCD | Parameter Code | character | Set per constructed row; see the Row construction sheet. | Derived | ||
| ADLB | PARAM | Parameter | character | Set per constructed row; see the Row construction sheet. | Derived | ||
| ADLB | AVAL | Analysis Value | numeric | Set per constructed row; see the Row construction sheet. | Derived | ||
| ADLB | DTYPE | Derivation Type | character | Set per constructed row; see the Row construction sheet. | Derived |
| Template | Include when | PARAMCD | PARAM | WBCVAL | LYMLEVAL | EXISTING_ABS_COUNT | AVAL | DTYPE |
|---|---|---|---|---|---|---|---|---|
| collected | Copy ADLB_RAW.PARAMCD | Copy ADLB_RAW.PARAM | Constant "None" | Constant "None" | Constant "None" | Copy ADLB_RAW.AVAL | Constant "None" | |
| derived_lymph | WBCVAL IS NOT NULL AND LYMLEVAL IS NOT NULL AND EXISTING_ABS_COUNT IS NULL | Constant "LYMPH" | Constant "Lymphocytes Abs (10^9/L)" | Aggregate ONLY(ADLB_RAW.AVAL) over records matching on the shared output keys, where ADLB_RAW.PARAMCD = 'WBC' | Aggregate ONLY(ADLB_RAW.AVAL) over records matching on the shared output keys, where ADLB_RAW.PARAMCD = 'LYMLE' | Aggregate COUNT(ADLB_RAW.*) over records matching on the shared output keys, where ADLB_RAW.PARAMCD = 'LYMPH' | Compute WBCVAL * LYMLEVAL | Constant "CALCULATION" |
| Version | Date | Author | Description | Reviewer | Sign-off |
|---|---|---|---|---|---|
| 1.3 | 2026-09-29 | yamaa docs build | Show study codelist names, external dictionaries, and ISO 8601 formats in variable rows; list the document's codelist values and metadata | ||
| 1.2 | 2026-09-29 | yamaa docs build | Classify ADaM copies from a declared input as Predecessor and recodes as Derived, and SDTM recodes of locally derived columns as Derived | ||
| 1.1 | 2026-09-29 | yamaa docs build | Resolve lookups into the donor record they select, and give every derivation shape a plain-language rule instead of its raw YAML | ||
| 1.0 | yamaa docs build | Initial generation from spec.yaml |
yamaa
Comments
Signed in with GitHub; saved in repository Discussions