Table of Contents |
---|
Purpose
This method is designed to obtain all Employees of the legal entity.
Specification
Page Properties | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Logic
...
Verify the validity of access token
...
Input parameters
See on Apiary
Filters
See on Apiary
Search employees by filters in ws url:
required filters
legal_entity_id (MSP id),
optional filters:
status (employees status APPROVED, DISMISSED, REORGANIZED). By default used APPROVED
employee_type (employees type DOCTOR, HR, ACCOUNTANT, PHARMACIST, etc). By default returned all types of employees.
limit (limit response size - quantity of employee objects). By default returned 50 objects.
starting_after (cursor to fetch next page)
ending_before (cursor to fetch previous pageno_tax_id (filer employees with or w/o tax_id).
tax_id (filter employees by tax_id)
party_id (filter employees by party)
edrpou (filter employees by legal_entity edrpou)
division_id (filter employees by division)
page (Page number)
page_size (A limit on the number of objects to be returned, between 1 and 300. Default: 50)
If according to filters employees are not found, WS returns empty data array.
...
employee and party objects
for DOCTOR and PHARMACIST - additional returns specialities information
pagination data - for tecnical info.
Input parameters
See on Apiary
Filters
...
Dictionaries
https://e-health-ua.atlassian.net/wiki/spaces/EBT/pages/1300529210/EMPLOYEE+TYPE https://e-health-ua.atlassian.net/wiki/spaces/EBT/pages/1195114505/SPECIALITY+TYPE https://e-health-ua.atlassian.net/wiki/spaces/EBT/pages/1194852386/SPECIALITY+LEVEL https://e-health-ua.atlassian.net/wiki/spaces/EBT/pages/1195278373/SPEC+QUALIFICATION+TYPE
POSITION /wiki/spaces/EBT/pages/1190887576
Authorize
Request to process the request using a token in the headers
Headers
Content-Type:application/json
Authorization:Bearer c2778f3064753ea70de870a53795f5c9
Request data validation
EMPLOYEE_TYPE
SPECIALITY_TYPE
SPECIALITY_LEVEL
SPEC_QUALIFICATION_TYPE
POSITION
+DIVISION_TYPE
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 = 'employee:read')
Return (403, 'Your scope does not allow to access this resource. Missing allowances: employee:read') in case of invalid scope(s)
Headers
Content-Type:application/json
Authorization:Bearer c2778f3064753ea70de870a53795f5c9
Request data validation
-
Processing
Service returns specified Employees related to the legal entity from token:
Get Employees from
prm.employees
Filter by search paramsmedication_request_id and patient_id and status (optional)
Filter list above by submitted search parameters
Render a response according to specification with found Employees
Return empty array if no data found.
...
Expand | ||
---|---|---|
| ||
|
Post-processing processes
...
HTTP status codes
Page Properties | ||||||
---|---|---|---|---|---|---|
|
Backward compatibility
...
|