ЕСОЗ - публічна документація
Get Drugs Dictionary
- 1 Purpose
- 2 Specification
- 3 Logic
- 4 Preconditions
- 5 Global and configurable parameters
- 6 Input parameters
- 7 Filters
- 8 Request structure
- 9 Authorize
- 10 Headers
- 11 Validate request
- 12 Request data validation
- 13 Parameters that are used when processing the request
- 13.1 Configuration parameters
- 13.2 Dictionaries
- 14 Processing
- 15 Response structure
- 16 Post-processing processes
- 17 HTTP status codes
- 18 Backward compatibility
Purpose
This WS is designed to return a list of detailed information for all active medications (with type innm_dosage) by search parameters.
Specification
Link | https://ehealthmisapi1.docs.apiary.io/#reference/public.-reimbursement/drugs/get-drugs-list-v2 | Посилання на Apiary або Swagger |
Resource | /api/v2/drugs | Посилання на ресурс, наприклад: /api/persons/create |
Scope | drugs:read | Scope для доступу |
Components | ePrescription | Зазначається перелік бізнес компонентів, які використовують цей метод, наприклад: ePrescription |
Microservices | API paragraph not found | Перелік мікросервісів, які використовує метод API, наприклад: Auth, ABAC |
Protocol type | REST | Тип протоколу, який використовується запитом, наприклад: SOAP | REST |
Request type | GET | Тип запиту API, наприклад: GET, POST, PATCH… |
Sync/Async | Sync | Метод є синхронним чи асинхронним? |
Logic
Service returns all medications (with type innm_dosage) filtered by submitted parameters:
1. Get all medications (PRM database):
2. Filter list above by submitted search parameters
3. Render a response according to specification with found medications entities.
Preconditions
No
Global and configurable parameters
No
Input parameters
No
Filters
See on Apiary
Request structure
API paragraph not found
Authorize
Verify the validity of access token
Return (401, 'Invalid access token') in case of validation fails
Verify that token is not expired
in case of error - return (401, 'Invalid access token')
Check user scopes in order to perform this action (scope = 'drugs:read')
Return (403, 'Your scope does not allow to access this resource. Missing allowances: drugs:read') in case of invalid scope(s)
Headers
Content-Type:application/json
Authorization:Bearer c2778f3064753ea70de870a53795f5c9
API-key:uXhEczJ56adsfh3Ri9SUkc4en
Validate request
API paragraph not found
Request data validation
API paragraph not found
Parameters that are used when processing the request
Configuration parameters
Access to the method is defined by the scope drugs:read. Permission for this scope is determined by the System administrator by configuring scopes in the context of clients and roles.
Dictionaries
API paragraph not found
Processing
API paragraph not found
Response structure
See on Apiary
Example:
Post-processing processes
No
HTTP status codes
HTTP status code | Message | What caused the error |
---|---|---|
200 | Response |
|
401 | Invalid access token |
|
403 | Your scope does not allow to access this resource. Missing allowances: drugs:read |
|
Backward compatibility
API paragraph not found
ЕСОЗ - публічна документація