Versions Compared

Key

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

Table of Contents
minLevel1
maxLevel3

...

Use this method to approve previously created Declaration Request.

Specification

Link

https://ehealthmisapi1.docs.apiary.io/#reference/public.-medical-service-provider-integration-layer/declaration-requests/approve-declaration-request-v3

Resource

/api/v3/declaration_requests/{{id}}/actions/approve

Scope

declaration_request:approve

Components

Declarations

Using Dictionaries

API paragraph not found

Using Microservices

API paragraph not found

Protocol type

REST

Request type

PATCH

Sync/Async

Sync

Public/Private/Internal

Public

...

  1. Validate request using JSON schema

    1. In case validation failed - generate 422 error

Expand
Code Block
{
  "meta": {
  "$schema
    "code": "422",
    "url": "httphttps://json-schemaexample.org/draft-04/schema#com/resource",
      "type": "object",
      "propertiesrequest_id": {
    "verification_code"6617aeec-15e2-4d6f-b9bd-53559c358f97#17810"
  },
  "error": {
          "type": "stringrequest_malformed",
    }
  },
  "required": [
    "verification_code"
  ],
  "additionalProperties": false
}
    "message": "This doctor has X declarations and could not sign more"
  }
}

Validation data request

Validate person verification status

  • validate patient's verification_status is not equal to NOT_VERIFIED.

    • in case of error return 409, "Patient is not verified"

Processing

Get declaration request details

...