Table of Contents |
---|
...
Page Properties | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||
|
Logic
API paragraph not found
Input parameters
Input parameter | Values | Type | Description | Example |
---|---|---|---|---|
patient_id | String | Unique patient identifier |
| |
device_request_id | String | Unique device request identifier |
|
Request structure
API paragraph not found
...
Get person's authentication_method of MPI
If authentication_method == OTP:
Generate text SMS with template
TEMPLATE_SMS_FOR_CREATE_DEVICE_REQUEST
.
Call SMS timeout procedure to check if resending is allowed using:
- DR_MAX_ATTEMPTS_COUNT as MAX_ATTEMPTS_COUNT
- DR_SEND_TIMEOUT as SEND_TIMEOUT
- "device_request" as entity_name
- device_request_id as entity_idin case of error - return 429 ("Sending SMS timeout. Try later. Next attempt will be available at <attempts.oldest.value + SEND_TIMEOUT>")
Send SMS to a person
...