/
RCC_(CR-431, CSI-2977) PIS. Create Declaration request
  • In progress
  • ЕСОЗ - публічна документація

    RCC_(CR-431, CSI-2977) PIS. Create Declaration request

    Check active patient requests

    Do not create declaration request if there are active patient requests

    • Search for active person requests (IL.person_requests) by person_data_id (IL.person_requests.person_data_id) where status in (NEW, APPROVED)

      • If there is at least one active request - return 409 ('It is prohibited to create declaration request when there is unfinished person request')

    Valide Document types

    • check person_documents.type is in config parameter:

      • if person age < prm.global_parameters.no_self_auth_age check existence DECLARATION_NO_SELF_AUTH_AGE_DOCUMENT_TYPES

        • in case error - return 422 ("For person <%{years}years declaration request can be create after added birth certificate”)

      • if person age > prm.global_parameters.no_self_auth_age check existence DECLARATION_SELF_AUTH_AGE_DOCUMENT_TYPES

        • in case error - return 422 ("Declaration request can’t be create for person with such document type, need one of %{document type from DECLARATION_SELF_AUTH_AGE_DOCUMENT_TYPES}”)

    Service logic

    ….

     

    Related content

    RCС_(CR-431, CSI-2977) Create declaration request v3
    RCС_(CR-431, CSI-2977) Create declaration request v3
    More like this
    RC_PIS. Create Declaration request (Warranty period)
    RC_PIS. Create Declaration request (Warranty period)
    More like this
    RC (CSI-2819) PIS. Create Declaration request_EN
    RC (CSI-2819) PIS. Create Declaration request_EN
    More like this

    ЕСОЗ - публічна документація