Tests: CaMa's stage and size measures of invasive cancers, and the measure counts

This commit is contained in:
rockdrigo
2026-11-18 19:56:07 -06:00
parent 7101913fff
commit 5a4baeb33e
4 changed files with 41 additions and 61 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ def test_every_measure_and_one_report_of_each_are_valid_fhir(domain_client):
with strata included. Fails if the serialization of a scoring, a stratifier or a population breaks FHIR's shape."""
domain, client = domain_client
measures = valid(client.get(f"/{domain}/fhir/Measure").get_json())
assert measures["total"] == {"cacu": 7, "cama": 11}[domain]
assert measures["total"] == {"cacu": 7, "cama": 13}[domain]
for item in measures["entry"]:
response = client.get(f"/{domain}/fhir/Measure/{item['resource']['id']}/$evaluate-measure?periodo=2025-S1")
assert response.status_code in (200, 409), response.get_json()