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

Will be DEPRECATED_Get Medication Dispenses

Purpose

This method is designed to get all Medication Dispense limited by user context

Status Charts (reimbursement)

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_dispense:read')

    1. Return 403 in case invalid scope(s)

Validate request

Get legal entity from token

  1. Extract legal_entity_id (client_id) from token

Validate (apply) context

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

Token type

Limitation

Token type

Limitation

TOKENS_TYPES_PERSONAL

Limited by Legal Entity (ID)

TOKENS_TYPES_ADMIN

No limitations

Query data

  1. Get all records from medication_dispenses filtered by:

    1. only active records: is_active = true

    2. context: user context

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