ЕСОЗ - публічна документація

[deprecated] Get Medication Request Details

Purpose

This method is designed to get Medication Request details in order to show current request status, issued medication and its quantity

Specification

TBD

WS logic

Authorize user

  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:read')
    1. Return 403 in case invalid scope(s)

Check user context

Return response to user limited by context from user's token

Token type
Limitation
TOKENS_TYPES_PERSONALLimited by Legal Entity (ID)
TOKENS_TYPES_ADMINNo limitations
TOKENS_TYPES_PHARMACYNo limitations

Get medication request details

  1. Validate input parameter(s):
    1. id (PK) - return 404 in case no records in DB with this ID
  2. Get medication request
  3. Enrich medication request with external data:
    1. (view) person - get data from MPI
    2. (view) legal entity - get data from PRM
    3. (view) employee - get data from PRM

Qualify medication request

  1. Invoke Qualify Medication request by ID_EN
  2. Enrich response with qualification result

ЕСОЗ - публічна документація