feat: stat Nb Familles avec une Information non médico-sociale

This commit is contained in:
Sébastien Arod 2025-05-27 21:16:30 +02:00
parent 728e219878
commit 07273d0c3b
3 changed files with 12 additions and 0 deletions

View file

@ -4,6 +4,7 @@ export const typesEvenementsSocial = [
"Information préoccupante 2",
"Information préoccupante 3",
"Information préoccupante 4",
"Information non médico-sociale",
"Classement suite IP",
"Classement suite AEMO MIJE ou...",
"Classement sans IP",

View file

@ -25,6 +25,10 @@ export const statsSocialesDesc = {
label: "Nb Familles avec signalement",
},
nbFamilleAvecInfoNonMedicoSociale: {
label: "Nb Familles avec une Information non médico-sociale",
},
jugePourEnfant: {
label: "Juge pour enfant",
stats: {

View file

@ -28,6 +28,13 @@ export function computeStatsSociales(familles: Famille[]): StatsSociales {
)
),
nbFamilleAvecInfoNonMedicoSociale: nbFamillesAvecPagesLiees(
filterFamillesWithOneOfEvenementsOfType(
famillesResistantesOuEx,
"Information non médico-sociale"
)
),
nbFamilleAvecClassementSuiteIP: nbFamillesAvecPagesLiees(
filterFamillesWithOneOfEvenementsOfType(
famillesResistantesOuEx,