Skip to main content
PUT
/
api
/
2.0
/
allergies
/
{id}
/
Update Allergy
curl --request PUT \
  --url https://sandbox.elationemr.com/api/2.0/allergies/{id}/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "patient": 123,
  "reaction": "<string>",
  "start_date": "2023-12-25"
}
'
{
  "name": "<string>",
  "patient": 123,
  "created_date": "2023-11-07T05:31:56Z",
  "deleted_date": "2023-11-07T05:31:56Z",
  "id": 123,
  "medispandnid": "<string>",
  "medispanid": "<string>",
  "reaction": "<string>",
  "start_date": "2023-12-25"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
integer<int64>
required

Body

application/json
name
string
required

The name of the allergy drug.

patient
integer<int64>
required

The id of the patient.

reaction
string | null

The reaction to the drug.

Maximum string length: 200
severity
enum<string>

How severe the reaction is.

Available options:
mild,
moderate,
severe,
unknown
start_date
string<date> | null

The date the allergy started.

status
enum<string>
Available options:
Active,
Inactive

Response

200 - application/json
name
string
required

The name of the allergy drug.

patient
integer<int64>
required

The id of the patient.

created_date
string<date-time> | null
read-only
deleted_date
string<date-time> | null
read-only
id
integer
read-only
medispandnid
string
read-only
medispanid
string
read-only
reaction
string | null

The reaction to the drug.

Maximum string length: 200
severity
enum<string>

How severe the reaction is.

Available options:
mild,
moderate,
severe,
unknown
start_date
string<date> | null

The date the allergy started.

status
enum<string>
Available options:
Active,
Inactive