Versions Compared

Key

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

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

Purpose

This WS is designed to recall (cancel) previously created and signed Medication request (patch).

APIary 

create-request-for-medication-request

Input parameters (filters)

  • id 

Authorize

  1. Verify the validity of access token
  2. Check user scope (scope = 'medication_request:recall') in order to perform this action
    1. In case error - generate 401 response

Validation transition

  1. For info - status charts: 

...

  1. Medication_

...

  1. request
  2. Get

...

  1. Medication request status by $.id
  2. Check status ==

...

  1. ACTIVE
    1. if invalid - return 403 error (message: "Invalid status

...

    1. Medication request for

...

    1. recall transition!")'

Update status

  1. Update (Set values) Request for Medication request
    1. status  =  REJECTED
    2. updated_by = user_id
    3. updated_at = timestamp