ЕСОЗ - публічна документація

Program Validation Methods

Method 1: Same MRR in treatment period

Fetch Medication Request by $innm_dosge, $program_id, $person_id and max(end_date) in status (ACTIVE, COMPLETED). In case there is  Medication Request with ended_at>=current_date then next one  can be done in

  • if (ended_at - started_at) => mrr_standart_duration then
    NEW created_at >= ended at - max_mrr_renew_days>=current_day
  • if (ended_at - started_at) < mrr_standart_duration then
    NEW created_at >= ended_at - min_mrr_renew_days>=current_day

ЕСОЗ - публічна документація