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
parent f74ccf5496
commit 2296598896
42 changed files with 18123 additions and 1338 deletions
-4
View File
@@ -1,7 +1,3 @@
from flask import Blueprint
from persistance.db import get_cacu_session
from webapi.indicadores import registrar_indicadores
cacu_bp = Blueprint("cacu", __name__)
registrar_indicadores(cacu_bp, "cacu", get_cacu_session)
-7
View File
@@ -1,7 +0,0 @@
from flask import Blueprint
from persistance.db import get_cama_session
from webapi.indicadores import registrar_indicadores
cama_bp = Blueprint("cama", __name__)
registrar_indicadores(cama_bp, "cama", get_cama_session)
+2 -2
View File
@@ -21,7 +21,7 @@ from webapi.imports.services.import_service import (
serialize_errors,
validate_source,
)
from webapi.indicadores_vivos import ColaDeRecalculo
from webapi.indicadores_vivos import DOMINIOS, ColaDeRecalculo
from webapi.imports.services.introspection_service import (
detect_pdf,
document_report,
@@ -321,7 +321,7 @@ def commit():
finally:
import_audit.record(audit)
recalculating = False
if audit.domain and any(r.created or r.updated for r in results):
if audit.domain in DOMINIOS and any(r.created or r.updated for r in results):
try:
ColaDeRecalculo().solicitar(audit.domain)
recalculating = True
-7
View File
@@ -1,7 +0,0 @@
from flask import Blueprint
from persistance.db import get_tea_session
from webapi.indicadores import registrar_indicadores
tea_bp = Blueprint("tea", __name__)
registrar_indicadores(tea_bp, "tea", get_tea_session)