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

PropertyTypeDescription
idStringThe id of the resource
sourceStringThe name of the originating service
updatedAtDateThe time the record was updated on the Human API server
createdAtDateThe time the record was created on the Human API server
nameString(optional) The name of the allergy (e.g. ‘Etomidate’, 'Fluconazole’, 'Metaxalone’)
patientObject(optional) Patient information (“name” and other optional attributes)
organizationObjectSee organizations object
reactionsFullArray[Object](optional) See reactions object
allergenObject(optional) See allergen object
statusString(optional) The status of the allergy
severityString(optional) The severity of the allergy
dateRangeObject(optional) See date range object
codesArray[Object](optional) See codes

Allergen Object

PropertyTypeDescription
nameString(optional) Name of the allergen
codesObject(optional) See codes

Reaction Object

PropertyTypeDescription
nameString(optional) Name of the allergen
codesObject(optional) See codes
reactionTypeObject(optional) See reaction type object

Reaction Type Object

PropertyTypeDescription
nameString(optional) Name of the reaction
codesObject(optional) See codes

Date Range Object

PropertyTypeDescription
startDate(optional) Start date
endDate(optional) End date