Purpose
Method returns a list of merge requests. Service returns only merge requests related to the same legal entity as the user.
Specification
Logic
Only authenticated and authorized SPECIALIST, ASSISTANT or RECEPTIONIST employees can use this WS.
Usage of this WS allowed in EMERGENCY or OUTPATIENT legal entities.
Service returns only merge requests related to the same legal entity as the user
Search by next parameters allowed:
status
master_person_id
merge_person_id
Filters
See on Apiary
Authorize
Verify the validity of access token
Return 401 in case validation fails
Check scopes in order to perform this action (scope = 'merge_request:read')
Return 403 in case invalid scope(s)
Headers
Content-Type:application/json
Authorization:Bearer {{access_token}}
api-key:{{secret}}
Request data validation
API paragraph not found
Processing
Prepare response
Service returns only merge requests related to the same legal entity as the user
Extract client_id from token
Return entries filtered by legal_entity_id and query params from merge_requests table
Response structure
See on Apiary
Example: