CaCu: cancer cases, the screening route, and the KPNC-like hospital generator #7

Merged
edgar merged 5 commits from integration/cacu-197-conciliacion into dev 2026-11-22 13:45:33 -06:00

5 Commits

Author SHA1 Message Date
edgar 312e232978 CaCu: the KPNC-like hospital with the route, deaths and a few cancer cases
pruebas / pytest (push) Failing after 4s
pruebas / pytest (pull_request) Failing after 3s
`con_cancer` takes the histories it adds to (`base`), so `--generador kpnc` goes through it like the simple
generator: each woman gets her route notes (valuation, colposcopy and treatment, which dbt reads colposcopies and
treatments from), some a death date, and 1 % more women are cancer cases with an invasive biopsy, for the survival
model. A biopsy is requested at least a day after its cytology's report, so the valuation visit fits between them.
2026-11-22 09:34:20 -06:00
edgar 243aa2cc07 CaCu: the KPNC-like hospital as poblar cacu --generador kpnc
pruebas / pytest (push) Failing after 5s
The option (or `DEV_DATA_GENERADOR=kpnc`) replaces the fixed proportions with bayes-pim's KPNC-like hospital
(`bayes_pim.hospital`): women cotested over the 14 years before the reference under KPNC's protocol, several visits
each, colposcopies and CIN2+ biopsies from KPNC's published tables, turned into the hospital's cytologies, biopsies
and notes. bayes-pim is the `kpnc` extra, pinned to a commit of its Gitea repository; the Docker image doesn't
install it yet.
2026-11-22 07:58:18 -06:00
edgar 9b968849ea CaCu: a cytology can carry its glandular result
pruebas / pytest (push) Failing after 5s
`Citologia.glandulares` goes to `cit_celulas_glandulares` (an AGC result), empty unless a generator gives it; the
simple generator doesn't.
2026-11-22 07:53:38 -06:00
edgar ae440e074d CaCu: the valuation visit, the colposcopy and the treatment as medical notes (S-D20)
pruebas / pytest (push) Failing after 4s
After an anomalous cytology, poblar and documentos add, in clinical order, the valuation visit, the colposcopy (the day
its biopsy is requested, with the kit's reason as its note) and, for some biopsies, the treatment. The notes follow the
kit's lists and do not resolve any sample, so what was already generated stays the same.
2026-11-22 02:31:40 -06:00
edgar 4d086ba7b3 CaCu: cancer cases and death dates for the survival scenario (S-D19)
poblar and documentos add the cancer cases (4 % of n, from CACU-9001, each with its carcinoma biopsy from 6 months to 6.5
years back) to the n usual women, and a third of the cases and 1.5 % of the others get a death date. The usual histories
do not change.
2026-11-22 02:10:08 -06:00