Does the family have a child who meets the criteria for disabled
Disability Allowance Boolean MONTH Family Formula Included used 2 timesValue type Boolean . Default value false Entity family
How is this calculated?
To calculate this variable, the following input is used
- Int age The age of a Person (in years)
- Date date_of_birth Birth date
- Boolean social_security__child_meets_child_disability_allowance_criteria Has serious disability
- Boolean social_security__child_with_serious_disability Child has serious disability
- Int social_security__medical_certification_months Number of future months the disability is expected to last for, in months
- Boolean social_security__requires_constant_care_and_attention Requires constant care and attention
Where is this used?
This variable is referred to by these other variables in their own calculations
- Boolean social_security__eligible_for_child_disability_allowance Eligible for Child Disability Allowance
- Boolean social_security_regulation__family_has_child_eligible_for_disability_allowance_child_under_6 Family has a child under 6 years old and eligible for Disability Allowance and in minimum childcare hours per week
Formulas
This is the formula used to calculate the value of disability_allowance__family_has_eligible_child
0001-01-01
This formula is used for scenarios from the date 0001-01-01 onwards. More info on formulas
def formula(families, period, parameters):
has_disability = families.members('social_security__child_meets_child_disability_allowance_criteria', period)
child_age_threshold = parameters(period).entitlements.social_security.child_disability_allowance.child_age_threshold
children = families.members('age', period.start) <= child_age_threshold
disabled_children = has_disability * children
return families.any(disabled_children, role=Family.CHILD)