...
- Validate mandatory query params
- first_name
- last_name
- birth_date
- Validate optional query params
- second_name
- tax_id
- birth_certificate
- phone_number
- Validate mandatory query params
Calculate age
Code Block |
---|
age = MONTHS_BETWEEN (now(), $.birth_date) / 12 |
Logic
- if tax_id is not null and age>=16
- search via
tax_id
+first_name
+last_name
- search via
- if tax_id is null and age>=16
- search via
first_name
+last_name + birth_date
- search via
- if age<16
- search via
birth_certificate
+birth_date
- search via
Calculate age
...
birth_date
...
Search existing MPI entity
...