Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
start_date = Current_date()

Anchor
end_date
end_date
End date:

Code Block
if (person.age < 18)&(doctor.speciality = PEDIATRICIAN) {
  end_date = min(birth_date + 18y - 1d, start_date + declaration_term);
} else {
  end_date = start_date + declaration_term;
}

...