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
+2 -2
View File
@@ -28,7 +28,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,
@@ -403,7 +403,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