ЕСОЗ - публічна документація
Create INNM
Purpose
This WS is designed to create new Innm (post).
Specification
Link | API paragraph not found |
Resource | /innms |
Scope | innm:write |
Components | Drugs and Program medications |
Microservices | API paragraph not found |
Protocol type | REST |
Request type | POST |
Sync/Async | Sync |
Public/Private/Internal | Internal. NHS Admin |
Logic
This method is used to create new innm. Fields descriptions are listed in request Example view.
Request structure
See on Apiary
Example:
Authorize
Verify the validity of access token
Check user scope (scope = 'innm:write') in order to perform this action
In case error - generate 401 response
Request to process the request using a token in the headers
Headers
Наприклад:
Content-Type:application/json
Authorization:Bearer c2778f3064753ea70de870a53795f5c9
Request data validation
API paragraph not found
Processing
Create new Innm
Create new record in `innms`
Fill data
Destination | Source |
---|---|
id |
|
name | $.name |
name_original | $.name_original |
sctid | $.sctid |
is_active | TRUE |
inserted_at | :timestamp |
inserted_by | user_id |
updated_at | :timestamp |
updated_by | user_id |
Response structure
See on Apiary
Example:
HTTP status codes
HTTP status code | Message | What caused the error |
---|---|---|
201 |
|
|
409 |
|
|
ЕСОЗ - публічна документація