Skip to content

Instantly share code, notes, and snippets.

@camillebaldock
Created January 12, 2015 17:11
Show Gist options
  • Select an option

  • Save camillebaldock/5de2d583844e6a6d41fb to your computer and use it in GitHub Desktop.

Select an option

Save camillebaldock/5de2d583844e6a6d41fb to your computer and use it in GitHub Desktop.
SPL documentation, including adoption

##Usage

The pay and leave for parents determines whether a single parent or two parents are eligible for any the following

  • maternity leave
  • maternity pay
  • maternity allowance
  • adoption leave
  • adoption pay
  • paternity leave
  • paternity pay
  • additional paternity leave
  • additional paternity pay
  • shared parental leave
  • shared parental pay

##Test definitions

Earnings and employment test

There are two ways of meeting the earnings and employment test:

  • The person meets the continuity and the lower earnings test
  • The person answers yes to the two questions on their 'employment_more' page.

Continuity test

A person meets the continuity test if they answer yes to questions 1 and 2 on their employment page.

Lower earnings test

A person meets the lower earnings test if they answer yes to question 4 on their employment page.

Eligibility

Maternity leave

A person is eligible for maternity leave if

  • they are the biological mother of the child

AND

  • they are an employee

AND

  • they answers yes to question 2 on their employment page (maternity leave is a day-1 right)

Maternity pay

A person is eligible for maternity pay if

  • they are the biological mother of the child

AND

  • they are an employee or a worker

AND

  • they pass the continuity test

AND

  • they pass the lower earnings test

Maternity allowance

A person is eligible for maternity allowance if

  • they are the biological mother of the child

AND

  • they are not entitled to maternity pay

AND

  • they pass the earnings and employment test

Adoption leave

A person is eligible for adoption leave if

  • they are an employee and the match date is after '05-04-2015' and they answer yes to question 2 on their employment page (adoption leave is a day-1 right from '05-04-2015')

OR

  • they are an employee and the match date is before '05-04-2015' and they pass the continuity test

Adoption pay

A person is eligible for adoption pay if

  • they are an employee or a worker

AND

  • they pass the continuity test

AND

  • they pass the lower earnings test

Paternity leave

A person is eligible for paternity leave if

  • they are an employee

AND

  • they pass the continuity test

Paternity pay

A person is eligible for paternity pay if

  • they are an employee or a worker

AND

  • they pass the continuity test

AND

  • they pass the lower earnings test

Additional paternity leave

A person is eligible for additional paternity leave if

  • the due date or match date of their child is after '05-04-2015'

AND

  • they are eligible for paternity leave

Additional paternity pay

A person is eligible for additional paternity pay if

  • the due date or match date of their child is after '05-04-2015'

AND

  • they are eligible for paternity pay

Shared parental leave

A person is eligible for shared parental leave if

  • the due date or match date of their child is after '05-04-2015'

AND

  • they are eligible for maternity leave or paternity leave or adoption leave

AND

  • their partner meets the earnings and employment test

Shared parental pay

A person is eligible for shared parental pay if

  • the due date or match date of their child is after '05-04-2015'

AND

  • they are eligible for maternity pay or paternity pay or adoption pay

AND

  • their partner meets the earnings and employment test

Questions in the pay-and-leave-for-parents flow

List of all question pages in the pay and leave for parents flow.

In each case, we define what that question determines What and in what cases it is asked When.

They are listed in the order in which they appear to the user.

Please note that only a subset of the questions will be asked, depending on previous answers.

circumstances: Circumstances

When

Always

What

Whether the user is a single parent or two parents, and whether the parent(s) is/are having a baby or adopting.

Variables

two_carers: 'yes' or 'no'

circumstance: 'birth' or 'adoption'

due_date: Due date

When

If the parent/parents is/are having a baby (circumstance is 'birth')

What

Baby's due date.

Variables

due_date; enter a date

adoption_dates: Adoption dates

When

If the parent/parents is/are adopting (circumstance is 'adoption')

What

Child's match date and placement date.

Variables

match_date; enter a date

placement_date; enter a date

employment_single: Employment status

When

  • the user is a single parent (two_carers is 'no')

AND

  • the user is having a baby (circumstance is 'birth')

What

Mother's employment status.

Variables

employment_1: 'employee' or 'worker' or 'self-employed' or 'unemployed'

adoption_employment_single: Employment status

When

  • the user is a single parent (two_carers is 'no')

AND

  • the user is adopting (circumstance is 'adoption')

What

Adopter 1's employment status.

Variables

employment_1: 'employee' or 'worker' or 'self-employed' or 'unemployed'

employment_both: Employment statues

When

  • the user is a couple (two_carers is 'yes')

AND

  • they are having a baby (circumstance is 'birth')

What

Mother and mother's partner employment statuses.

Variables

employment_1: 'employee' or 'worker' or 'self-employed' or 'unemployed'

employment_2: 'employee' or 'worker' or 'self-employed' or 'unemployed'

adoption_employment_both: Employment statues

When

  • the user is a couple (two_carers is 'yes')

AND

  • they are adopting (circumstane is 'adoption')

What

Adopter 1 and adopter 2's employment statuses.

Variables

employment_1: 'employee' or 'worker' or 'self-employed' or 'unemployed'

employment_2: 'employee' or 'worker' or 'self-employed' or 'unemployed'

employment_1: Mother's employment details

When

  • the mother is a worker or an employee (employment_1 in {employee worker})

What

Continuity test, lower earnings test and salary for mother.

Continuity test passes if job_before_x_1 is 'yes' AND job_after_y_1 is 'yes'. Lower earnings test passes if lel_1 is 'yes'.

We ask for the salary to determine the maternity pay and shared parental pay for mother amount in the case where she would be eligible for either or both.

Variables

job_before_x_1: 'yes' or 'no'

job_after_y_1: 'yes' or 'no'

salary_1: weekly, monthly or annual salary

lel_1: 'yes' or 'no'

adoption_employment_1: Adopter 1's employment details

When

  • adopter 1 is a worker or an employee (employment_1 in {employee worker})

What

Continuity test, lower earnings test and salary for adopter 1.

Continuity test passes if job_before_x_1 is 'yes' AND job_after_y_1 is 'yes'.

Lower earnings test passes if lel_1 is 'yes'.

We ask for the salary to determine the adoption pay, or parental pay, or shared parental pay in case the eligible for either or all of those.

Variables

job_before_x_1: 'yes' or 'no'

job_after_y_1: 'yes' or 'no'

salary_1: weekly, monthly or annual salary

lel_1: 'yes' or 'no'

employment_1_more: Mother's employment details

When

  • the mother is a worker or an employee (employment_1 in {employee worker}) and she is not eligible for maternity pay (job_before_x_1 is 'no' OR job_before_y_1 is 'no' OR lel_1 is 'no' )

OR

  • the mother is self-employed or unemployed (employment_1 in {self-employed unemployed})

What

Earnings and employment test for mother.

Variables

work_employment_1: 'yes' or 'no'

earnings_employment_1: 'yes' or 'no'

adoption_employment_1_more: Adopter 1's employment details

When

If:

  • adopter 2 is eligible for adoption leave or pay
  • adopter 1 does not pass both the continuity and lower earnings tests

What

Earnings and employment test for adopter 1.

Variables

work_employment_1: 'yes' or 'no'

earnings_employment_1: 'yes' or 'no'

employment_1_more_salary: Mother's salary details

When

If the mother is entitled to maternity allowance, ie:

  • the mother is a worker or an employee (employment_1 in {employee worker}) AND she is not eligible for maternity pay (does not pass continuity test or does not pass lower earnings test: job_before_x_1 is 'no' OR job_before_y_1 is 'no' OR lel_1 is 'no' ) AND she passes the earnings and employment test (work_employment_1 is 'yes' AND earnings_employment_1 is 'yes')

  • the mother is unemployed or self-employed (employment_1 in {self-employed unemployed}) AND she passes the earnings and employment test (work_employment_1 is 'yes' AND earnings_employment_1 is 'yes')

What

Salary over earnings and employment period to determine mother's materniy allowance amount.

Variables

salary_1_66_weeks: weekly, monthly or yearly salary during earnings and employment period

employment_2

When

  • the mother's partner is a worker or an employee (employment_1 in {employee worker})

What

Continuity test, lower earnings test and salary for mother's partner.

Continuity test passes if job_before_x_2 is 'yes' AND job_after_y_2 is 'yes'. Lower earnings test passes if lel_2 is 'yes'.

We ask for the salary to determine the paternity pay, additional paternity pay or shared parental pay amount in the case where they would be eligible for either or both.

Variables

job_before_x_2: 'yes' or 'no'

job_after_y_2: 'yes' or 'no'

salary_2: weekly, monthly or annual salary

lel_2: 'yes' or 'no'

adoption_employment_2: Adopter 2's employment details

When

  • adopter 2 is a worker or an employee (employment_2 in {employee worker})

What

Continuity test, lower earnings test and salary for adopter 2.

Continuity test passes if job_before_x_2 is 'yes' AND job_after_y_2 is 'yes'.

Lower earnings test passes if lel_2 is 'yes'.

We ask for the salary to determine the adoption pay, paternity pay, additional paternity pay or shared parental pay amount in the case where they would be eligible for either of those.

Variables

job_before_x_2: 'yes' or 'no'

job_after_y_2: 'yes' or 'no'

salary_2: weekly, monthly or annual salary

lel_2: 'yes' or 'no'

employment_2_more

When

  • the mother is eligible for shared parental leave

OR

  • the mother is eligible for shared parental pay

OR

  • the mother is eligible for shared parental leave and pay

What

Earnings and employment test for mother's partner.

Variables

work_employment_2: 'yes' or 'no'

earnings_employment_2: 'yes' or 'no'

adoption_employment_2_more: Adopter 2's employment details

When

  • adopter 1 is eligible for adoption leave or adoption pay AND adopter 2 does not pass both the continuity and lower earnings tests

What

Earnings and employment test for adopter 2.

Variables

work_employment_2: 'yes' or 'no'

earnings_employment_2: 'yes' or 'no'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment