Table of Contents |
---|
Purpose
This WS is designed to get list of persons that require a decision about its verification by NHSwhich should be verified manually by authorized NHS employee.
Statements
This is a graphQl query method used in Administration panel only.
Only authenticated and authorized NHS employee with appropriate scope can
...
review list of persons who according to predefined automatic rules should be verified manually.
User can filter list by search params
...
Authorize
Verify the validity of access token
in case of error return 401 ('Access denied')
Check user scope person:read in order to perform this action
in case of error generate 403 response ('You don’t have permission to access this resource: person:read')
Validate legal entity
Extract client_id from token.
Check client has scope person:read
in case of error - return 403 (“You don’t have permission to access this resource: person:read”)
Check legal entity type = NHS
In case of error - return 403 ('You don’t have permission to access this resource')
...
Specification
Page Properties | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||
|
Expand | ||||
---|---|---|---|---|
| ||||
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
Authorize
Verify the validity of access token
in case of error return 401 ('Access denied')
Check user scope person:read in order to perform this action
in case of error generate 403 response ('You don’t have permission to access this resource: person:read')
Search params
There is following search parameters allowed:
verificationStatus. Search by cumulative verification status values: statuses:
IN_REVIEW
,VERIFICATION_NEEDED
(with reasonRULES_TRIGGERED
),IN_REVIEW
(with any reason).
...
,
NOT_VERIFIED
dracsDeathVerificationStatus. Search by DRACS verification statuses:
IN_REVIEW
,VERIFICATION_NEEDED
,NOT_VERIFIED
dracsDeathVerificationReason. Search by DRACS verification reasons:
MANUAL_CONFIRMED
,MANUAL_NOT_CONFIRMED
.manualRulesVerificationStatus. Search by NHS manual rules verification statuses:
IN_REVIEW
,VERIFICATION_NEEDED
,NOT_VERIFIED
streamOption. Select persons who:
NEED_TO_BE_VERIFIED_BY_DRACS_STREAM
option - show persons who need to be verified by DRACS stream onlyNEED_TO_BE_VERIFIED_BY_MANUAL_RULES_STREAM
option - show persons who need to be verified by manual rules stream onlywithout filter
Service logic
Get list of records from persons table (mpi db):
Persons who need NHS verification by DRACS stream:
with dracs_death_verification_status in
IN_REVIEW
OR with dracs_death_verification_status in
NOT_VERIFIED
:who have declaration AND stay in
NOT_VERIFIED
status more than 30 dayswho do not have declaration
OR with dracs_death_verification_status
VERIFICATION_NEEDED
(with reasons:MANUAL_CONFIRMED
,MANUAL_NOT_CONFIRMED
)
OR Persons who need NHS verification by manual rules stream:
with nhs_verification_status
IN_REVIEW
OR with nhs_verification_status
VERIFICATION_NEEDED
(with reasonRULES_TRIGGERED
)
...
OR with drfo_verification_status
NOT_VERIFIED
additionally filtered by search params
...
AND which have
is_active
=true
...
AND
status
=active
Render list with Person data according to schema.
Request structure
API paragraph not found
Headers
API paragraph not found
Request data validation
Extract client_id from token.
Check client has scope person:read
in case of error - return 403 (“You don’t have permission to access this resource: person:read”)
Check legal entity type = NHS
In case of error - return 403 ('You don’t have permission to access this resource')
Processing
There is following search parameters allowed:
verificationStatus. Search by verification status values:VERIFICATION_NEEDED
(with reasonRULES_TRIGGERED
),IN_REVIEW
(with any reason).
Comment: for optimal code selection is conducted on wider clause, such as VERIFICATION_NEEDED, IN_REVIEW with any of these two reasons: RULES_TRIGGERED
, MANUAL.
Response structure
API paragraph not found
Post-processing processes
API paragraph not found
HTTP status codes
API paragraph not found