Versions Compared

Key

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

...

Page Properties

Link

https://ehealthmisapi1.docs.apiary.io/#reference/public.-medical-programs/medical-program/get-medical-program-by-id

Посилання на Apiary або Swagger

Resource

/api/medical_programs/{{id}}

Посилання на ресурс, наприклад: /api/persons/create

Scope

medical_program:read

Scope для доступу

Components

Medical Programs

Зазначається перелік бізнес компонентів, які використовують цей метод, наприклад: ePrescription

Microservices

API paragraph not found

Перелік мікросервісів, які використовує метод API, наприклад: Auth, ABAC

Protocol type

REST

Тип протоколу, який використовується запитом, наприклад: SOAP | REST

Request type

GET

Тип запиту API, наприклад: GET, POST, PATCH…

Sync/Async

Sync

Метод є синхронним чи асинхронним?

Public/Private/Internal

Public

...

  • Get Medical Program by id

  • Render a response according to specification

...

API paragraph not found

Input parameters

Input parameter

Values

Type

Description

Example

id

UUID string

Internal medical program ID. Required.

c7d52544-0bd4-4129-97b0-2d72633e0490

...

Dictionaries

No

Dictionaries

API paragraph not found

Request structure

...

  • LICENSE_TYPE

  • clinical_impression_patient_categories

  • MEDICAL_PROGRAM_TYPE

  • FUNDING_SOURCE

  • MR_BLANK_TYPES

Authorize

  • Verify the validity of access token

    • in case of error - return 401 (“Invalid access token”) in case of validation fails.

  • Verify that token is not expired

    • in case of error - return 401 (“Invalid access token”).

  • Check user scopes in order to perform this action (scope = 'medical_program:read')

    • return 403 (“Your scope does not allow to access this resource. Missing allowances: medical_program:read”) in case of invalid scope(s).

...

  • Get Medical Program identifier from the URL.

  • Check it exists in DB

    • in case of error - return 404 error (message: "Medical program does not exist ").

Processing

...

Response structure

See on Apiary

...

Page Properties

HTTP status code

Message

What caused the error

200

Response

 

401

Invalid access token

 

403

Your scope does not allow to access this resource. Missing allowances: medical_program:read

404

Medical program does not exist

Backward compatibility

...