Purpose

This WS gives the opportunity to update external identifier of unidentified person in eHealth.

...

  1. Only authenticated and authorized OWNER, SPECIALIST, ASSISTANT, RECEPTIONIST, ADMIN employees can update external_id of preperson.

  2. Preperson can be updated only in OUTPATIENT or EMERGENCY legal entity type, if MPI identifier of preperson is being known (returns after Create preperson).

  3. Only external_id field can be updated.

  4. Update allowed for prepersons with status = ACTIVE.

...

  1. Check external_id is not empty.

    1. In case of error - return 422 (external_id should not be empty)

  2. Check external_id is unique ? (unique within le?)

    1. 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