Rapu Ture - Exploring the Rules

Family has an unsupported child

Social Security Boolean MONTH Family Formula Included used 1 time

Value type Boolean . Default value false Entity family


How is this calculated?

To calculate this variable, the following input is used


Where is this used?

This variable is referred to by these other variables in their own calculations


Formulas

This is the formula used to calculate the value of social_security__has_unsupported_child_in_family

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):
    children = families.members('social_security__is_a_child', period)
    parents_unable = families.members(
        'social_security__parents_unable_to_provide_sufficient_care', period)
    resident_or_citizen = families.members(
        'is_citizen_or_resident', period)

    return families.any((children * parents_unable * resident_or_citizen), role=Family.CHILD)