Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Purpose

This WS intended to cancel of the patient approval.

...

  • Get approval by patient_id and approval id from approvals collection (MongoDB)

  • Update approvals status (update also updated_at, updated_by)

  • If patient's authentication method is OTP or third_person.OTP, send SMS to that patient with info about cancelling.

  • Render a response according to specification.

Add status to event manager

After status was changed (status = CANCELLED) - add new status to event_manager

field

value

properties.status.new_value

$.status

event_type

StatusChangeEvent

event_time

$.update_at

entity_type

Approval

entity_id

$.id

changed_by

$.changed_by