Versions Compared

Key

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

Purpose

Returns care plan details by it's identifier in patient context. To obtain activity list for the Care plan Get Care Plan activities  should be used.

...

Table of Contents
minLevel1
maxLevel3

Purpose

Returns care plan details by it's identifier in patient context. To obtain activity list for the Care plan Get Care Plan activities  should be used.

https://e-health-ua.atlassian.net/wiki/spaces/EH/pages/2125038637/care+plan#%D0%9E%D1%82%D1%80%D0%B8%D0%BC%D0%B0%D0%BD%D0%BD%D1%8F-%D1%96%D0%BD%D1%84%D0%BE%D1%80%D0%BC%D0%B0%D1%86%D1%96%D1%97-%D0%BF%D0%BB%D0%B0%D0%BD%D1%83-%D0%BB%D1%96%D0%BA%D1%83%D0%B2%D0%B0%D0%BD%D0%BD%D1%8F

...

Request to process the request using a token in the headers

Headers

Наприклад:

Content-Type:application/json
Authorization:Bearer {{access_token}}
API-key:{{mis_client_secret}}

...

  • Extract user_id from token.

  • Check user has an active and approved employee from legal entity (token) that for which one of the conditions is TRUE:

    • has an active Approval granted by the Patient on write or read the on write or read the Care plan resource (care plan id from URL))

      • Return 403 ('Access denied') in case employee has no Approval on read or write

    • has an active declaration with the patient

      • Return 403 ('Access denied') in case employee has no Approval on read or write

      has an
      • there no active declaration with

      the patient
      • patient and none of other conditions is true

    • user belongs to the legal entity where the care_plans were created

      • Return 403 ('Access denied') in case employee belongs to another legal_entity and none of conditions above is true

Processing

Service logic

Service returns specified Care plan related to the patient, but without Care plan’s activities:

...