Table of Contents

Specification

...

  1. Verificate sms - from third_person. Invoke verification module to verify OTP (OTP Verification) or verificate documents, if third_person.auth_method.type = OFFLINE

  2. 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

  3. At response return massive of person’s auth_method

  4. Update authentication method request

    1. Change entity status in IL_DB.authentication_method_request to APPROVED

    2. Set updated_at - now() (Get current date-time)

    3. Set updated_by - user_id (Extract user from token)

...

  1. Verificate sms - from person. Invoke verification module to verify OTP (OTP Verification)

  2. Update mpi

    1. Add to table person_auth_methods row with type = third_person, value = id (third_person_id), alias, is_primary = False

    2. Start date: start_date = Current_date()

    3. 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;}