Rapu Ture - Exploring the Rules

Family is caring for an orphan as per Social Security Act 1964

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_orphaned_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)
    orphaned = families.members('social_security__is_orphaned', period)
    resident_or_citizen = families.members(
        'is_citizen_or_resident', period)

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