Table of Contents |
---|
...
If authentication_method is NULL - return ErrorIf authentication
If patient have block confidant_person
- check uploaded the confidant person's document and the document which confirms the guardianship.
If person's authentication_method == OFFLINE - check uploaded documents
If authentication_method = OTP (or THIRD_PERSON) - verify SMS code , check uploaded documents for patient request form and add phone to db.verification.verified_phones
If authentication_method = THIRD_PERSON and confidant has auth.method = OTP - verify SMS code, check uploaded documents for patient request form and the document which confirms the guardianship.
If authentication_method = THIRD_PERSON and confidant has auth.method = OFFLINE - check uploaded documents for patient request form,a person's document, the confidant person's document and the document which confirms the guardianship.
...
Invoke verification module to verify OTP
...
- Change entity status in IL_DB.patient_request to APPROVED
Set updated_at - now() (Get current date-time)
Set updated_by - user_id (Extract user from token)