CaCu indicators: times along the screening route, proportion intervals and survival notebooks #16

Merged
edgar merged 5 commits from integration/cacu-indicadores into dev 2026-11-22 01:01:08 -06:00
Member

What

  • Interval of a proportion's score. measureScore carries its 95 % Wilson interval in the ic-bajo and ic-alto extensions, as proportions, the way durations carry their quartiles. A proportion without a denominator has no score.
  • Tests for the new duration measures. The times from the sample and from the diagnosis to the treatment, and the five times along the screening route (first colposcopy, first biopsy report and the steps between consecutive events). A fixture adds a patient who goes the whole route in order, and a test pins the population, the cases and the median of each time. The CaCu catalog holds fourteen measures.
  • Survival. The notebooks kept in the code run in governance; plotly is in the lock for the survival reports.
  • Timeline test. It leaves out the birth and death rows that CaCu's timeline now holds, along with the inferred procedures.

No WebApi source changes besides the score: the duration engine reads the new measures from dbt's manifest.

Order

Merge after models and before the ISSSTELEON pointers. Use a merge commit, not a squash.

Tests

DBT_MANIFEST=... uv run pytest -q tests: 782 passed, 13 failed. The failures are in areas this change does not touch (PDF OCR, source connectors, the notebook runner) and they failed before it too.

## What - **Interval of a proportion's score.** `measureScore` carries its 95 % Wilson interval in the `ic-bajo` and `ic-alto` extensions, as proportions, the way durations carry their quartiles. A proportion without a denominator has no score. - **Tests for the new duration measures.** The times from the sample and from the diagnosis to the treatment, and the five times along the screening route (first colposcopy, first biopsy report and the steps between consecutive events). A fixture adds a patient who goes the whole route in order, and a test pins the population, the cases and the median of each time. The CaCu catalog holds fourteen measures. - **Survival.** The notebooks kept in the code run in governance; plotly is in the lock for the survival reports. - **Timeline test.** It leaves out the birth and death rows that CaCu's timeline now holds, along with the inferred procedures. No WebApi source changes besides the score: the duration engine reads the new measures from dbt's manifest. ## Order Merge after models and before the ISSSTELEON pointers. Use a merge commit, not a squash. ## Tests `DBT_MANIFEST=... uv run pytest -q tests`: 782 passed, 13 failed. The failures are in areas this change does not touch (PDF OCR, source connectors, the notebook runner) and they failed before it too.
edgar added 5 commits 2026-11-22 00:38:23 -06:00
GET /governance/notebook-templates?domain= lists the notebooks under models/<domain>/<scenario>/notebooks/ with the
scenarios each can run for (models.reports.templates: its folder's and any whose model.toml lists a module of it, so
CaCu's PIM subgroup report serves cin2_pim and its post-colposcopy and post-treatment scenarios). POST
/governance/experiments takes `template` (that id) instead of `file`: the notebook is read from the code, never from
the request, and runs like an upload (its page sandboxed, its hash on the run). A template for a scenario it doesn't
serve, an id outside the templates, or a file and a template together are refused.

uv.lock adds plotly 7.1.0: models' `survival-curves` extra now draws the CaCu subgroup reports (models:
cacu-survival/integration).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HmQxVJVNR5FYkPAregGEQ7
A proportion's measureScore now carries its 95 % Wilson interval in the ic-bajo and ic-alto extensions,
as proportions, the way durations carry their quartiles. Nothing is published without a denominator.
The CaCu catalog holds nine measures. A fixture adds H-004's colposcopy and treatment on top of the shared data, and a
test pins the days of both intervals with a 60-day horizon.
The CaCu catalog holds fourteen measures. A fixture adds H-007, who goes the whole route in order, and a test pins the
population, the cases and the median of each of the five new times.
CaCu's timeline now holds the patient's birth and death like CaMa's, so the comparison with the kit's rows leaves them
out along with the inferred procedures.
edgar merged commit 6d01742a85 into dev 2026-11-22 01:01:08 -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: ISSSTELEON/WebApi#16