Versions Compared

Key

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

Purpose

This WS is designed to reject previously created Medication request Request.

Key points

  1. Only authenticated and authorized user with appropriate scope can reject Medication request Request.

  2. Medication request Request can be rejected only from ‘NEW' status.

Specification

...

Project Name

...

Електронний рецепт

...

COVID-certificate

...

Project abreviation

...

ePrescription

...

SVC

...

Developer

...

Edenlab

...

Розробник методу API. Наприклад, Edenlab

...

Project Manager

...

Mari Hulko (Unlicensed)

...

Tech Lead

...

Mynchenko Andrii (SoE eHealth)

...

Product Owner

...

Igor Kostyria

...

Вusiness analyst

...

Iryna Lishtaba (SoE eHealth) Oleksandr Zhuk (SoE eHealth) Oksana Demchenko

...

Status

Status
colourGreen
titleAPPROVED
Status
colourGreen
titleAPPROVED

...

Version

...

API paragraph not found

...

1.0

...

Date of release

...

PROD

...

Table of Contents
minLevel1
maxLevel7

Purpose

This WS is designed to reject previously created Medication request Request.

Key points

  1. Only authenticated and authorized user with appropriate scope can reject Medication request Request.

  2. Medication request Request can be rejected only from ‘NEW' status.

Specification

Page Properties

Link

https://ehealthmisapi1.docs.apiary.io/#reference/public.-reimbursement/medication-request-requests/reject-medication-request-request

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

Resource

/api/medication_request_requests/{{id}}/actions/reject

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

Scope

medication_request_request:reject

Зазначається потрібний scopeScope для доступу

Components

ePrescription

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

Microservices

API paragraph not found

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

Protocol type

REST

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

Request type

PATCH

Тип HTTP методу, який використовується запитомзапиту API, наприклад: GET, POST | GET…, PATCH…

Sync/Async

Sync

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

Logic

API paragraph not found

...

  • is an author of the Medication request request (medication_request_request.employee_id);

  • has an approval on write Care plan if Medication request request based on the Care plan (medication_request_request.based_on);

  • is med_admin from legal entity where Medication request request is created

    • in case of error - return 409 ("Employee is not author of medication request request, doesn't have approval or required employee type").

Validate transition

  • Get status of Medication request request by $.id in IL DB. Check that Medication request request is in status 'NEW'

    • in case of error - return 409 ("Invalid status Request for Medication request for reject transition!")

...