Skip to main content
POST
/
api
/
2.0
/
histories
/
Create History
curl --request POST \
  --url https://sandbox.elationemr.com/api/2.0/histories/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "patient": 123,
  "text": "<string>",
  "rank": 32767
}
'
{
  "patient": 123,
  "text": "<string>",
  "created_date": "2023-11-07T05:31:56Z",
  "deleted_date": "2023-11-07T05:31:56Z",
  "id": 123,
  "rank": 32767
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
patient
integer<int64>
required

The id of the patient.

text
string
required

The value (or text) of the history.

type
enum<string>
required

The type of the history.

Available options:
Cognitive Status,
Consultation,
Diet,
Exercise,
Family,
Functional Status,
Habits,
Health Maintenance,
Immunization,
Legal,
Past,
Past Surgical,
Psychological,
Social
rank
integer

The rank (or sequence) of the history.

Required range: 0 <= x <= 65535

Response

201 - application/json
patient
integer<int64>
required

The id of the patient.

text
string
required

The value (or text) of the history.

type
enum<string>
required

The type of the history.

Available options:
Cognitive Status,
Consultation,
Diet,
Exercise,
Family,
Functional Status,
Habits,
Health Maintenance,
Immunization,
Legal,
Past,
Past Surgical,
Psychological,
Social
created_date
string<date-time> | null
read-only

The date the history was created.

deleted_date
string<date-time> | null
read-only

The date the history was deleted.

id
integer
read-only
rank
integer

The rank (or sequence) of the history.

Required range: 0 <= x <= 65535