Table of Contents | ||||
---|---|---|---|---|
|
Required parameters are marked with "*"
...
Purpose
...
This web service is designed to return only diagnostic reports that were allowed to read by patient's approval to the current user.Ендпоїнт допускає повернення даних тільки тих діагностичних звітів, на які було видано Approvalcurrent user.
Specification
...
Page Properties | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
API paragraph not found
Filters
Filter | Values | Type | Description | Example |
---|---|---|---|---|
page | Number | Page number |
| |
page_size | Number | A limit on the number of objects to be returned, between 1 and 100. Default: 50 |
| |
code | String | id of a service |
|
Request structure
...
See on Apiary
Authorize
...
Request to process the request using a token in the headers
Headers*
Наприклад:
Content-Type:application/json
Authorization:Bearer mF_9.B5f-4.1JqM
Request data validation*
...
using a token in the headers
Verify the validity of access token
Return 401 in case validation fails
Verify token is not expired
in case error return 401
Validate scopes
Check user scopes in order to perform this action (scope = 'diagnostic_report:read')
Return 403 in case invalid scope(s)
Headers
Content-Type:application/json
Authorization:Bearer {{access_token}}
API-key:{{secret}}
Request data validation
Processing
...
Logic
Select all diagnostic reports(approvals.granted_resources.identifier.value) from patients approvals that meet the requirements:
patient_id= hashed patient_id from URL
status= 'active'
granted_to contains one of user's employees' id
granted_resources.identifier.type.coding[].code="diagnostic_report"
Select this diagnostic reports from ME.patients.diagnostic_reports
Add filters requested by the user (search params)
Response structure
...
See on Apiary
Example:
Expand | ||
---|---|---|
| ||
|
Post-processing processes
...
API paragraph not found
HTTP status codes
...
Page Properties | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|