...
- Validate mandatory query params
- first_name
- last_name
- birth_date
- Validate optional query params
- tax_id
- birth_certificate
- phone_number
- Validate mandatory query params
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
Code Block |
---|
age = MONTHS_BETWEEN (now(), $.birth_date) / 12 |
Search existing MPI entity
...