Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Search existing MPI entity

Search only active persons - MPI.persons.is_active=true.

We are looking for such parameters:

  1. tax_id and phone_number
  2. tax_id and last_name( by MetaPhoneRu)
  3. birth_certificate and phone_number
  4. birth_certificate and last_name( by MetaPhoneRu)
  5. phone_number and last_name( by MetaPhoneRu)
  6. birth_date and last_name( by MetaPhoneRu)  and first_name( by MetaPhoneRu)

After the search we get the clusters (maximum 6) and display them one by one - persons from the first cluster, then from the second, etc.

And within each cluster we sort:

  1. last_name_distance == 0
  2. birth_date_distance + first_name_distance == 0
  3. last_name_distance + first_name
  4. _distance + birth_date
  5. _distance + tax_id_distance (Ascending)


Return empty array if no data found

Return only requested params (if equal tax_id, birth_certificate, birth_date), id, first_name, second_name, last_name, birth_place and merged_ids if data found.