ЕСОЗ - публічна документація
Search Medication registry Jobs
Purpose
This WS allows to find Medication registry Jobs in the Admin panel using search parameters.
Key points
This is a graphQl query method used in the Administration panel only
Only authenticated and authorized NHS employee with appropriate scope can search Medication registry Jobs
Query returns a list of Medication registry Jobs filtered by search parameters
Specification
Link | graphQl query method | Посилання на Apiary або Swagger |
Resource | graphQl query method | Посилання на ресурс, наприклад: /api/persons/create |
Scope | medication_registry_job:read | Scope для доступу |
Components | Eprescription | Зазначається перелік бізнес компонентів, які використовують цей метод, наприклад: ePrescription |
Microservices | API paragraph not found | Перелік мікросервісів, які використовує метод API, наприклад: Auth, ABAC |
Protocol type | API paragraph not found | Тип протоколу, який використовується запитом, наприклад: SOAP | REST |
Request type | API paragraph not found | Тип запиту API, наприклад: GET, POST, PATCH… |
Sync/Async | API paragraph not found | Метод є синхронним чи асинхронним? |
Public/Private/Internal | Internal | Потрібно зазначити тип методу за ступенем доступності |
Logic
Get list of all Medication registry Jobs filtered by:
medication registry job types (jabba.jobs.type):
create_medication_registry
update_medication_registry
deactivate_medication_registry
submitted search params
Render list with Medication registry Jobs data according to schema
Return number of total entries found in PageInfo block
Filters
Search with a few params performs according to the logical AND rule.
status. Search by jobs.status
Authorize
Verify the validity of access token
in case of error - 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_registry_job:read')
return 403 (“Your scope does not allow to access this resource. Missing allowances: medication_registry_job:read”) in case of invalid scope(s)
Request data validation
Validate legal entity
Extract client_id from token.
Check client scopes in order to perform this action (scope = 'medication_registry_job:read')
in case of error - return 403 (“Your scope does not allow to access this resource. Missing allowances: medication_registry_job:read”)
Check client type (type = NHS)
In case of error - return 403 ('You don't have permission to access this resource')
HTTP status codes
HTTP status code | Message | What caused the error |
---|---|---|
401 | Invalid access token |
|
403 |
|
|
ЕСОЗ - публічна документація