Contar el grupo menor de 25 desde los 15 y declarar las diferencias de paridad
This commit is contained in:
@@ -592,7 +592,6 @@ SEARCH_PARAMETERS: dict[str, tuple[str, str, str]] = {
|
||||
"A semester (2025-S1) or a month (2025-03) the report covers"),
|
||||
"as-of": ("MeasureReport", "date", "Count only what the platform knew by then"),
|
||||
"event-cutoff": ("MeasureReport", "date", "Durations count to this day"),
|
||||
"period-cutoff": ("MeasureReport", "date", "Include period events through this day"),
|
||||
} # fmt: skip
|
||||
|
||||
|
||||
|
||||
+1
-1
Submodule WebApi updated: 663d384032...fb2f3c1753
+1
-1
Submodule WebApp updated: 84769cb0f4...2a84eb56ca
+1
-1
Submodule models updated: 04c9b3124b...daff410b46
@@ -165,13 +165,13 @@ def test_hpv_reports_by_genotype_cross_age_status_and_round_without_changing_the
|
||||
assert plain.crossed[("round", "category")][("no_data", "positive_18")] == {"initial-population": 1}
|
||||
|
||||
|
||||
def test_result_age_stratum_uses_exact_month_boundary_at_period_start():
|
||||
def test_result_age_stratum_uses_completed_years_at_period_start():
|
||||
from core.cacu.measures import results_age_group
|
||||
from core.measures import Period
|
||||
|
||||
period = Period.parse('2025-03')
|
||||
assert results_age_group({'birth_date': '2010-05-02'}, period) == []
|
||||
assert results_age_group({'birth_date': '2010-05-01'}, period) == '<25'
|
||||
assert results_age_group({'birth_date': '2010-03-02'}, period) == []
|
||||
assert results_age_group({'birth_date': '2010-03-01'}, period) == '<25'
|
||||
assert results_age_group({'birth_date': '2000-03-02'}, period) == '<25'
|
||||
assert results_age_group({'birth_date': '2000-03-01'}, period) == '25-34'
|
||||
assert results_age_group({'birth_date': None}, period) == 'no_data'
|
||||
@@ -190,7 +190,7 @@ def sample(person, birth, history, result="NILM", **extra):
|
||||
|
||||
|
||||
def test_under_age_threshold_remains_in_totals_for_both_result_measures():
|
||||
rows = [sample("young", "2011-03-02", "never"), sample("old", "2011-03-01", "never")]
|
||||
rows = [sample("young", "2011-01-02", "never"), sample("old", "2011-01-01", "never")]
|
||||
for measure in ("CACU_EU7", "CACU_VPH_GENOTIPO"):
|
||||
found = ran(measure, rows)
|
||||
assert found.populations["initial-population"] == 2
|
||||
|
||||
Reference in New Issue
Block a user