...
- Resend SMS on Approval is allowed for persons with personfor person_authentication_method .type = OTP or THIRD_PERSON (where third_person.person_authentication_method.type = OTP)which was specified on Create Approval in the authorize_with field.
- Return 409 in case of validation fails (message "Resend SMS is not allowed for this authentication method")
...
- Search for approval by patient_id + approval_id
- Validate person by patient.id
- In case error return 404 (message "Person not found")
- Validate approval by approval.id
- In case error return 404 (message "Approval with such id is not found")
- Validate person by patient.id
- Send SMS with OTP-code to persons person_authentication_methodphone from approvals.urgent.phone_number