There are three two options of the request payload: $mpi_id
- Check existence of $person_id in MPI - service call
- if doesn't exist - return error
- call the Register New Declaration method
+ $patient_data or $patient_data only
- $patient_data
- call MPI.Add MPI record method to get $mpi_id
- call the Register New Declaration method
- $mpi_id + $patient_data
- call MPI.Edit MPI record
- call the Register New Declaration method
- TODO: decide how and where we should store confident_persons data
- TODO: add authorization