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: derive, for each PK sample, the start of the latest dose at or
before it (LDOSDTC) by comparing the collected date text as text, and
report where text order, not time, decided between two date texts.
Input: one spec.yaml declaring two datasets. PC carries one row per
sample: subject, sequence number and the collection date and time as
collected ISO 8601 text. EX carries the doses: subject, sequence number and
the start date and time as collected ISO 8601 text, some to the second and
one with no time.
Variables:
USUBJID,PCSEQandPCDTCare the sample's subject, sequence number and collection date and time, as collected.LDOSDTCis the start text of the subject's dose whose text is the greatest among the doses whose text is not greater than the sample's. Text order reads a date or time recorded to fewer fields as before one recorded to more that begins with it, so it is the text, not the time, that decides: subject S1's first sample, taken at2025-03-11T08:00, takes the previous day's dose because the dose at2025-03-11T08:00:00sorts after it, and subject S2's sample at2025-03-11T07:30takes the dose of that day, which has no time.
The run report (adpc-checks.csv) has one row per item the run handled, each
naming the dataset (ARTIFACT), the kind of item (KIND), where the spec
states it (SPEC_PATH) and the item's name (NAME): the run and its outcome
(OUTCOME), the input datasets read, the samples built, the two counts of
the dose read, each naming the column it feeds (TARGET), and one row per
output column. Two warnings follow: one where a dose's start text was
compared with a sample's to keep the doses no later than it, and one where
two doses' start texts were compared to choose the latest. Neither has a
label (ID) or a column (TARGET); each names the rule it reports
(RULE), its SEVERITY and what it found (CONDITION), and counts its
place as one unit (COUNT, TOTAL, KEYS). Its DETAILS name the least
pair of texts whose order the text, not the time, decided there, the shorter
first.
Note: the warnings change no value and fail nothing. Reading the sample time as a date and time, and completing each dose start recorded without a time to a chosen time of day, compares times instead and gives no warning.
Inputs
Under review2 source filesExpected output
Under review16 expected rowsexpected/adpc-checks.csv
Edit12 rows| ARTIFACT | KIND | SPEC_PATH | NAME | ID | TARGET | RULE | SEVERITY | OUTCOME | CONDITION | COUNT | TOTAL | KEYS | DETAILS |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| adpc.csv | run | output | — | — | — | — | — | succeeded | — | 4 | — | — | {} |
| adpc.csv | input | input.PC | PC | — | — | — | — | — | — | 4 | — | — | {"bytes":108,"path":"input/pc.csv","profile":"csv"} |
| adpc.csv | input | input.EX | EX | — | — | — | — | — | — | 6 | — | — | {"bytes":145,"path":"input/ex.csv","profile":"csv"} |
| adpc.csv | rows | base | PC | — | — | — | — | — | — | 4 | 4 | — | {} |
| adpc.csv | handler | columns.LDOSDTC.derivation.source.multiple_matches | multiple_matches | — | LDOSDTC | LOOKUP-10 | — | — | — | 3 | — | — | {} |
| adpc.csv | handler | columns.LDOSDTC.derivation.source.absent | absent | — | LDOSDTC | LOOKUP-24 | — | — | — | 0 | — | — | {} |
| adpc.csv | column | columns.USUBJID | USUBJID | — | — | — | — | — | — | 0 | 4 | — | {"max_length":2} |
| adpc.csv | column | columns.PCSEQ | PCSEQ | — | — | — | — | — | — | 0 | 4 | — | {} |
| adpc.csv | column | columns.PCDTC | PCDTC | — | — | — | — | — | — | 0 | 4 | — | {"max_length":16} |
| adpc.csv | column | columns.LDOSDTC | LDOSDTC | — | — | — | — | — | — | 0 | 4 | — | {"max_length":19} |
| adpc.csv | check | intermediates.LAST_DOSE.filter | text_date_order | — | — | CHECK-27 | warning | violated | text_date_order | 1 | 1 | [{}] | {"longer":"2025-03-11T07:30","shorter":"2025-03-11"} |
| adpc.csv | check | intermediates.LAST_DOSE.order_by | text_date_order | — | — | CHECK-27 | warning | violated | text_date_order | 1 | 1 | [{}] | {"longer":"2025-03-12T06:00","shorter":"2025-03-12"} |
expected/adpc.csv
Edit4 rows| USUBJID | PCSEQ | PCDTC | LDOSDTC |
|---|---|---|---|
| 1 | 2025-03-11T08:00 | 2025-03-10T08:00 | |
| 2 | 2025-03-11T09:00 | 2025-03-11T08:00:00 | |
| 1 | 2025-03-11T07:30 | 2025-03-11 | |
| 1 | 2025-03-12T10:00 | 2025-03-12T06:00 |
Human review and assessment
| Dataset Name | Variable Name | Variable Label | Type | Codelist/Controlled Terms | Core | Computational Method | Origin |
|---|---|---|---|---|---|---|---|
| ADPC | USUBJID | Unique Subject Identifier | character | Copy value from PC.USUBJID. | Predecessor | ||
| ADPC | PCSEQ | Sequence Number | numeric | Copy value from PC.PCSEQ. | Predecessor | ||
| ADPC | PCDTC | Date/Time of Specimen Collection | character | Copy value from PC.PCDTC. | Predecessor | ||
| ADPC | LDOSDTC | Date/Time of Last Dose | character | Take EXSTDTC from the last EX record matching on USUBJID, where EX.EXSTDTC <= PC.PCDTC, ordered by EX.EXSTDTC, and no match yields blank. | Derived |
| Version | Date | Author | Description | Reviewer | Sign-off |
|---|---|---|---|---|---|
| 1.8 | 2026-11-19 | yamaa docs build | State open and closed range endpoints, including bounds of zero | ||
| 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