Versions Compared

Key

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

...

Info
titleNote:

In case Medication Request for innm_dosge already exists next  Medication Request can be done in

  • if (ended_at - started_at) => 21 days then

    NEW created_at >= (ended at) - 7 days

  • if (ended_at - started_at) < 21 days then
    NEW created_at >= max((ended_at) - 3 days, previous created_at+1)


  • 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 + 30 days. Format DATE '2017-10-07'

...