...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Table of Contents |
---|
...
Purpose
...
Table of Contents |
---|
Purpose
This method returns details of the specified capitation report
Specification
Page Properties | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||
|
Filters
See on Apiary
Authorize
Verify the validity of access token
in case of error return 401 ('Access denied')
Check user scope capitation_report:read in order to perform this action
in case of
...
error generate 401 response ('Invalid scopes')
Headers
Наприклад:
Content-Type:application/json
Request data validation
Verify role
Extract from token:
Validate client_id (is_blocked=false)
in case of error return 403 Error ('Client is blocked')
In case WS was called by MSP check contractor_legal_entity is active
in case error return 403 - ('Client is not active')
Response structure
Generate synthetical id for each object in response
id = edrpou + '-' + report_id
In case WS was called by NHS
Select
...
all capitation
...
_report_details by id
Return the result
In case WS was called by MSP
...
Extract legal_entity_id from token
...
search for merged_from_legal_entities
Select capitation_report_details
...
where legal_entity_id =
...
legal_entity_
...
id (from step a
...
) and legal_entity_id = merged_from_legal_entities_id (from step b)
Return the result
Example:
Expand | ||
---|---|---|
| ||
|
HTTP status codes
Page Properties | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|