Specification
TBD
Service logic
Only authenticated and authorized OWNER, ADMIN, RECEPTIONIST, DOCTOR employees can use this WS.
Usage of this WS allowed in EMERGENCY, MSP, MSP_PHARMACY, OUTPATIENT, PRIMARY_CARE legal entities.
Service returns only merge requests related to the same legal entity as the user
Authentication
Verify the validity of access token
Return 401 in case validation fails
Check scopes in order to perform this action (scope = 'preperson_merge_request:read')
Return 403 in case invalid scope(s)
Prepare response
Service returns only preperson merge requests related to the same legal entity as the user
Extract client_id from token
Return entries filtered by client_id and query params