Specification
Service logic
Only authenticated and authorized SPECIALIST 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
Authentication
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)
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