Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Specification 

...

  1. Return object with response structure from WS Sign Medication Request.

  2. Calculate medication remaining quantity:

    1. Select all Medication Dispenses in status PROCESSED related to the Medication Request

      Sum medication_qty in the filtered Medication Dispenses as dispensed_qty

      Calculate medication_remaining_qty = medication_qty - dispensed_qty

  3. Return medication_remaining_qty in the response