ЕСОЗ - публічна документація

RC_Get Employees list_EN (DRACS,DRFO)

Purpose

This method is designed to obtain all Employees of the legal entity.

Specification

Apiary

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:

  1. Get Employees from prm.employees

    1. Filter by medication_request_id and patient_id and status (optional)

  2. Filter list above by submitted search parameters

  3. Render a response according to specification with found Employees

    1. Return empty array if no data found.

ЕСОЗ - публічна документація