Synthea's dead come on top of the living it was asked for

This commit is contained in:
Roberto Treviño
2026-11-27 08:46:05 -06:00
parent 9c89c9e10d
commit dffd33a7bc
+2 -1
View File
@@ -43,7 +43,8 @@ def test_a_synthea_population_comes_in_through_the_fhir_door(api, platform, tmp_
bundles = _population(tmp_path / "synthea")
patients = sum(1 for b in bundles for e in b["entry"]
if e["resource"]["resourceType"] == "Patient") # fmt: skip
assert patients == 20 and _reports(bundles, "cervical_cytology") > 40
# Synthea counts the living: the women who died come on top of the twenty.
assert patients >= 20 and _reports(bundles, "cervical_cytology") > 40
receiving = DOOR.read_text().replace("{sender}", "synthea")
ok(api.put("/ingest/pipelines/synthea", json=json.loads(receiving)))