From 5c781f2a52b63b37676e3fce7f9b9cbb7bcf4f30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Trevi=C3=B1o?= Date: Sun, 29 Nov 2026 01:20:40 -0600 Subject: [PATCH] The recurrence report names the site's own cohort --- models/cama/recurrence/reports.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/models/cama/recurrence/reports.py b/models/cama/recurrence/reports.py index 9f30851..6aa94f8 100644 --- a/models/cama/recurrence/reports.py +++ b/models/cama/recurrence/reports.py @@ -95,6 +95,17 @@ def metrics(auc: list[dict]) -> dict[str, float]: return found +REFERENCE_SAMPLING = { + "criterio": "pacientes con tiempo y estado de recaída; SCAN-B solo mujeres", + "origen": "METABRIC y SCAN-B (externas)", +} +SITE_SAMPLING = { + "criterio": "pacientes con un primer reporte de biopsia invasiva; sin recaída registrada, " + "libre de ella hasta su defunción o la fecha de corte", + "origen": "la sede (sus propias pacientes)", +} + + def routines(cohorts: dict[str, Cohort], n_bootstrap: dict[str, int]) -> dict: """The five routine records a promotion reads.""" return { @@ -108,8 +119,7 @@ def routines(cohorts: dict[str, Cohort], n_bootstrap: dict[str, int]) -> dict: } for s, c in cohorts.items() }, - "criterio": "pacientes con tiempo y estado de recaída; SCAN-B solo mujeres", - "origen": "METABRIC y SCAN-B (externas)", + **(SITE_SAMPLING if "site" in cohorts else REFERENCE_SAMPLING), }, "DATOS_FALTANTES": { "criterio": f"el dato faltante es una categoría más («{UNKNOWN}»); "