Get a list of medical allergies the user has had so far
Returns a list of medical allergies
GET https://api.humanapi.co/v1/human/medical/allergies
Returns a single allergy
GET https://api.humanapi.co/v1/human/medical/allergies/{id}
# Returns a json array of allergies:
[
{
"createdAt": "2014-10-19T21:02:17.949Z",
"id": "544323ae5b48098829dcc437",
"name": "Oxycodone",
"organization": {
"href": "/medical/organizations/53c050ac51c69003200aa998",
"id": "53c050ac51c69003200aa998",
"name": "Cleveland Clinic"
},
"patient": {
"name": "Maxwell Forrest"
},
"reactionsFull": [],
"source": "emr-1-320",
"updatedAt": "2014-10-19T21:02:17.949Z"
"allergen": {
"codes": [
{
"code": "10831",
"codeSystem": "2.16.840.1.113883.6.88",
"codeSystemName": "RxNorm",
"name": "Bactrim"
},
{
"code": "N0000008034",
"codeSystem": "2.16.840.1.113883.3.26.1.5",
"codeSystemName": "NDF-RT",
"name": "Sulfa (Sulfonamide Antibiotics)"
}
]
},
"codes": [
{
"code": "10831",
"codeSystem": "2.16.840.1.113883.6.88",
"codeSystemName": "RxNorm",
"name": "Bactrim"
},
{
"code": "N0000008034",
"codeSystem": "2.16.840.1.113883.3.26.1.5",
"codeSystemName": "NDF-RT",
"name": "Sulfa (Sulfonamide Antibiotics)"
}
]
},
{
"id": "544323ae5b48098829dcc438",
"name": "Metaxalone",
"organization": {
"href": "/medical/organizations/53c050ac51c69003200aa998",
"id": "53c050ac51c69003200aa998",
"name": "Cleveland Clinic"
},
"patient": {
"name": "Maxwell Forrest"
},
"reactionsFull": [],
"source": "emr-1-320",
"createdAt": "2014-10-19T21:02:17.949Z",
"updatedAt": "2014-10-19T21:02:17.949Z",
"allergen": {
"codes": [
{
"code": "10831",
"codeSystem": "2.16.840.1.113883.6.88",
"codeSystemName": "RxNorm",
"name": "Bactrim"
},
{
"code": "N0000008034",
"codeSystem": "2.16.840.1.113883.3.26.1.5",
"codeSystemName": "NDF-RT",
"name": "Sulfa (Sulfonamide Antibiotics)"
}
]
},
"codes": [
{
"code": "10831",
"codeSystem": "2.16.840.1.113883.6.88",
"codeSystemName": "RxNorm",
"name": "Bactrim"
},
{
"code": "N0000008034",
"codeSystem": "2.16.840.1.113883.3.26.1.5",
"codeSystemName": "NDF-RT",
"name": "Sulfa (Sulfonamide Antibiotics)"
}
]
}
]
# Get all allergies associated with the user
curl -H "Authorization: Bearer demo" "https://api.humanapi.co/v1/human/medical/allergies"
Response Properties
Property | Type | Description |
---|---|---|
id | String | The id of the resource |
source | String | The name of the originating service |
updatedAt | Date | The time the record was updated on the Human API server |
createdAt | Date | The time the record was created on the Human API server |
name | String | (optional) The name of the allergy (e.g. ‘Etomidate’, 'Fluconazole’, 'Metaxalone’) |
patient | Object | (optional) Patient information (“name” and other optional attributes) |
organization | Object | See organizations object |
reactionsFull | Array[Object] | (optional) See reactions object |
allergen | Object | (optional) See allergen object |
status | String | (optional) The status of the allergy |
severity | String | (optional) The severity of the allergy |
dateRange | Object | (optional) See date range object |
codes | Array[Object] | (optional) See codes |
Allergen Object
Property | Type | Description |
---|---|---|
name | String | (optional) Name of the allergen |
codes | Object | (optional) See codes |
Reaction Object
Property | Type | Description |
---|---|---|
name | String | (optional) Name of the allergen |
codes | Object | (optional) See codes |
reactionType | Object | (optional) See reaction type object |
Reaction Type Object
Property | Type | Description |
---|---|---|
name | String | (optional) Name of the reaction |
codes | Object | (optional) See codes |
Date Range Object
Property | Type | Description |
---|---|---|
start | Date | (optional) Start date |
end | Date | (optional) End date |