Versions Compared

Key

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

...

  • created_at: Medication request creation date, which is determined by the external system. Format DATE '2017-09-07'. created_at = today
  • started_at: Start date of a treatment period, which is determined by the external system. Greater or equal to created_at. Format DATE '2017-09-07'
  • ended_at: End date of a treatment period, which is determined by the external system. Greater or equal to started_at. Format DATE '2017-10-07'

...

Info
titleNote:

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

Config parameters:

  • mrr_delay_input = 3 
  • mrr_standart_duration = 21 
  • min_mrr_renew_days = 3
  • max_mrr_renew_days= 7


Info
titleNote:

In case Fetch Medication Request for by innm_dosge already exists next  Medication Request can , program_id, person_id and max(end_date). In case there is such Medication Request then next one  can be done in

  • if (ended_at - started_at) => 21 days then mrr_standart_duration then
    NEW created_at >= ( ended at ) - 7 daysmax_mrr_renew_days>=current_day
  • if (ended_at - started_at) < 21 days then mrr_standart_duration then
    NEW created_at >= max(( ended_at ) - 3 days, previous created_at)min_mrr_renew_days>=current_day

Config parameters:

  • dispense_period = 30


  • dispense_valid_from: Start date of dispense period, which is determined by the internal system, not-manageable attribute by API. dispense_valid_from = created_at. Format DATE '2017-09-07'
  • dispense_valid_to: End date of dispense period, which is determined by the internal system, not-manageable attribute by API. dispensed_valid_to = dispensed_valid_from +

...

  • dispense_period. Format DATE '2017-10-07'


Info
titleNote:

Dispense of Medications under this Medication Request is possible in period between dispense_valid_from and dispense_valid_to

...