...
...
...
...
...
...
...
...
...
Table of Contents |
---|
Purpose
This method is designed to obtain all Employees of the legal entity.
Specification
Page Properties | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
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.
...
no_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.
WS returns shortened details, which consist of:
employee and party objects
...
for DOCTOR and PHARMACIST - additional returns specialities information
pagination data - for tecnical info.
Dictionaries
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 medication_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.
Response structure
Example:
Expand | ||
---|---|---|
| ||
|
HTTP status codes
Page Properties | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|