...
...
...
...
Table of Contents |
---|
Page Properties | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Purpose
This WS is designed to return Request for Medication request detail.
APIary
get-medication-request-request-by-id
Input parameters (filters)
- id
Validate request
Validate FK
- Validate id - medication_request_request_id exists
- Return 422 in case validation fails (422 EView)
Logic WS
- Verify the validity of access token
- Check user scopes in order to perform this action (scope = 'request_for_medication_request:read')
Search Requests for Medication request by id in WS url:
Code Block language sql SELECT * FROM requests_for_medication_request WHERE id=$.id AND legal_entity_id = $.context.legal_entity_id
Response (output)
- Return object with responce structure from WS Create Medication Request SP.