Сторінка знаходиться в процесі розробки. Інформація на ній може бути застарілою.
/wiki/spaces/EN/pages/17591304241 (remove the link block before publishing the document)
Properties of a REST API method document
Purpose
This method returns all service requests related to specified episode of care.
Logic
N/A
Configuration parameters
N/A
Dictionaries
N/A
Input parameters
Input parameter | Mandatory | Type | Description | Example | |
---|---|---|---|---|---|
1 | patient_id |
| String | Unique patient identifier |
|
2 | episode_id |
| String | Unique episode identifier |
|
3 | status |
| String | The status of the service request. Default: active |
|
Request structure
See on API-specification
Headers
Request data validation
Authorize
Verify the validity of access token
Return (401, 'unauthorized') in case of validation fails
Verify that token is not expired
in case of error - return (401, 'unauthorized')
Check user scopes in order to perform this action (scope = 'service_request:read')
Return (403, 'invalid scopes') in case of invalid scope(s)
Request to process the request using a token in the headers
Processing
Get all Service requests by person_id and episode_id from service_request (MongoDB)
Validate data consistency:
Ensure that requested Service requests have ABAC context
Return 403 ('Access denied') in case of error
Filter list above by submitted search parameters
Render a response according to specification with found Service requests entities.
Response structure examples
See on API-specification
HTTP status codes
Response code | HTTP Status code | Message | Internal name | Description | |
---|---|---|---|---|---|
1 | Базові | ||||
2 | 401 | Unauthorized | |||
3 | 403 | Invalid scopes | |||
4 | 404 | Episode or patient not found | |||
5 | Специфічні | ||||
6 |
Post-processing processes
N/A
Technical modules where the method is used
List of pages describing technical modules where the method is used