Note |
---|
Сторінка знаходиться в процесі розробки. Інформація на ній може бути застарілою. |
...
Page Properties | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||
|
...
This WS is designed to approve contract request by MSP side after it was approved by NHS side. Contract request only in status APPROVED can be approved by MSP/PHARMACY and as a result status changes to 'PENDING_NHS_SIGN'. Only after that NHS employee can sign the contract request.
Configuration parameters
Description of the configuration parameters that are used when processing a request in the system
Dictionaries
Provides a list of links to dictionaries that are available in ConfluenceN/A
Dictionaries
N/A
Input parameters
Input parameter | Mandatory | Type | Description | Example | |
---|---|---|---|---|---|
1 | id |
|
String
Request structure
See on API-specification
...
title | Example |
---|
...
Headers
Key
Value
Mandatory
Description
Example
Content-Type
application/json
M
Тип контенту
Content-Type:application/json
Authorization
Bearer c2778f3064753ea70de870a53795f5c9
M
Перевірка користувача
Authorization:Bearer c2778f3064753ea70de870a53795f5c9
String |
|
| |||
2 |
Request structure
See on API-specification
Expand | |||||
---|---|---|---|---|---|
| |||||
|
Headers
Request data validation
Authorize
...
set status='PENDING_NHS_SIGN'
Mapping
field | value |
---|
field
value
updated_by | $.user_id |
updated_at | now() |
status | PENDING_NHS_SIGN |
Add to event manager
After status was changed (status = APPROVED, DECLINED, PENDING_NHS_SIGN, TERMINATED or SIGNED) - add new status to event_manager
field | value |
---|---|
|
|
| Contract_request |
| $.id |
| $.status |
| $.update_at |
| $. |
inserted_at | now() |
updated_at | now() |
Response structure examples
...
Expand | |||||
---|---|---|---|---|---|
| |||||
|
Expand | |||||
---|---|---|---|---|---|
| |||||
|
HTTP status codes
Response code | HTTP Status code | Message | Internal name | Description | |
---|---|---|---|---|---|
1 | Базові | ||||
2 | 200 | ||||
3 | 401 | Token is expired | |||
4 | 403 | Client is not active | |||
5 | 403 | Client is not allowed to modify contract_request | |||
6 | 403 | user is not active | |||
7 | 403 | Your scope does not allow to access this resource. Missing allowances: contract_requests:approve | |||
8 | 404 | Contract request with id=$id doesn't exist | |||
9 | 409 | Incorrect status of contract request to modify it | |||
10 | 422 | Contractor owner must be active within current legal entity in contract request | |||
11 | 422 | Contract request start date should be in future | |||
12 | 422 | Division must be active and within current legal_entity | |||
13 | 422 | Employee must be an active DOCTOR | |||
14 | 422 | Legal entity in contract request should be active | |||
15 | 422 | The division is not belong to contractor_divisions | |||
16 | Специфічні | ||||
17 |
Post-processing processes
Description of actions performed on data after processing
Technical modules where the method is used
List of pages describing technical N/A
Technical modules where the method is used
Page Properties Report | ||||
---|---|---|---|---|
|
...