...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Table of Contents | ||||
---|---|---|---|---|
|
Required parameters are marked with "*"
Якщо інформації по відповідному параметру немає, потрібно зазначити: “APIparagraph not found”.
Purpose*
This service is designed to obtain list of capitation or reimbursement contracts by reimbursement contracts by NHS or Legal Entity employee.
Contract type should be declared in the url.
Specification*
Page Properties |
---|
...
Overview
- only employees with scope "contract:read" can get list of contracts
- list of contracts can be filtered
Specification
Public API
Private API
- GraphQL API
Capitation Contract
Reimbursement Contract - Features
...
|
Logic*
This method is designed to obtain list of contracts with filters. This method return shorten information about contract, in order to see all information try to use 'get contract details'
Filters
Filter | Values | Type | Description | Example |
---|---|---|---|---|
id | String | id of contract request |
| |
contractor_legal_entity_id | String | id of legal entity which created contract request |
| |
edrpou | String | contractor legal entity EDRPOU | ||
contractor_owner_id | String | id of legal entity owner |
| |
nhs_signer_id | String | id of nhs employee |
| |
status | TERMINATED VERIFIED | Enum | current contract status |
|
is_suspended | Boolean | wether contract is active |
| |
date_from_start_date | String |
| ||
date_to_start_date | String |
| ||
date_from_end_date | String |
| ||
date_to_end_date | String |
| ||
contract_number | String | human readable number of contract request |
| |
medical_program_id | String | id of a program that is a subject of a contract |
| |
page | Number | Page number |
| |
page_size | Number | A limit on the number of objects to be returned. Maximum: 500 |
|
Request structure*
API paragraph not found
Authorize*
Request to process the request using a token in the headers
Headers*
Наприклад:
Content-Type:application/json
Authorization:Bearer c2778f3064753ea70de870a53795f5c9
Request data validation*
Validate token
Verify the validity of access token
Return 401 in case validation fails
token is not expired
in case error return 401
Validate scopes
Check user scopes in order to perform this action (scope = 'contract:read')
Return 403 in case invalid scope(s) -"Your scope does not allow to access this resource. Missing allowances:
contractcontract:read"
Validate employee
extract user_id from token
extract client_id from token
Check if user is active
in case error return 403 - "user is not active"
Check nhs_legal_entity is active
in case error return 403 - "Client is not active"
Validate context
Return response to user limited by context from user's token
- if TOKENS
if TOKENS_TYPES_PERSONAL
return response limited by contractor_legal_entity_id
- TOKENS
if TOKENS_TYPES_NHS
return non limitted response
Processing*
API paragraph not found
Response structure*
See on Apiary
Example:
Expand | ||
---|---|---|
| ||
|
Expand | ||
---|---|---|
|
...
| ||
|
Post-processing processes*
API paragraph not found
HTTP status codes
HTTP status code | Message | What caused the error |
---|---|---|
200 |
|
|