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
Owner
  • Cancer cases with death dates for the survival scenario, and the route's medical notes (valuation, colposcopy, treatment) that dbt reads colposcopies and treatments from.
  • A cytology can carry its glandular result.
  • poblar cacu --generador kpnc (or DEV_DATA_GENERADOR=kpnc): bayes-pim's KPNC-like hospital (CIN2+ biology from KPNC's published tables, several visits per woman over 14 years), with the route, deaths and 1 % cancer cases. bayes-pim is the kpnc extra, pinned to a commit of its Gitea repository; the Docker image doesn't install it yet.

Tests: the whole suite passes (225 passed, 4 skipped) with the kpnc extra.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HmQxVJVNR5FYkPAregGEQ7

- Cancer cases with death dates for the survival scenario, and the route's medical notes (valuation, colposcopy, treatment) that dbt reads colposcopies and treatments from. - A cytology can carry its glandular result. - `poblar cacu --generador kpnc` (or `DEV_DATA_GENERADOR=kpnc`): bayes-pim's KPNC-like hospital (CIN2+ biology from KPNC's published tables, several visits per woman over 14 years), with the route, deaths and 1 % cancer cases. bayes-pim is the `kpnc` extra, pinned to a commit of its Gitea repository; the Docker image doesn't install it yet. Tests: the whole suite passes (225 passed, 4 skipped) with the `kpnc` extra. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01HmQxVJVNR5FYkPAregGEQ7
edgar added 5 commits 2026-11-22 13:44:35 -06:00
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.
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.
CaCu: a cytology can carry its glandular result
pruebas / pytest (push) Failing after 5s
9b968849ea
`Citologia.glandulares` goes to `cit_celulas_glandulares` (an AGC result), empty unless a generator gives it; the
simple generator doesn't.
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.
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
312e232978
`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.
edgar merged commit 1c68fe106f into dev 2026-11-22 13:45:33 -06:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: edgar/dev-data#7