Rapu Ture - Exploring the Rules

a person, other than the biological mother or her spouse or partner

Parental Leave Boolean MONTH Person Formula Included used 1 time

Value type Boolean . Default value false Entity person

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


This is the formula used to calculate the value of parental_leave__a_person_other_than_biological_mother_or_her_spouse


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

def formula_2002(persons, period, parameters):
    biological_mother = persons.family.members('parental_leave__is_the_biological_mother', period)
    partner_is_biological_mother = persons.family.any(biological_mother, role=Family.PARTNER)

    return not_(biological_mother) * not_(partner_is_biological_mother)