Table of Contents |
---|
...
This WS is designed to cancel previously created Service request.
Specification
Authorization
Verify the validity of access token
in case of error - return 401 (“Invalid access token”) in case of validation fails
Verify that token is not expired
in case of error - return 401 (“Invalid access token”)
Check user scopes in order to perform this action (scope = 'service_request:cancel')
return 403 (“Your scope does not allow to access this resource. Missing allowances: service_request:cancel”) in case of invalid scope(s)
...
Save signed content to media storage
Update service request status to entered_in_error (update also updated_at, updated_by)
Write record to status history
Send SMS to patient (if authentication_method_current == SMS, do NOT send sms in case performer is present in SR)
Async! Revoke all approvals made by this service request
If the service request is based on the activity with quantity:
Recalculate and set remaining_quantity for the activity as described at https://edenlabe-health-ua.atlassian.net/wiki/spaces/EH/pages/72276474417629119560/RC.+PreQualify+Service+Request#Validate-service-request+Request+EN