Table of Contents |
---|
Purpose
...
If equals - check that person must not be authorized by confidant person, so it doesn’t correspond to following rules:
persons age < no_self_registration_age global parameter;
persons age between no_self_registration_age and person_full_legal_capacity_age global parameters and person does not have document with type from PIS_PERSON_LEGAL_CAPACITY_DOCUMENT_TYPES config parameter;
persons age > person_full_legal_capacity_age global parameter and exists at least one active and approved confidant person relationship for person (using following process /wiki/spaces/CSI/pages/17667883028 process Check confidant person relationship with person_id = person from request - expected
:ok, :approved
response)In case of error - return 409 (‘Request must be authorized by confidant person’)
If not equal - validate relationship with following steps:
Check that there is registered relationship between
person_id
andapplicant_person_id
(MPI.confidant_person_relationships)Check that relationship is VERIFIED
In case of error - return 409 (‘Can’t confirm relationship’)
Check that
applicant_person_id
exists (status = 'active' & is_active = 'true') and has verification_status any butNOT_VERIFIED
In case of error - return 409 (‘Confidant person not found or is not verified’)
...
Submit person on Manual NHS verification according to following logic: https://e-health-ua.atlassian.net/wiki/spaces/EDDREH/pages/1805061326418213765970/RC_Sign+person+request+v2#Manualv2+DMS#Manual-NHS-verification
DRFO registry verification
Submit person on DRFO registry verification according to following logic: https://e-health-ua.atlassian.net/wiki/spaces/EDDREH/pages/1805061326418213765970/RC_Sign+person+request+v2+v2#DRFODMS#DRFO-registry-verification
DRACS death acts registry verification
Submit person on DRACS death acts registry verification according to following logic: https://e-health-ua.atlassian.net/wiki/spaces/EDDREH/pages/1805061326418213765970/RC_Sign+person+request+v2+v2#DRACSDMS#DRACS-death-acts-registry-verification
MVS passport registry verification
Submit person on MVS passport registry verification according to following logic: https://e-health-ua.atlassian.net/wiki/spaces/EDDREH/pages/1805061326418213765970/RC_Sign+person+request+v2#MVSv2+DMS#MVS-passport-registry-verification
DMS passport registry verification
Submit person on DMS passport registry verification according to following logic: https://e-health-ua.atlassian.net/wiki/spaces/EDDREH/pages/1805061326418213765970/RC_Sign+person+request+v2+v2#DMSDMS#DMS-passport-registry-verification
UNZR registry verification
Submit person on UNZR registry verification according to following logic: https://e-health-ua.atlassian.net/wiki/spaces/EDDREH/pages/1805061326418213765970/RC_Sign+person+request+v2+v2#UNZRDMS#UNZR-registry-verification
Calculate cumulative verification status
Calculate cumulative person verification status according to following logic: https://e-health-ua.atlassian.net/wiki/spaces/EDDREH/pages/1805061326418213765970/RC_Sign+person+request+v2+v2#CalculateDMS#Calculate-cumulative-verification-status
Update relationship between confidant person and updated person
...
Deactivate all records in https://e-health-ua.atlassian.net/wiki/spaces/CSIEH/pages/17613422609724271171/IL#confidant_person_relationship_requests table where person_id =
person.id
and status = NEW, set values:status = CANCELLED
updated_at = now()
updated_by = user_id (from token)
Deactivate all records in https://e-health-ua.atlassian.net/wiki/spaces/EDDR/pages/18048483381/MPI#confidant_person_relationships MPI table where person_id =
person.id
and is_active = true, set values:active_to = now()
updated_at = now()
updated_by = user_id (from token)
For each relationship from previous step - deactivate person authentication methods in https://e-health-ua.atlassian.net/wiki/spaces/EDDR/pages/18048483381/MPI#person_authentication_methods MPI table with type = THIRD_PERSON and value =
confidant_person_relationships.confidant_person_id
, set values:is_active = false
ended_at = now()
updated_at = now()
updated_by = user_id (from token)
...