Versions Compared

Key

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

...

  1. Validate that DS belongs to the requester of encounter

  2. Check if service request based on Care plan if not match:

    1. Determine at least one of the user employees has an active approval on write this Care plan 

      1. in case of error - return 409 ('Employees related to this party_id not in current MSP')

3.1. Determine the party_id associated with requester ($.requester.identifier.value)

...

  1. Save signed content to media storage

  2. Update service request status to Recalled (update also updated_at, updated_by)

  3. Write record to status history

  4. Send SMS to patient (if authentication_method_current == SMS, do NOT send sms in case performer is present in SR)

  5. Send SMS to patient (if authentication_method_current == SMS)

    1. Template - TBD

  6. Async! Revoke all approvals made by this service request

  7. if the service request is based on activity with quantity:

    1. Recalculate and set remaining_quantity for the activity as described at PreQualify Service Request | Validate service request

...