CaMa: individual risk and population curves served, and the cycle estimates with any scenario in production

webapi/fhir/risk.py builds a patient's RiskAssessment for CaCu and CaMa; GET /cama/modelo/curvas serves the production
version's survival curves; the cycle's estimator is generic by scenario; silver persona carries the date of death for CaMa;
the import schema accepts it; the CaMa risk batches can be confirmed and voided.
This commit is contained in:
rockdrigo
2026-11-21 02:07:34 -06:00
parent 26f2b35338
commit e2ecaa027c
17 changed files with 446 additions and 85 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ from core.cama.indicadores.models import (
Persona,
)
from webapi.orchestration.silver.persons import de_derechohabiente
from webapi.orchestration.silver.persons import con_defuncion
from core.indicadores.cohortes import TablasCohorte
from webapi.orchestration.tables import TablasKit
@@ -63,7 +63,7 @@ TABLAS = TablasKit(
CatMeasureEstrato=CatMeasureEstrato,
MeasureReportUnidad=MeasureReportUnidad,
MeasureReportUnidadEstrato=MeasureReportUnidadEstrato,
persona_propias=de_derechohabiente,
persona_propias=con_defuncion,
)
# Las cohortes para modelos y sus estimaciones de riesgo (oro restringido, ADR-MD-003; MD-12).