Versions Compared

Key

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

Purpose

Use this method to obtain the list of Medication request Requests for an employee_id.

Specification

...

Project Name

...

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

...

COVID-certificate

...

Project abreviation

...

ePrescription

...

SVC

...

Developer

...

API paragraph not found

...

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

...

Project Manager

...

API paragraph not found

...

Tech Lead

...

API paragraph not found

...

Product Owner

...

API paragraph not found

...

Вusiness analyst

...

API paragraph not found

...

Status

Status
colourGreen
titleAPPROVED
Status
colourGreen
titleAPPROVED

...

Version

...

API paragraph not found

...

1.0

...

Date of release

...

API paragraph not found

...

...

Link

...

Table of Contents

Purpose

Use this method to obtain the list of Medication request Requests for an employee_id.

Specification

Page Properties

Link

https://uaehealthapi.docs.apiary.io/#reference/public.-reimbursement/medication-request-requests/get-medication-request-requests

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

Resource

/api/medication_request_requests

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

Scope

medication_request_request:read

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

Components

ePrescription, Reimbursement

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

Microservices

API paragraph not found

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

Protocol type

REST

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

Request type

GET

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

Sync/Async

Sync

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

Logic

  1. Verify the validity of access token:

    1. return 401 in case validation fails.

  2. Check user scopes in order to perform this action (scope = 'medication_request_request:read'):

    1. return 403 in case invalid scope(s).

  3. Get `my_party_id`  from `$.context.user_id`

    1. return 500 in case ("Not found party for this user!") . 

  4. Get list of employees for this `party_id`  & `$.context.legal_entity_id` (if not NULL).

  5. Search Requests for Medication request by filters in WS url:

    1. SELECT * FROM requests_for_medication_request WHERE <filters>

    2. optional filters:

      1.  list employee_id (uuid). By default returned all data.

      2. person_id (uuid). By default returned all data.

      3.  status (Dictionary:  REQUEST_FOR_MEDICATION_REQUEST_STATUS). By default returned all rows with status=NEW.

      4. limit (limit response size - quantity of innm objects). By default returned 50 objects.

      5. starting_after (cursor to fetch next page)

      6. ending_before (cursor to fetch previous page)

...