Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

Table of Contents
maxLevel3
minLevel1

Purpose

This WS is designed to verify approval on entity, which aggregate other entities (episode_of_care, diagnostic_report, care_plan), OR forbidden group OR diagnoses group, OR on service_request including it’s permitted_resources OR on cancel for encounter and procedure OR patient.

...

Expand
titleRequest example


Code Block
{
  "code": 3782
}



Authorize

  1. Verify the validity of access token

  2. Check user scope approval:create in order to perform this action


Headers

Наприклад:

  • Content-Type:application/json

  • Authorization:Bearer d368a4b0-4a0e-457a-b267-32359fa6288f


Logic

  1. If authentication_method_current.type = OTP

    1. system checks verification code via otp_verification service PATCH /verifications/:phone_number/actions/complete

    2. if verification code matches - change status to active

    3. If not - return error

  2. If authentication_method_current.type = offline

    1. change status to active

HTTP status codes

Page Properties


HTTP status code

Message

What caused the error

 200

 Response



...