...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Table of Contents |
---|
Specification
Apiary | |
JSON Schema response |
...
This WS is designed to recall (cancel) previously created and signed Medication request (patch).
Input parameters (filters)
- id
- reason
Authorize
- Verify the validity of access token
- Check user scope (scope = 'medication_request:reject') in order to perform this action
- In case error - generate 401 response
...
- Update (Set values) Medication request
- status = REJECTED
- updated_by = user_id
- updated_at = timestamp
Add status to event manager
After status was changed (status = REJECTED) - add new status to event_manager
field | value |
---|---|
event_type | StatusChangeEvent |
entity_type | MedicationRequest |
entity_id | $.id |
properties.status. | $.status |
event_time | $.update_at |
changed_by | $.changed_by |
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_REJECT_MEDICATION_REQUEST".
- Sending SMS for MPI via service