feat: ajout nbFamilleAvec2emeIP

This commit is contained in:
Sébastien Arod 2025-09-16 22:23:20 +02:00
parent d8293366b1
commit f979398936
2 changed files with 12 additions and 0 deletions

View file

@ -10,6 +10,10 @@ export const statsSocialesDesc = {
label: "Nb Familles avec une Information Préoccupante",
},
nbFamilleAvec2emeIP: {
label: "Nb Familles avec une 2eme IP",
},
nbFamilleAvecClassementSuiteIP: {
label: "Nb Familles avec un classement suite IP",
},

View file

@ -28,6 +28,14 @@ export function computeStatsSociales(familles: Famille[]): StatsSociales {
)
),
nbFamilleAvec2emeIP: nbFamillesAvecPagesLiees(
famillesResistantesOuEx.filter(
(f) =>
f.Evenements.filter((e) => e.Type === "Information préoccupante 1")
.length >= 2
)
),
nbFamilleAvecInfoNonMedicoSociale: nbFamillesAvecPagesLiees(
filterFamillesWithOneOfEvenementsOfType(
famillesResistantesOuEx,