Rapu Ture - Exploring the Rules

Eligible for Home Help

Home Help Boolean MONTH Person Formula Included used 0 times

Value type Boolean . Default value false Entity person

How is this calculated?

To calculate this variable, the following input is used


This is the formula used to calculate the value of home_help__eligible_for_home_help


This formula is used for scenarios from the date 0001-01-01 onwards. More info on formulas

def formula(persons, period, parameters):
    resident_or_citizen = persons('is_citizen_or_resident', period)
    in_nz = persons('social_security__is_ordinarily_resident_in_new_zealand', period)

    return resident_or_citizen * in_nz * persons.has_role(Family.PRINCIPAL_CAREGIVER) *\
            persons('home_help__had_multiple_birth', period)
            + persons('home_help__adopted_2_or_more_children', period)
            + (
                persons('has_dependent_child', period) * persons('home_help__has_no_immediate_family', period)
                * (persons('has_community_services_card', period) + persons('social_security__eligible_for_community_services_card', period))