...
Page Properties | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||
|
Purpose
This WS is designed to complete initialize person documents uploading proccess through person information system (PIS).
...
This method is used only by PIS.
This method checks returns list of documents that needs to be uploaded for person and urls. In case all person no documents were must be uploaded - persons nhs verification status is updatedempty list is returned.
Person is obtained from user that performs method.
Logic
Service logic
GService logic
Get list of person documents that must be uploaded to media content storage (for each type of documents, if couple of rules worked - only one file is expected):
Call /wiki/spaces/PCAB/pages/17415995422 , send
person_id
= person.id andconfidant_person_id
=applicant_person_id
(from token)
in case if method returns “ok”:Check for documents with name
confidant_person.{confidant_person_id}.documents_relationship.[:].{type}
If one of persons document has type = ‘BIRTH_CERTIFICATE_FOREIGN’ and there is no same document in {person.confidant_person.[:].documents_relationship.[:]}
and persons age < no_self_auth_age global parameter value then
Check for document with name
person.BIRTH_CERTIFICATE_FOREIGN
If one of persons document has type = ‘PERMANENT_RESIDENCE_PERMIT’ and persons age >= no_self_auth_age global parameter value then
Check for document with name
person.PERMANENT_RESIDENCE_PERMIT
If persons authentication method = ‘OFFLINE’ or ‘THIRD_PERSON’ authentication method = ‘OFFLINE’
Check for documents with name
person.{documents.[:].type} or third_person.{third_person.documents.[:].type}
If person.unzr field is not empty and first 8 digits of unzr != persons birth_date
Check for document with name
person.unzr
If persons age is greater then no_self_registration_age global parameter, but less then person_full_legal_capacity_age global parameter
and one of persons documents has type from PIS_PERSON_LEGAL_CAPACITY_DOCUMENT_TYPESconfig parameter thenGet type of document that has been found
AND check for documents with nameperson.{type}
Check existence of each document in existing media content storages for person:
persons
person_requests
authentication_method_requests
Generate signed urls for each document that must be uploaded but does not exist in persons media content storage.
Render a response according to specification.
Configuration parameters
N/A
...