-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from openfisca/eure-et-loir-transports
[Eure-et-Loir] Ajoute les aides aux transports
- Loading branch information
Showing
11 changed files
with
604 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
openfisca_france_local/departements/eure_et_loir/cmi_invalidite.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# -*- coding: utf-8 -*- | ||
from openfisca_france.model.base import Variable, Individu, MONTH | ||
from openfisca_france.model.prestations.autonomie import TypesGir | ||
|
||
class eure_et_loir_eligibilite_cmi_invalidite(Variable): | ||
value_type = bool | ||
entity = Individu | ||
definition_period = MONTH | ||
label = "En Eure-et-loir, éligibilité à la Carte mobilité inclusion invalidité" | ||
reference = [" Titre 4 Chapitre 1 du Règlement départemental d'Aide Sociale PA PH de l'Eure-et-Loir", | ||
"https://github.com/openfisca/openfisca-france-local/wiki/files/departements/eure-et-loir/Fiche_15_CMI_Mention_Invalidite.pdf"] | ||
documentation = """ | ||
Cette carte permet d’obtenir une priorité d’accès aux places assises dans les lieux publics, les salles d’attente et les transports en commun, de bénéficier d’avantages fiscaux et de réductions tarifaires. | ||
Pour les bénéficiaires de l’Allocation personnalisée d’autonomie (APA), l’éligibilité de l’aide dépend niveau de GIR (1 ou 2). | ||
""" | ||
|
||
def formula_2020_01(individu, period, parameters): | ||
taux_incapacite = individu('taux_incapacite', period) | ||
|
||
gir = individu('gir', period) | ||
condition_nationalite = individu('ressortissant_eee', period) + individu('titre_sejour', period) + individu('refugie',period) + individu('apatride', period) | ||
|
||
parameters_chemin = parameters( | ||
period).departements.eure_et_loir.transports | ||
|
||
condition_residence = individu.menage('eure_et_loir_eligibilite_residence', period) | ||
condition_incapacite = (taux_incapacite >= parameters_chemin.taux_incapacite_minimal) | ||
condition_apa = (individu('apa_domicile', period) > 0) # où apa_domicile est le montant de l'aide apa versée | ||
condition_gir = ((gir == TypesGir.gir_1) + (gir == TypesGir.gir_2)) | ||
|
||
return condition_nationalite * condition_residence * (condition_incapacite + (condition_gir * condition_apa)) |
24 changes: 24 additions & 0 deletions
24
openfisca_france_local/departements/eure_et_loir/cmi_priorite.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# -*- coding: utf-8 -*- | ||
from openfisca_france.model.base import Variable, Individu, MONTH | ||
|
||
class eure_et_loir_eligibilite_cmi_priorite(Variable): | ||
value_type = bool | ||
entity = Individu | ||
definition_period = MONTH | ||
label = "En Eure-et-loir, éligibilité à la Carte mobilité inclusion priorité" | ||
reference = [" Titre 4 Chapitre 1 du Règlement départemental d'Aide Sociale PA PH de l'Eure-et-Loir", | ||
"https://github.com/openfisca/openfisca-france-local/wiki/files/departements/eure-et-loir/Fiche_15_CMI_Mention_Invalidite.pdf"] | ||
documentation = """ | ||
Cette carte permet d’obtenir une priorité d’accès aux places assises dans les lieux publics, | ||
les salles d’attente et les transports en commun. | ||
""" | ||
|
||
def formula_2020_01(individu, period, parameters): | ||
|
||
parameters_chemin = parameters(period).departements.eure_et_loir.transports | ||
condition_residence = individu.menage('eure_et_loir_eligibilite_residence', period) | ||
conditions_taux_incapacite = individu('taux_incapacite', period) < parameters_chemin.taux_incapacite_minimal | ||
conditions_station_debout = individu('station_debout_penible',period) | ||
condition_nationalite = individu('ressortissant_eee',period) + individu('titre_sejour',period) + individu('refugie',period) + individu('apatride', period) | ||
|
||
return condition_nationalite * condition_residence * conditions_taux_incapacite * conditions_station_debout |
25 changes: 25 additions & 0 deletions
25
openfisca_france_local/departements/eure_et_loir/cmi_stationnement.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# -*- coding: utf-8 -*- | ||
from openfisca_france.model.base import Variable, Individu, MONTH | ||
from openfisca_france.model.prestations.autonomie import TypesGir | ||
|
||
class eure_et_loir_eligibilite_cmi_stationnement(Variable): | ||
value_type = bool | ||
entity = Individu | ||
definition_period = MONTH | ||
label = "En Eure-et-Lor,éligibilité à la Carte mobilité inclusion stationnement" | ||
reference = [" Titre 4 Chapitre 1 du Règlement départemental d'Aide Sociale PA PH de l'Eure-et-Loir", | ||
"https://github.com/openfisca/openfisca-france-local/wiki/files/departements/eure-et-loir/Fiche_15ter_CMI_Mention_Stationnement.pdf" | ||
] | ||
documentation = """ | ||
Cette carte donne droit au stationnement sur les places réservées aux personnes en situation de handicap sur le stationnement public. | ||
""" | ||
|
||
def formula_2020_01(individu, period): | ||
gir = individu('gir', period) | ||
|
||
condition_nationalite = individu('ressortissant_eee', period) + individu('titre_sejour', period) + individu('refugie',period) + individu('apatride', period) | ||
condition_residence = individu.menage('eure_et_loir_eligibilite_residence', period) | ||
condition_apa = (individu('apa_domicile', period) > 0 ) # où apa_domicile est le montant de l'aide apa versé | ||
condition_gir = ((gir == TypesGir.gir_1) + (gir == TypesGir.gir_2)) | ||
|
||
return condition_nationalite * condition_residence * condition_apa * condition_gir |
22 changes: 22 additions & 0 deletions
22
openfisca_france_local/departements/eure_et_loir/transport_eleves_etudiants.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# -*- coding: utf-8 -*- | ||
from openfisca_france.model.base import Variable, Individu, MONTH | ||
|
||
class eure_et_loir_eligibilite_transport_eleves_etudiants(Variable): | ||
value_type = bool | ||
entity = Individu | ||
definition_period = MONTH | ||
label = "En Eure-et-Loir, éligibilité à l'aide au Transport des élèves et étudiants en situation de handicap" | ||
reference = [" Titre 3 Chapitre 3 du Règlement départemental d'Aide Sociale PA PH de l'Eure-et-Loir", | ||
"https://github.com/openfisca/openfisca-france-local/wiki/files/departements/eure-et-loir/RDAS_valide__decembre_2019.pdf" | ||
] | ||
documentation = """ | ||
Les frais de déplacement exposés par les élèves et étudiants en situation de handicap qui ne peuvent utiliser les moyens de transport en commun en raison de la gravité de leur handicap, médicalement établie, sont pris en charge par le Conseil départemental. | ||
L’attribution de l’aide est soumise à une évaluation de la situation du demandeur par la Maison départementale de l’autonomie (MDA). | ||
""" | ||
|
||
def formula_2020_01(individu, period): | ||
etudiant = individu('etudiant', period) # regroupe les 2 activités : étudiant ET élève | ||
handicap = individu('handicap',period) | ||
condition_residence = individu.menage('eure_et_loir_eligibilite_residence', period) | ||
|
||
return condition_residence * etudiant * handicap |
5 changes: 5 additions & 0 deletions
5
openfisca_france_local/parameters/departements/eure_et_loir/transports.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
taux_incapacite_minimal: | ||
reference: Titre 4 Chapitre 1 Article 197 du Règlement départemental d'Aide Sociale PA PH de l'Eure et Loir | ||
values: | ||
2020-01-01: | ||
value: 0.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,174 @@ | ||
- name: Éligibilité à la CMI invalidité de l'Eure-et-Loir avec personne incapacité 81 % | ||
period: 2020-10 | ||
input: | ||
individus: | ||
p1: | ||
taux_incapacite: 0.81 | ||
apa_domicile: 100 | ||
gir: gir_1 | ||
menage: | ||
depcom: 28000 | ||
output: | ||
eure_et_loir_eligibilite_cmi_invalidite: True | ||
|
||
- name: Éligibilité à la CMI invalidité de l'Eure-et-Loir avec personne incapacité 80 % | ||
period: 2020-10 | ||
input: | ||
individus: | ||
p1: | ||
taux_incapacite: 0.80 | ||
apa_domicile: 100 | ||
gir: gir_1 | ||
menage: | ||
depcom: 28000 | ||
output: | ||
eure_et_loir_eligibilite_cmi_invalidite: True | ||
|
||
- name: Éligibilité à la CMI invalidité de l'Eure-et-Loir avec personne incapacité 70 % et apa OK | ||
period: 2020-10 | ||
input: | ||
individus: | ||
p1: | ||
taux_incapacite: 0.70 | ||
apa_domicile: 100 | ||
gir: gir_1 | ||
menage: | ||
depcom: 28000 | ||
output: | ||
eure_et_loir_eligibilite_cmi_invalidite: True | ||
|
||
- name: Éligibilité à la CMI invalidité de l'Eure-et-Loir avec personne incapacité 70 % et apa OK et gir_2 | ||
period: 2020-10 | ||
input: | ||
individus: | ||
p1: | ||
taux_incapacite: 0.70 | ||
apa_domicile: 100 | ||
gir: gir_2 | ||
menage: | ||
depcom: 28000 | ||
output: | ||
eure_et_loir_eligibilite_cmi_invalidite: True | ||
|
||
- name: Éligibilité à la CMI invalidité de l'Eure-et-Loir avec personne incapacité 80 % et apa KO | ||
period: 2020-10 | ||
input: | ||
individus: | ||
p1: | ||
taux_incapacite: 0.80 | ||
apa_domicile: 0 | ||
gir: gir_2 | ||
menage: | ||
depcom: 28000 | ||
output: | ||
eure_et_loir_eligibilite_cmi_invalidite: True | ||
|
||
- name: Éligibilité à la CMI invalidité de l'Eure-et-Loir avec personne nationalité IT | ||
period: 2020-10 | ||
input: | ||
individus: | ||
p1: | ||
taux_incapacite: 0.80 | ||
apa_domicile: 0 | ||
gir: gir_2 | ||
nationalite: IT | ||
menage: | ||
depcom: 28000 | ||
output: | ||
eure_et_loir_eligibilite_cmi_invalidite: True | ||
|
||
- name: Éligibilité à la CMI invalidité de l'Eure-et-Loir avec personne nationalité hors UE et titre_sejour | ||
period: 2020-10 | ||
input: | ||
individus: | ||
p1: | ||
taux_incapacite: 0.80 | ||
apa_domicile: 0 | ||
gir: gir_2 | ||
nationalite: LYD | ||
titre_sejour: True | ||
menage: | ||
depcom: 28000 | ||
output: | ||
eure_et_loir_eligibilite_cmi_invalidite: True | ||
|
||
- name: Éligibilité à la CMI invalidité de l'Eure-et-Loir avec personne refugie | ||
period: 2020-10 | ||
input: | ||
individus: | ||
p1: | ||
taux_incapacite: 0.80 | ||
apa_domicile: 0 | ||
gir: gir_2 | ||
refugie: True | ||
menage: | ||
depcom: 28000 | ||
output: | ||
eure_et_loir_eligibilite_cmi_invalidite: True | ||
|
||
- name: Éligibilité à la CMI invalidité de l'Eure-et-Loir avec personne apatride | ||
period: 2020-10 | ||
input: | ||
individus: | ||
p1: | ||
taux_incapacite: 0.80 | ||
apa_domicile: 0 | ||
gir: gir_2 | ||
apatride: True | ||
menage: | ||
depcom: 28000 | ||
output: | ||
eure_et_loir_eligibilite_cmi_invalidite: True | ||
|
||
- name: Non Éligibilité à la CMI invalidité de l'Eure-et-Loir avec personne incapacité < 80 % et apa KO | ||
period: 2020-10 | ||
input: | ||
individus: | ||
p1: | ||
taux_incapacite: 0.70 | ||
apa_domicile: 0 | ||
gir: gir_2 | ||
menage: | ||
depcom: 28000 | ||
output: | ||
eure_et_loir_eligibilite_cmi_invalidite: False | ||
|
||
- name: Non Éligibilité à la CMI invalidité de l'Eure-et-Loir avec personne incapacité < 80 % et apa OK et gir_3 | ||
period: 2020-10 | ||
input: | ||
individus: | ||
p1: | ||
taux_incapacite: 0.70 | ||
apa_domicile: 100 | ||
gir: gir_3 | ||
menage: | ||
depcom: 28000 | ||
output: | ||
eure_et_loir_eligibilite_cmi_invalidite: False | ||
|
||
- name: Non Éligibilité à la CMI invalidité de l'Eure-et-Loir avec personne incapacité < 80 % et apa KO et gir_3 | ||
period: 2020-10 | ||
input: | ||
individus: | ||
p1: | ||
taux_incapacite: 0.70 | ||
apa_domicile: 0 | ||
gir: gir_3 | ||
menage: | ||
depcom: 28000 | ||
output: | ||
eure_et_loir_eligibilite_cmi_invalidite: False | ||
|
||
- name: Non Éligibilité à la CMI invalidité de l'Eure-et-Loir avec personne hors 28 | ||
period: 2020-10 | ||
input: | ||
individus: | ||
p1: | ||
taux_incapacite: 0.80 | ||
apa_domicile: 0 | ||
gir: gir_2 | ||
nationalite: FR | ||
menage: | ||
depcom: 45000 | ||
output: | ||
eure_et_loir_eligibilite_cmi_invalidite: False |
Oops, something went wrong.