Versions Compared

Key

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

...

End date:

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

...