Synthea's dead come on top of the living it was asked for
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user