ЕСОЗ - публічна документація
ARCHIVE_Get Employees list_EN (DRACS,DRFO)
Purpose
This method is designed to obtain all Employees of the legal entity.
Specification
Authorization
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)
Service logic
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.
ЕСОЗ - публічна документація