Table of Contents |
---|
...
Method is used for approve or reject employee request.
...
Then party will be verified online with DRFO registry via separate process: https://e-health-ua.atlassian.net/wiki/spaces/DRACS/pages/17250320467/DRFO + data + synchronization +for+Parties#Data-flowfor Parties_EN
DRACS death acts registry verification
...
Then party will be verified online with DRACS death acts registry via separate process: https://e-health-ua.atlassian.net/wiki/spaces/DRACS/pages/17249239231 Online verification of Parties with DRACS death acts registry_EN
DRACS name change acts registry verification
If party is created, set values in party_verifications table:
dracs_name_change_verification_status = VERIFICATION_NOT_NEEDED
dracs_name_change_verification_reason = INITIAL
If party is updated and persons dracs_name_change_verification_status = ‘VERIFICATION_NEEDED’:
Check existence of verification candidates for party_id with status = ‘NEW’ and entity_type in (‘dracs_marriage_act', ‘dracs_divorce_act’, ‘dracs_change_name_act’) in the party_verification_candidates table:
if found:
Compare updated party data with them using following processes for each entity_type:
for dracs_marriage_act - https://e-health-ua.atlassian.net/wiki/spaces/DRACS2EH/pages/1786111619318229035171/NEW+RC_Offline+comparison+of+marriage+acts+with+Parties#StepPersons+DRACS+2.0#Step-3.-Marriage-act-comparison-process
for dracs_divorce_act - https://e-health-ua.atlassian.net/wiki/spaces/DRACS2EH/pages/1786111624318229035171/NEW+RC_Offline+comparison+of+divorcemarriage+acts+with+Parties#StepPersons+DRACS+2.0#Step-3.-Divorce-act-comparison-process
for dracs_change_name_act - https://e-health-ua.atlassian.net/wiki/spaces/DRACS2EH/pages/1786465489318229035171/NEW+RC_Offline+comparison+of+changemarriage+name+acts+with+Parties#StepPersons+DRACS+2.0#Step-3.-Change-name-act-comparison-process
If a candidate does not already match the updated party’s data - deactivate them, set:
status = ‘DEACTIVATED’
status_reason = ‘PARTY_UPDATED’
updated_at = now()
If no more active candidates for name change left - update party DRACS change name verification status, set values:
dracs_name_change_verification_status = VERIFIED
dracs_name_change_verification_reason = AUTO_OFFLINE
dracs_name_change_verification_comment = null
Calculate cumulative verification status
Calculate parties cumulative verification status based on parties verification status in each stream: DRFO registry verification, DRACS death acts registry verification, DRACS name change acts registry verification according to logic described at https://e-health-ua.atlassian.net/wiki/spaces/DRACS2EH/pages/1786196877417820254221/UPD+Party+verification+status+model#Cumulative-verification-status
Set calculated status to parties.verification_status field
Create StatusChangeEvent for each active employee related to a party in event manager with new verification status if it was changed