...
Page Properties |
---|
|
Link | API paragraph not found | Посилання на Apiary або Swagger | Resource | API paragraph not found | Посилання на ресурс, наприклад: /api/persons/create | Scope | person:read | Scope для доступу | Components | API paragraph not found | Зазначається перелік бізнес компонентів, які використовують цей метод, наприклад: ePrescription | Microservices | API paragraph not found | Перелік мікросервісів, які використовує метод API, наприклад: Auth, ABAC | Protocol type | API paragraph not found | Тип протоколу, який використовується запитом, наприклад: SOAP | REST | Request type | API paragraph not found | Тип запиту API, наприклад: GET, POST, PATCH… | Sync/Async | API paragraph not found | Метод є синхронним чи асинхронним? | Public/Private/Internal | Private | Потрібно зазначити тип методу за ступенем доступності |
|
Expand |
---|
title | unverifiedPersonsQuery |
---|
|
Code Block |
---|
| "Reads and enables pagination through a set of unverified `Person`."
unverifiedPersons(
"A condition to be used in determining which values should be returned by the collection."
filter: UnverifiedPersonFilter
"The method to use when ordering collection items."
orderBy: PersonOrderBy
"Read all values in the set after (below) this cursor."
after: String
"Read all values in the set before (above) this cursor."
before: String
"Only read the first _n_ values of the set."
first: Int
"Only read the last _n_ values of the set."
last: Int
): PersonConnection!
"""
Fields to filter unverified Persons
"""
input UnverifiedPersonFilter {
"Values to show whether person is unverified"
verificationStatus: UnverifiedPersonStatus
}
"""
List of values of `PersonVerificationStatus` that represent persons who has no decision about verification yet.
"""
enum UnverifiedPersonStatus {
"Status `VERIFICATION_NEEDED` for an unverified person."
VERIFICATION_NEEDED
"Status `IN_REVIEW` for an unverified person."
IN_REVIEW
} |
|
...
Get list of records from persons table (mpi db):
with verification status VERIFICATION_NEEDED
(with reason RULES_TRIGGERED
) or IN_REVIEW
, additionally filtered by search params and
which have is_active
= true
and
status
= active
Render list with Person data according to schema.
Request structure
See on ApiaryAPI paragraph not found
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')
API paragraph not found
Request data validation
Extract client_id from token.
Check client has scope person:read
Check legal entity type = NHS
...
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
See on ApiaryAPI paragraph not found
Post-processing processes
API paragraph not found
HTTP status codes
API paragraph not found