CaCu's and CaMa's measures answered on request from dbt's semantic layer as FHIR MeasureReports, with the period and both cut-offs in the question; the route is /<domain>/indicadores

This commit is contained in:
2026-11-08 17:28:24 -06:00
committed by rockdrigo
parent 8f84253205
commit ea228da7b4
42 changed files with 18123 additions and 1338 deletions
+4 -2
View File
@@ -105,8 +105,10 @@ def test_indicators_recompute_from_imported_rows(client):
estado = client.get("/reportes/indicadores").get_json()["cacu"]
assert estado["estado"] == "ok", estado
assert estado["pendiente"] is False
assert {p["paso"] for p in estado["pasos"]} >= {"cargar", "calcular"}
assert client.get("/cacu/indicadores").get_json()
assert {p["paso"] for p in estado["pasos"]} >= {"cargar", "modelos"}
assert {m["id"] for m in client.get("/cacu/indicadores").get_json()} == {
"IND1", "CACU_EU13", "CACU_EU7", "CACU_CONFIRMACION_CITOLOGIA", "CACU_EU_TIEMPO_REPORTE",
"CACU_DIAS_TOMA_DIAGNOSTICO", "CACU_RIESGO_BANDA"}
assert client.post("/reportes/indicadores/cacu/recalcular").status_code == 202
assert client.post("/reportes/indicadores/xx/recalcular").status_code == 404