Versions Compared

Key

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

Purpose: This page describes dates (periods) in Medication request.

...

Info
titleNote:

You can't create Medication Request for innm_dosge dosage in case there is another Medication Request with the same medication INNM in this period (between started_at and ended_at)

...

Info
titleNote:

Fetch Medication Request by innm_dosge, program_id, person_id and max(end_date) in status (ACTIVE, COMPLETED). In case there is such 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
    • and
  • if (ended_at - started_at) < mrr_standart_duration then
    • NEW created_at >= ended_at - min_mrr_renew_
    days>=current_day
    • days and

Config parameters:

  • dispense_period = 30

...