Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Generate person_id (will be returned in response). Ensure there is no such person_id in MPI.persons

  2. Generate patient_id to save it in patients collection (separate job).

Save object to DB

Insert preperson to MPI

persons prepersons table

Parameter

Source

Description

id

string

Autogenerated.

first_name

Request: first_name

second_name

Request: second_name

last_name

Request: last_name

gender

Request: gender

birth_date

Request: birth_date

emergency_contact

Request: emergency_contact

confidant_person

Request: confidant_person

status

string

Status, required. By default is “active”

external_id

Request: external_id

Identifier from external system. Required

preperson

bool

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

...