Versions Compared

Key

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

...

  1. Check person_id does not exist in mpi.persons

    1. In case error - return 422 (Person_id doesn’t belong to unidentified person)

  2. Generate patient_id from person_id. Check if patient_id exists in patients collection.

    1. In case of error - return 404

Prepare response

Render response