Versions Compared

Key

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

...

Page Properties

Link

https://medicaleventsmisapi.docs.apiary.io/#reference/medical-events/diagnostic-report/get-approved-diagnostic-reports

Resource

/api/patients/{{patient_id}}/diagnostic_reports/approved

Scope

diagnostic_report:read

Components

Diagnostic Report Data Package

Microservices

API paragraph not found

Protocol type

REST

Request type

GET

Sync/Async

Async

Public/Private/Internal

Public

Logic

Ендпоїнт допускає повернення даних тільки тих діагностичних звітів, на які було видано Approval.

Filters

Filter

Values

Type

Description

Example

page

Number

Page number

2

page_size

Number

A limit on the number of objects to be returned, between 1 and 100. Default: 50

50

code

String

id of a service

09dc3ed7-2169-45d8-8fa3-d918c6839bf9

Request structure

API paragraph not foundSee on Apiary

Authorize

Request to process the request using a token in the headers

...

Request data validation

Processing

Logic

  1. Select all diagnostic reports(approvals.granted_resources.identifier.value) from patients approvals that meet the requirements:

    1. patient_id= hashed patient_id from URL

    2. status= 'active'

    3. granted_to contains one of user's employees' id

    4. granted_resources.identifier.type.coding[].code="diagnostic_report"

  2. Select this diagnostic reports from ME.patients.diagnostic_reports

  3. Add filters requested by the user (search params)

...