...
Check there is no entry in MPI.persons with this person_id
In case error - return 422 (Person_id doesn’t belong to unidentified personpreperson)
Convert person_id into patient_id. Check patient_id exists in medical_data.patients collection
In case error - 404
Check preperson has status=active
In case error - return 422 (Unidentified person Preperson is not active)
Validate external_id
...