TEA on its new staging: silver load, ten measures answered on request with the status at the period's end, several groups and column strata, and FHIR R4 endpoints for measures, follow-up and patient summary

This commit is contained in:
2026-11-12 15:21:25 -06:00
committed by rockdrigo
parent 205bc214fa
commit e224b8b2aa
55 changed files with 2607 additions and 788 deletions
+7 -3
View File
@@ -78,11 +78,15 @@ def create_app() -> Flask:
from importlib import import_module
from pathlib import Path
from webapi.fhir import fhir_blueprint
from webapi.kpis import kpis_blueprint
for domain in ("cacu", "cama"):
app.register_blueprint(kpis_blueprint(domain, import_module(f"persistance.{domain}"),
Path(os.environ["DBT_MANIFEST"])), url_prefix=f"/{domain}")
for domain in ("cacu", "cama", "tea"):
repositories, manifest = import_module(f"persistance.{domain}"), Path(os.environ["DBT_MANIFEST"])
app.register_blueprint(kpis_blueprint(domain, repositories, manifest), url_prefix=f"/{domain}")
# The same measures in FHIR R4, with TEA's patient summary (simulated data, marked in every response).
app.register_blueprint(fhir_blueprint(domain, repositories, manifest, with_patients=True),
url_prefix=f"/{domain}/fhir")
# Patient-level follow-up list and individual risk, marked `simulado` in every response. Who may see them is
# an access rule still to be defined, not an environment variable.
from persistance import cacu as cacu_repositories