Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
minLevel1
maxLevel7

...

  1. This graphQl method is used in Administration panel only

  2. Only authenticated and authorized NHS employee with appropriate scope can verify persons.

  3. If person was marked as NOT VERIFIED by NHS employee - there will be some limitations for such record. It is not possible to create new declaration and some medical events until appropriate changes conducted and documents provided.

  4. NHS employee is obliged to provide comment if he is setting NOT VERIFIED verification status.

Specification

Expand
titleindex.graphql
Code Block
languagegraphql
"Updates manual rules verification status for a single `Person` by NHS using its globally unique ID."
  updatePersonManualRulesVerificationStatus(
    input: UpdatePersonManualRulesVerificationStatusInput!
  ): UpdatePersonManualRulesVerificationStatusPayload

...

...

  • if verification_status = NOT_VERIFIED

    • in case of error - return 409 ('verification status comment is required')

Service logic

  1. Set fields person_verifications table (mpi database):

    1. nhs_verification_status = $.verification_status

    2. nhs_verification_comment = $.verification_comment

    3. nhs_verification_reason = MANUAL

    4. updated_by = user_id (from token)

    5. updated_at = current timestamp

  2. Calculate cumulative verification status based on persons verification status in each stream:
    Manual NHS verification, DRFO registry verification, DRACS death acts registry verification according to logic described at https://e-health-ua.atlassian.net/wiki/spaces/RNOKPPEH/pages/1727112940916755458061/Person+verification+status+model_EN#Cumulative-verification-status :

    • Set calculated status to persons.verification_status field

    • Create StatusChangeEvent in event manager with new verification status if it was changed

  3. Create StatusChangeEvent in event manager with verification_status