CaCu PIM estimands: a probability, its covariates, and the surveillance index in short

The quantity is "Probabilidad"; each scenario names the covariates it uses, which the patient's record writes under
the table; the surveillance and cancer scenarios name their index as the latest cytology with cytology and HPV
results.
This commit is contained in:
2026-11-22 15:04:03 -06:00
parent 28858c6966
commit f00dd31450
5 changed files with 12 additions and 7 deletions
+3 -2
View File
@@ -16,11 +16,12 @@ corrección del sesgo de verificación ni validación clínica."""
# The dataflow's config (`with_config`); each key is an input of the nodes that name it.
# What the model's number is, as the patient's screen and the governance pages show it.
[estimand]
quantity = "Riesgo acumulado"
quantity = "Probabilidad"
description = "Probabilidad de que la paciente tenga cáncer cervicouterino en la fecha índice o lo desarrolle antes de cada horizonte."
outcome = "Cáncer: biopsia de carcinoma"
index_date = "la última citología con resultado de citología y de VPH, en pacientes sin colposcopía; cada citología nueva es una nueva fecha índice. Sin la historia de visitas previas (aproximación hasta reproducir la tabla 4 de KPNC)"
index_date = "la última citología con resultado de citología y de VPH"
horizons_unit = "años"
covariates = "VPH de la citología índice (un ajuste por resultado) y citología índice en las categorías de KPNC"
[config]
horizons_years = [0.0, 1.0, 3.0, 5.0]
+3 -2
View File
@@ -15,11 +15,12 @@ corrección del sesgo de verificación ni validación clínica."""
# The dataflow's config (`with_config`); each key is an input of the nodes that name it.
# What the model's number is, as the patient's screen and the governance pages show it.
[estimand]
quantity = "Riesgo acumulado"
quantity = "Probabilidad"
description = "Probabilidad de que la paciente tenga CIN2+ en la fecha índice o lo desarrolle antes de cada horizonte."
outcome = "CIN2+: biopsia LIEAG, CIS o carcinoma"
index_date = "la última citología con resultado de citología y de VPH, en pacientes sin colposcopía; cada citología nueva es una nueva fecha índice. Sin la historia de visitas previas (aproximación hasta reproducir la tabla 4 de KPNC)"
index_date = "la última citología con resultado de citología y de VPH"
horizons_unit = "años"
covariates = "VPH de la citología índice (un ajuste por resultado) y citología índice en las categorías de KPNC"
[config]
horizons_years = [0.0, 1.0, 3.0, 5.0]
@@ -14,11 +14,12 @@ sin CIN2+, lo que supone que la impresión colposcópica no omite ningún CIN2+.
# What the model's number is, as the patient's screen and the governance pages show it.
[estimand]
quantity = "Riesgo acumulado"
quantity = "Probabilidad"
description = "Probabilidad de que la paciente tenga CIN2+ en la fecha índice o lo desarrolle antes de cada horizonte."
outcome = "CIN2+: biopsia LIEAG, CIS o carcinoma"
index_date = "la primera visita de vigilancia (co-test) después de una colposcopía sin CIN2+"
horizons_unit = "años"
covariates = "grado de la citología que la refirió a colposcopía (un ajuste por grado), VPH y citología de la visita índice en tres categorías de KPNC"
[config]
horizons_years = [0.0, 1.0, 3.0, 5.0]
@@ -14,11 +14,12 @@ la biopsia LIEAG no separa CIN2 de CIN3, y por lo mismo el desenlace es CIN2+. S
# What the model's number is, as the patient's screen and the governance pages show it.
[estimand]
quantity = "Riesgo acumulado"
quantity = "Probabilidad"
description = "Probabilidad de que la paciente tenga CIN2+ en la fecha índice o lo desarrolle antes de cada horizonte."
outcome = "CIN2+: biopsia LIEAG, CIS o carcinoma"
index_date = "la primera citología después del tratamiento"
horizons_unit = "años"
covariates = "VPH y citología de la citología índice en tres categorías de KPNC"
[config]
horizons_years = [0.0, 1.0, 3.0, 5.0]
+2 -1
View File
@@ -270,7 +270,8 @@ def test_the_interval_brackets_the_same_risk(cohort_frame):
def test_the_scenario_says_what_its_number_is():
"""Pins down: `[estimand]` reaches the scenario with what the screens show next to each risk. Fails if the key is
renamed or `Scenario.from_toml` stops reading it."""
assert SCENARIO.estimand["quantity"] == "Riesgo acumulado" and SCENARIO.estimand["horizons_unit"] == "años"
assert SCENARIO.estimand["quantity"] == "Probabilidad" and SCENARIO.estimand["horizons_unit"] == "años"
assert "KPNC" in SCENARIO.estimand["covariates"]
assert {"description", "outcome", "index_date"} <= set(SCENARIO.estimand) and "interval" not in SCENARIO.estimand