Purpose
This method is designed to search legal entities on public portal by employees or any citizen of Ukraine.
Legal entities and divisions should be filtered on portal by settlement, edrpou and Type. At the moment only MSP is shown on the map and filters, PHARMATHY will be done in future.
Each legal entity should contain link to the list of employees.
Divisions have link to the map and legal entity.
All datas are shown without scopes from reports DB.
Design
https://www.dropbox.com/sh/l31iagfifbfrigq/AAAtAJmNBRa2L37jVPamQUaWa?dl=0
Divisions
Specification
Search divisions
Search divisions by filters in payload.
- Search only ACTIVE divisions
Filter by
- region_name (optional, as `LIKE *`)
- district_name (optional, as `LIKE *`)
- settlement_name (optional, as `LIKE *`)
- name (optional, as `LIKE *`)
- type (optional, Dictionary DIVISION_TYPE)
- legal_entity.edrpou (optional)
- legal_entity_id (optional)
In case none division was found return 200 and empty array.
Response
Division details + legal entity details
Show divisions on map
If there are several divisions with the same Latitude and Longitude, several meters should be added to coordinate in order to separate points on map.
Legal entity
Specification
Search Legal Entities
Search Legal Entities by filters in payload.
- Return only ACTIVE Legal Entities.
- default type = MSP
Filter by
- edrpou (optional, as `LIKE *`)
- name (optional, as `LIKE *`)
- type (optional)
- division_id (optional)
- region_name (optional, as `LIKE *`)
- district_name (optional, as `LIKE *`)
- settlement_name (optional, as `LIKE *`)
In case none legal_entity was found return 200 and empty array.
Employees
Specification
Search Employees
Search employees by filters in payload.
- return employees with status=APPROVED and is_active=true
Filter by
- division_id (optional)
- legal_entity_id (optional)
- employee_type (optional)
In case none employee was found return 200 and empty array.