FHIR out from the catalog, the FHIR door, ConceptMap routes; round-trip, new-label and Synthea gates
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user