Purpose
This WS is designed to search (get list) Requests for Medication request.
APIary
get-requests-for-medication-request-list
Input parameters (filters)
- employee_id (optional)
- legal_entity_id(optional)
- status (optional)
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 filters in WS url:
- SELECT * FROM requests_for_medication_request WHERE <filters>
- optional filters:
- employee_id (uuid). By default returned all data.
- status (Dictionary: REQUEST_FOR_MEDICATION_REQUEST_STATUS). By default returned all rows with status=NEW.
- limit (limit response size - quantity of innm objects). By default returned 50 objects.
- starting_after (cursor to fetch next page)
- ending_before (cursor to fetch previous page)
- mandatory (hidden) conditions:
- if employee_id == NULL in payload, use condotion: legal_entity_id = $.context.legal_entity_id
Response (output)
- Return array with responce structure from
- id
- status
- receipt_period_type
- receipt_age_type
- created_at
- started_at
- ended_at
- dispense_valid_from
- dispense_valid_to
- legal_entity_id
- division_id
- employee_id
- person_id
- innm_id
- innm_route
- innm_dosage
- innm_container_dosage
- request_qty
- If according to filters requests are not found, WS returns empty data array.
- WS also returns pagination data - for technical info.