ЕСОЗ - публічна документація
Employees without tax_id
Purpose
The logic for creating new employee must be changed so employee without tax_id will be able to register in E-health. If the employee doesn't have tax_id registration flow must be next:
- input Passport Number
Passport number is stored in same field as tax_id, additionally for Party there is a boolean field 'no_tax_id'=[true, false]
That will lead to changes described below:
- Create employee request (apiary)
- Create/Update employee
- Search party_id by 'tax_id' (tax or passport id) and birth_date for deduplication Party
- If found, update object party - Update party WS
- If not found - Create object party
Update Party:
The following fields can't be changed:
- document_id
- birth_date
- Search party_id by 'tax_id' (tax or passport id) and birth_date for deduplication Party
- Sign Declaration - drfo=[tax_id, passport_number]
- Create new party, Update Party (apiary)
- List Search for party (apiary)
- Get Party details (apiary)
- Get employee details (apiary)
- Fraud Black list Users - block users by adding to black list 'tax_id' (tax or passport id)
- Fraud replication - add field parties.no_tax_id
Also new changes must be done:
- For Employee Lists must be added parameter - no_tax_id: GET /employees?no_tax_id (apiary)
- NHS admin must be able to filter by parameter no_tax_id=true and see attached documents
- Update Employee request list and Employee request by id (apiary)
ЕСОЗ - публічна документація