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 person doesn't have tax_id registration flow must be next:
- input Passport Number
- attach scan of Passport
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/Update employee (https://edenlab.atlassian.net/wiki/x/VBYU)
- 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
- Get Declaration requests
- List Search for party
- Fraud Black list Users - block users by adding to black list 'tax_id' (tax or passport id)
- Fraud replication
Also new changes must be done:
- For Employee Lists must be added parameter - no_tax_id: GET /employees?no_tax_id
- NHS admin must be able to filter by parameter no_tax_id=true and see attached documents