Status
...
Page Properties |
---|
Specification | Status |
---|
| |
---|
colour | RedGreen |
---|
title | specsDone |
---|
|
| Apiary | Status |
---|
| |
---|
colour | RedGreen |
---|
title | specsDone |
---|
|
| JSON Schema request | | JSON Schema response | |
|
Purpose
Purpose
This WS is designed to resend SMS for person (with verification_type = OTP) with info from Medication request. Its must be equal step at process `SignMedicationRequestRequest`.
APIary
resend-medication-request
Input parameters (filters)
Authorize
- Verify the validity of access token
- Check user scope (scope = 'medication_request:resend') in order to perform this action
- In case error - generate 401 response
Validation status
- For info - status charts: Medication_request
- Get Medication request status by $.id
- Check status == ACTIVE
- if invalid - return 403 error (message: "Invalid status Medication request for resend action!")'
Send SMS for person
- Get authentication_method of MPI
- If authentication_method == OTP - send SMS:
- Generate text SMS (call Man method - templates rendering service with template "TEMPLATE_SMS_FOR_SIGN_MEDICATION_REQUEST" (!!! TBD).
- Sending SMS for MPI via service .... (!!! TBD)