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
README.mdPublic entries: Python and R. Passing coverage requires an installed inventory.
Goal: show that numbering each subject's results by study day (LBSEQ)
makes every collected laboratory result its own record, whose values all come
from that one result: the result as collected (LBORRES), the numeric result
(LBSTRESN), whether the test was done (LBSTAT), and whether the result is
above the upper limit of normal (LBNRIND).
Input: one spec.yaml over collected glucose results
(input/lb_raw.csv), each carrying the test code (LBTESTCD), the study day
(LBDY), the result as text (RESULT) or, when there is none, a character
result (RESULTC), the numeric result (STRESN) and the upper limit of
normal (HIGH). The project.yaml lists the function file
functions/project_value.yaml, whose routine returns the numeric result it
is given.
Variables:
LBSEQnumbers each subject's results from 1 by study day; results of one day keep their collected order.LBORRESis the result as collected, or the character result when the result is blank.LBSTRESNis the numeric result, as the project's routine returns it, and blank when none was collected.LBSTATisNOT DONEwhen no numeric result was collected, and blank otherwise.LBNRINDisHIGHabove the upper limit andNORMALotherwise, and blank when no numeric result was collected.
Note: a subject's two results of one day stay two records, and each record's values come from its own result, never from the other result of that day.
Inputs
Under review1 source fileinput/lb_raw.csv
Edit4 rows| USUBJID | LBDY | LBTESTCD | RESULT | RESULTC | STRESN | HIGH |
|---|---|---|---|---|---|---|
| 1 | GLUC | 5.2 | — | 5.2 | 6.1 | |
| 8 | GLUC | 6.8 | — | 6.8 | 6.1 | |
| 8 | GLUC | — | HEMOLYZED | — | 6.1 | |
| 1 | GLUC | 4.9 | — | 4.9 | 6.1 |
Expected output
Under review4 expected rowsexpected/lb.csv
Edit4 rows| USUBJID | LBSEQ | LBTESTCD | LBDY | LBORRES | LBSTRESN | LBSTAT | LBNRIND |
|---|---|---|---|---|---|---|---|
| 1 | GLUC | 1 | 5.2 | 5.2 | — | NORMAL | |
| 2 | GLUC | 8 | 6.8 | 6.8 | — | HIGH | |
| 3 | GLUC | 8 | HEMOLYZED | — | NOT DONE | — | |
| 1 | GLUC | 1 | 4.9 | 4.9 | — | NORMAL |
Human review and assessment
| Variable Name | Variable Label | Type | Length | Controlled Terms or Format | Origin | Core | Conversion Definition | Variable Type | Variable Order | Comments for Define |
|---|---|---|---|---|---|---|---|---|---|---|
| USUBJID | Unique Subject Identifier | Char | Collected | Copy value from LB_RAW.USUBJID. | SDTM | 1 | ||||
| LBSEQ | Sequence Number | Num | Derived | Row number within each group of USUBJID, ordered by LB_RAW.LBDY. | SDTM | 2 | ||||
| LBTESTCD | Lab Test or Examination Short Name | Char | Collected | Copy value from LB_RAW.LBTESTCD. | SDTM | 3 | ||||
| LBDY | Study Day of Specimen Collection | Num | Collected | Copy value from LB_RAW.LBDY. | SDTM | 4 | ||||
| LBORRES | Result or Finding in Original Units | Char | Derived | First non-missing of LB_RAW.RESULT and LB_RAW.RESULTC. | SDTM | 5 | ||||
| LBSTRESN | Numeric Result/Finding in Standard Units | Num | Derived | Call project function project_value with x = LB_RAW.STRESN. | SDTM | 6 | ||||
| LBSTAT | Completion Status | Char | Derived | "NOT DONE" when LB_RAW.STRESN IS NULL; blank otherwise; blank when the condition is unknown. | SDTM | 7 | ||||
| LBNRIND | Reference Range Indicator | Char | Derived | If LB_RAW.STRESN IS NULL then "None"; otherwise "HIGH" when LB_RAW.STRESN > LB_RAW.HIGH; "NORMAL" otherwise; blank when the condition is unknown. | SDTM | 8 |
| Version | Date | Author | Description | Reviewer | Sign-off |
|---|---|---|---|---|---|
| 1.7 | 2026-10-20 | yamaa docs build | Read 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.6 | 2026-10-17 | yamaa docs build | Describe collected date parts written as ISO 8601 date text and times of day counted in seconds since midnight | ||
| 1.5 | 2026-10-17 | yamaa docs build | Name 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.4 | 2026-10-15 | yamaa docs build | State datetime precision codes through the hour and minute, and complete only the time parts a collected datetime lacks | ||
| 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