...
...
...
...
This method intended to get all Medication dispenses for the PHARMACY users
Specification
...
Link
...
...
Посилання на Apiary або Swagger
...
Resource
...
/api/pharmacy/medication_dispenses
...
Посилання на ресурс, наприклад: /api/persons/create
...
Scope
...
medication_dispense:read_pharm
...
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
...
Метод є синхронним чи асинхронним?
...
Public/Private/Internal
...
Public
Logic
Service returns specified Medication dispenses related to the legal entity from token:
Get Medication dispenses from medication_dispenses DB (OPS).
Filter list above by submitted search parameters.
Render a response according to specification.
Filters
See on Apiary
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 = 'medication_dispense:read_pharm')
Return (403, 'Your scope does not allow to access this resource. Missing allowances: medication dispense:read') in case of invalid scope(s).
Headers
Content-Type:application/json
Authorization:Bearer c2778f3064753ea70de870a53795f5c9
Request data validation
Validate User
Extract client_id (legal_entity_id) from token.
Return empty array in case employee has no access to medication dispense.
Parameters that are used when processing the request
Configuration parameters
Access to the method is defined by the scope medication_dispense:read_pharm. Permission for this scope is determined by the System administrator by configuring scopes in the context of clients and roles.
Response structure
Example:
Expand | ||
---|---|---|
| ||
|
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: medication_dispense:read_pharm
...
The page is not supported. The method requirements can be found here https://e-health-ua.atlassian.net/wiki/x/EoFCFwQ