Versions Compared

Key

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

Table of Contents
Status

Page Properties


Specification
Status
colourRedGreen
titlespecsdone
Apiary
Status
colourGreen
titledone
JSON Schema request
Status
colourGrey
titleabsent
JSON Schema response
Status
colourRed
titlespecs


...

Input parameters (filters)

  • id 

Validate request

Validate FK

  1. Validate id - medication_request_request_id exists
    • Return 422 in case validation fails (422 EView)

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: 

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


...