Table of Contents |
---|
Service logic
...
If authentication_method is NULL - return Error
If authentication_method == OFFLINE - check uploaded documents
If authentication_method IN (SMS, SMS_TRUSTEE) - verify SMS code and check uploaded documents for declaration form
Verify code
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)