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

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Purpose

This WS is designed to return Request for Medication request detail.

APIary

get-request-for-medication-request-by-id

Input parameters (filters)

  • id 

Logic WS

  1. Verify the validity of access token
  2. Check user scopes in order to perform this action (scope = 'request_for_medication_request:read')
  3. Search Requests for Medication request by id in WS url: 

    SELECT * FROM requests_for_medication_request 
    	WHERE id=$.id 
    		AND legal_entity_id = $.context.legal_entity_id

Response (output)

  1. Return object with responce structure from WS Create Medication Request SP.
  2. If according to filters requests are not found, WS returns 404 error message ("Not found request!").
  • No labels