Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

approve_request.graphml

Table of Contents
Specification

...

Get patient request details

Get declaration patient request from IL_DB.patient_request

...

If authentication_method == OFFLINE - check uploaded documents

If authentication_method IN (SMS, SMS_TRUSTEE) - verify SMS code and check uploaded documents for declaration form= OTP - verify SMS code, check uploaded documents for patient request form and add phone to db.verification.verified_phones

If authentication_method = CONFIDANT 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 = CONFIDANT 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.

Verify code

Invoke verification module to verify OTP

...

  1. Change entity status in IL_DB.patient_request to APPROVED
  2. Set updated_at - now() (Get current date-time)

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