Table of Contents |
---|
Specification
...
Verificate sms - from third_person. Invoke verification module to verify OTP (OTP Verification) or verificate documents, if third_person.auth_method.type = OFFLINE
Invoke Initialize OTP to generate one time password and send it to person number( Phone_number: mpi.person_auth_method.valuephone_number, where person_id = $.person_id and id_primarydefault=True). At this stage, the patients receive an SMS message. and id_primary=True
At response return massive of person’s auth_method
Update authentication method request
Change entity status in IL_DB.authentication_method_request to APPROVED
Set updated_at - now() (Get current date-time)
Set updated_by - user_id (Extract user from token)
...
Verificate sms - from person. Invoke verification module to verify OTP (OTP Verification)
Update mpi
Add to table
person_auth_methods
row with type =third_person
, value = id (third_person_id), alias, is_primary = FalseStart date: start_date = Current_date()
End date: if (person.age < 18) { end_date = min(birth_date + 18y - 1d, start_date + third_person_term);} else { end_date = start_date + third_person_term;}