CaCu: windows to diagnosis and treatment, FHIR base URL, the patient's risks per outcome #17

Merged
edgar merged 8 commits from integration/cacu-197-conciliacion into dev 2026-11-22 13:47:01 -06:00
Member
  • Tests for the 120-day sample-to-diagnosis and 180-day sample-to-treatment windows; every FHIR URL hangs from FHIR_BASE_URL.
  • Graphviz in the image, for the versions' dataflow drawings.
  • The cycle scores with models.dags.estimation.scored_frame, so risk intervals reach the batch.
  • FHIR RiskAssessment: the model's estimand (estimando), one per outcome, one with no prediction and sin-estimacion for a current model that didn't score her, and CaCu's index cytology results (resultados-indice).
  • Risk batches: a decision colliding with another of the same batch is a 409, not a 500.

Needs the models and Persistance changes of the matching PRs (scored_frame, current_risks, current_batches).

Tests: FHIR, risk batches, live estimators and the cycle pass with dbt's manifest.

- Tests for the 120-day sample-to-diagnosis and 180-day sample-to-treatment windows; every FHIR URL hangs from `FHIR_BASE_URL`. - Graphviz in the image, for the versions' dataflow drawings. - The cycle scores with `models.dags.estimation.scored_frame`, so risk intervals reach the batch. - FHIR RiskAssessment: the model's estimand (`estimando`), one per outcome, one with no prediction and `sin-estimacion` for a current model that didn't score her, and CaCu's index cytology results (`resultados-indice`). - Risk batches: a decision colliding with another of the same batch is a 409, not a 500. Needs the models and Persistance changes of the matching PRs (`scored_frame`, `current_risks`, `current_batches`). Tests: FHIR, risk batches, live estimators and the cycle pass with dbt's manifest.
edgar added 8 commits 2026-11-22 13:44:38 -06:00
The code systems, value sets and the extensions (cut-offs, report id, interval, quartiles) each wrote the domain by
hand. They now derive from webapi.fhir_base, a leaf module so metrics and durations can use it without a cycle. The
default is unchanged; the WebApp still reads the same URLs by exact match, so changing the domain goes to both.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The 161-day diagnosis of the fixture is out of the 120-day window, and the sample-to-treatment horizon (180) leaves the
August and October samples pending. The comparison with the kit's oracle (180 days to the diagnosis) is marked as an
expected divergence until the oracle is regenerated with the project's horizon.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The cycle read the run's horizons and called the model itself; `models.dags.estimation.scored_frame` does both, and
also reads whether the run gives each risk's interval.
The registered model's scenario (`[estimand]` of its `model.toml`) goes in the extension `estimando`, one
`valueString` per key, and its quantity as `method.text`. A model whose scenario can't be read has neither.
The patient's Bundle holds the current batch of each outcome (`CohortRepository.current_risks`), so a CIN2+ and a
cancer model are both shown. For a patient with some risk, each current model of another outcome that didn't score
her (`current_batches`) gives a RiskAssessment with no prediction and the extension `sin-estimacion` (its outcome and
why it may be so), so the record can tell "no model" from "not estimated for her".
The cytology sampled on the risk's index date gives its squamous, glandular and HPV results in the extension
`resultados-indice`, which the record words its sentence with. CaCu's outcome codes `cin2` and `cancer` get labels.
Two decisions of one batch at the same moment (a double click reaching both workers) wrote the same evaluation
version and the second surfaced as a server error.
edgar merged commit 71557ecbd3 into dev 2026-11-22 13:47:01 -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#17