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
parent c430a5bd11
commit a0407e41d6
55 changed files with 2609 additions and 790 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, and TEA's patients only in DEV (simulated data).
app.register_blueprint(fhir_blueprint(domain, repositories, manifest, with_patients=in_dev()),
url_prefix=f"/{domain}/fhir")
# Patient-level follow-up list and individual risk: only in DEV, with simulated data.
if in_dev():
from persistance.db import get_cacu_session