Purpose
This WS allows to get detailed Medication registry Job info from Admin panel.
Key points
This is a graphQl query used in the Administration panel only
Only authenticated and authorized NHS employee with appropriate scope can get Medication registry Job details.
Query returns single Medication registry Job by job identifier.
Specification
Logic
Get Medication registry job by id
Render detailed Medication registry job data according to schema
Authorize
Verify the validity of access token
in case of error - return 401 (“Invalid access token”) in case of validation fails
Verify that token is not expired
in case of error - return 401 (“Invalid access token”)
Check user scopes in order to perform this action (scope = 'medication_registry_job:read')
return 403 (“Your scope does not allow to access this resource. Missing allowances: medication_registry_job:read”) in case of invalid scope(s)
Request data validation
Validate legal entity
Extract client_id from token.
Check client scopes in order to perform this action (scope = 'medication_registry_job:read')
in case of error - return 403 (“Your scope does not allow to access this resource. Missing allowances: medication_registry_job:read”)
Check client type (type = NHS)
In case of error - return 403 ('You don't have permission to access this resource')