Table of Contents |
---|
...
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) ?
Generate person_id
Generate person_id (will be returned in response). Ensure there is no such person_id in MPI.persons
Generate patient_id to save it in patients collection.
...
Parameter | Source | Description |
---|---|---|
_id | string | Autogenerated hash. |
status | string | Status. By default is “active” |
external_id | Request: external_id | Identifier from external system. Required |
note | Request: note | Used as comment to specify preperson in free way. Optional |
death_date | timestamp | Date of death, sets by deactivate preperson process. By defauly is null. |
inserted_by | uuid | Extract user from token |
inserted_at | timestamp | Get current date-time |
updated_by | uuid | Extract user from token |
updated_at | timestamp | Get current date-time |
...