3 Commits

Author SHA1 Message Date
rockdrigo d1e06798c9 Tests: no CaMa measure is served by clinical stage or tumour size; the stratifiers view is built in its own test 2026-11-20 23:28:33 -06:00
rockdrigo 5a4baeb33e Tests: CaMa's stage and size measures of invasive cancers, and the measure counts 2026-11-20 17:03:38 -06:00
rockdrigo f183e495fb A timeline stratum read by the event cut-off, and labels for a timeline stratum's values
How: `linea_de_tiempo_al_corte` is `linea_de_tiempo_al_inicio_del_periodo` with what the timeline held by the
question's event cut-off (all of it without one) instead of before the period's start. FHIR's `_label` reads a
timeline stratum's labels from its `valores` entries and `resto_etiqueta`. Tests cover CaMa's tumour stratifiers:
the facts dbt derives, the surrogate subtype's rules, CAMA_BIRADS_CANCER_INVASOR broken down by them, and the
cut-off.

Implications: a patient's characteristic learned after the fact that put her in the period (a cancer's stage or
subtype, written after its biopsy) can stratify a measure, and stays reproducible through the cut-offs. CaMa
publishes eight measures and five strata.
2026-11-13 15:14:46 -06:00