FHIR out from the catalog, the FHIR door, ConceptMap routes; round-trip, new-label and Synthea gates

This commit is contained in:
Roberto Treviño
2026-11-25 16:17:23 -06:00
parent 0dd5c035bc
commit 806302ee5d
8 changed files with 441 additions and 47 deletions
+3
View File
@@ -28,6 +28,8 @@ import pytest
from fhir_checks import follow_up, pages, served, unscored, validate
from test_conectar import ok, wait_for
from conftest import put_concept_map
ROOT = Path(__file__).parents[2]
HOSPITAL = ROOT / "tests" / "fixtures" / "hospital"
REFERENCE = ROOT / "tests" / "fixtures" / "reference" / "cacu"
@@ -79,6 +81,7 @@ def _report(entry: dict, measure: str) -> tuple:
def test_cacu_from_the_hospital_to_indicators_and_risks(api, platform, tmp_path):
pipeline = json.loads(PIPELINE.read_text().replace("{hospital}", str(HOSPITAL)))
put_concept_map(api, "hospital_cacu")
ok(api.put("/ingest/pipelines/cacu", json=pipeline))
wait_for(api, ok(api.post("/ingest/pipelines/cacu/runs", json={}))["run_id"])
q = platform.query