...
...
...
...
...
...
...
...
...
...
...
...
...
id | ENT-005-011-006 |
---|
...
ID метода | API-005-011-006-0201 | ||||
---|---|---|---|---|---|
Автор | |||||
Версія документа | 1.0 | ||||
Статус документа |
| ||||
Назва метода (укр.) | Оновлення MPI | ||||
Назва метода (eng.) | Update MPI | ||||
Короткий опис метода | Для зміни пацієнтом персональних даних в кабінеті. |
REST API method / Метод REST API (настанова) (remove the link block before publishing REST API method / Метод REST API (настанова) (remove the link block before publishing the document)
Properties of a REST API method document
Document type | Метод REST API |
---|---|
Document title | Update MPI |
Guideline ID | GUI-0011 |
Author | |
Document version | 1 |
Document status | DRAFT |
Date of creation | ХХ.ХХ.ХХХХ (дата фінальної версії документа – RC або PROD) |
Date of update | ХХ.ХХ.ХХХХ (дата зміни версії) |
Method API ID | API-005-010-006-0205 |
Microservices (namespace) | IL |
Component | Patient Cabinet |
Component ID | COM-005-010 |
Link на API-специфікацію | https://ehealthmisapi1.docs.apiary.io/#reference/public.-patient-cabinet/cabinet/update-mpi |
Resource | {{host}}/api/cabinet/persons/{{id}} |
Scope | person:write |
Protocol type | REST |
Request type | PATCH |
Sync/Async | Sync |
Public/Private | Public |
...
Logic
Configuration parameters
Description of the configuration parameters that are used when processing a request in the systemN/A
Dictionaries
GENDER
DOCUMENT_TYPE
ADDRESS_TYPE
COUNTRY
SETTLEMENT_TYPE
STREET_TYPE
PHONE_TYPE
AUTHENTICATION_METHOD
PREFERRED_WAY_COMMUNICATION
Input parameters
...
parameters
Input parameter | Mandatory | Type | Description | Example | 1 | composition_id | M | String ($uuid) (path) | Composition object ID | 89678f60-4cdc-4fe3-ae83-e8b3ebd35c59Description | Example | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | |||||||||||||
2 |
|
|
|
|
|
Request structure
See on API-specification (посилання на сторінку з API-специфікацією)Description of the REST API request structure, example
Expand | ||
---|---|---|
| ||
|
...
Key | Value | Mandatory | Description | Example | |
---|---|---|---|---|---|
1 | Content-Type | application/json | M | Тип контенту | Content-Type:application/json |
2 |
|
|
|
|
|
Request data validationdata validation
Authorize
Verify the validity of access token
Return 401 in case validation fails
Validate client type
Check client_type = cabimet
in case error return 403 forbidden
...
Response structure examples
See on API-specification (посилання на сторінку з API-специфікацією)
Description of the REST API response structure, example
Expand | ||
---|---|---|
| ||
|
...
Response code | HTTP Status code | Message | Internal name | Description | ||||||
---|---|---|---|---|---|---|---|---|---|---|
1 | Базові | |||||||||
2 | 200 | Response |
| |||||||
3 | 401 | Unauthorized
| Помилка підтвердження | 4 | 403 | Fields last_name, first_name, tax_id could not be changed from cabinet | Validation failed | |||
54 | 403 | Your scope does not allow to access this resource. Missing allowances: person:write | ||||||||
6 | 1000 | 404 | Composition not found | COMPOSITION_NOT_FOUND_404 | Не знайдено медичний висновок | |||||
5 | 409 | Person that loged in, person that is changed and person that sign should be the same | Validation failed | |||||||
86 | 422 | Authentication number is not verified | Validation failed | |||||||
97 | 422 | Invalid settlement value | ||||||||
108 | 422 | Must contain required item BIRTH_CERTIFICATE | ||||||||
119 | 422 | OFFLINE method could not be used in cabinet | ||||||||
1210 | 422 | Value is not allowed in enum | ||||||||
1311 | Специфічні | |||||||||
1412 | 422 | Only for active MPI record can be created medication request! |
|
|
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
Название | ID ТМ | Статус |
---|---|---|
TM0112 | ||