...
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.
Save object to
...
DB
Insert patient and set of submitted medical events
...
preperson to MPI
persons table
Parameter | Source | Description | |
---|---|---|---|
_id | string | Autogenerated hash. | |
status | string | Status. By default is “active” | |
external_id | Request: external_id | Identifier from external system. Required | |
notepreperson | Request: note | Used as comment to specify preperson in free way. Optionalbool | Mark that entry belongs to preperson, required. Set true. |
is_active | bool | Technical flag. By default is true. | |
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 |
...