Purpose
This WS gives the opportunity to update external identifier of unidentified person in eHealth.
...
Only authenticated and authorized OWNER, SPECIALIST, ASSISTANT, RECEPTIONIST, ADMIN employees can update external_id of preperson.
Preperson can be updated only in OUTPATIENT or EMERGENCY legal entity type, if 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)
...
Parameter | Source | Description |
---|---|---|
external_id | Request: external_id | Identifier from external system, required. Get from request body. Required |
updated_at | timestamp: now() | Get current date-time |
updated_by | uuid | Extract user from token |