Contar etapas de descarte en cohortes CaCu

This commit is contained in:
2026-12-02 20:30:25 -06:00
parent d27319ad1f
commit 6e6c5bb81b
2 changed files with 21 additions and 0 deletions
+3
View File
@@ -29,3 +29,6 @@ def test_a_candidate_with_two_reasons_is_excluded_once():
assert found["by_reason"] == {
"hysterectomy": 1, "no_index_result": 2, "prior_outcome": 1, "under_18": 1,
} # fmt: skip
assert found["by_stage"] == {"eligibility": 1, "history": 1, "index": 2}
assert found["stage_by_reason"]["no_index_result"] == "index"
assert found["stage_counts_overlap"] is True