Purpose
This WS gives the opportunity to update external identifier of unidentified person in eHealth.
...
Only authenticated and authorized OWNER, SPECIALIST, ASSISTANT, RECEPTIONIST, DOCTOR, ADMIN employees can update external_id of preperson.
Preperson can be updated by any only in OUTPATIENT legal entity type except PHARMACY, if person_id MPI identifier of preperson is being known (returns after Create preperson).
Only external_id field can be updated.
Update allowed for prepersons with status = ACTIVE.
...
Check external_id is not empty.
In case of error - return 422 (external_id should not be empty)
Check external_id is unique ? (unique within le?)
In case of error - return 422 (external_id already exists) ?
Update object in DB (mongo)
...