...

  • search persons in mpi, which have the same last name OR first name OR document OR son or phonesame tax_id or documents.number or authentication number.
    . Then we create pairs of new person with people from cluster and send to the model.
    • in case deduplication model gave score <  ONLINE_PERSON_UPDATE_SCORE, create new person
    • else return error 409, "such person with  $.person_id is in mpi. Update this person.

...