ЕСОЗ - публічна документація
RC_(GraphQL) Sync UNZR info (DMS)
Purpose
This WS is designed to allow NHS employee with assigned appropriate scopes to trigger a job that will get related information about person’s unzr from EIS MVS register and store it in eHealth.
Key points
This is a graphQl mutation used in Administration panel only.
Only authenticated and authorized NHS employee with appropriate scope can trigger a job to get data from EIS MVS register.
The mutation triggers a Job to get updated info from EIS MVS register into eHealth. Status and result of such request could be obtained by RC_(GraphQL) Get UNZR info (DMS) in any time.
Specification
Authorization
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 = 'unzr:write')
in case of error - return 403 (“Your scope does not allow to access this resource. Missing allowances: person:verify”) in case of invalid scope(s)
Validate legal entity
Extract client_id from token.
Check legal entity status (status = ACTIVE)
In case of error - return 409 ('client_id refers to legal entity that is not active')
Validate request
1. unzr
Validate value in the field unzr
, string, required
Check it is submitted
in case of error - return 422 ('required property <property name> was not present')
Service logic
Run the RC_UNZR info synchronization (DMS) job
Return
UnzrInfo
node in response
ЕСОЗ - публічна документація