Skip to content

Commit

Permalink
feat: ajout de la mutuelle rhone alpes
Browse files Browse the repository at this point in the history
  • Loading branch information
jenovateurs committed Dec 30, 2024
1 parent a00bf42 commit 2de7d02
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from openfisca_france.model.base import Variable, MONTH, not_, Famille
from openfisca_france.model.caracteristiques_socio_demographiques.logement \
import TypesCodeInseeRegion

class auvergne_mutuelle_communale(Variable):
value_type = bool
entity = Famille
definition_period = MONTH
label = "Mutuelle communale de la région Auvergne Rhône Alpes"
reference = [
"https://www.auvergnerhonealpes.fr/particuliers/mutuelleetudiants"
]

def formula(famille, period):
region = famille.demandeur.menage('region', period)
eligibilite_residentielle = (
region == TypesCodeInseeRegion.auvergne_rhone_alpes)
css_participation_forfaitaire = famille('css_participation_forfaitaire', period)
cmu_c = famille('cmu_c', period)
eligibilite_css_cmu_c = (css_participation_forfaitaire > 0) | cmu_c
return eligibilite_residentielle * not_(eligibilite_css_cmu_c)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- name: "Égibilité à la mutuelle communale de Montpellier"
- name: "Éligibilité à la mutuelle communale de Montpellier"
period: 2024-10
input:
depcom: ["34172","34172", "34172", "68400", "68400"]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- name: "Éligibilité à la mutuelle communale de la région Auvergne-Rhône-Alpes"
period: 2024-10
input:
depcom: ["69400","34172", "34172", "68400", "68400"]
css_participation_forfaitaire_montant: [0, 0, 20, 25, 30]
cmu_c: [False, True, False, False, False]
output:
auvergne_mutuelle_communale: [True, False, False, False, False]

0 comments on commit 2de7d02

Please sign in to comment.