...
Verify the validity of access token
Check user scopes declaration:terminate in order to perform this action
In case error - generate 401 response.
...
One of parameter person_id or employee_id
must be set. Also can be added the description field: reason_description.
Patient via cabinet can terminate only his own active declaration.
...