Table of Contents |
---|
...
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
Check uploaded documents
Invoke Media Content Storage to check documents exist
Generate printout form
Invoke MAN to render print form.
Request mapping:
Parameter | Source |
---|---|
id | PATIENT REQUEST |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
curl --request POST \
--header 'Accept: text/html' \
--header 'Content-Type: application/json' \
{:host}/templates/{:patient_request_printout_id}/actions/render |
Set IL.patient_request.printout_content:
Code Block | ||
---|---|---|
| ||
MANResponse.$.data |
Change patient request
- 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)