AllergyIntolerance

The FHIR R4 AllergyIntolerance resource captures a patient's allergies or intolerances to substances like medications, foods, or environmental agents. It helps healthcare providers manage adverse reactions and supports safe clinical decisions.

Use Cases

  • Retrieve allergy records before prescribing medications
  • Log new allergies during a patient intake
  • Monitor allergy status updates using webhooks

Base URLs

Authentication

All requests require OAuth 2.0 authentication using a Bearer Token. Unauthorized requests return 401 Unauthorized responses.

Required Scopes

  • allergyintolerance.read for GET
  • allergyintolerance.write for POST, PUT, DELETE

For more information, go to: OAuth 2.0 Authentication.

Supported Methods

MethodOperationDescription
GETRead AllergyIntoleranceRetrieves a specific AllergyIntolerance record by its FHIR ID.
GETSearch AllergyIntoleranceSearches for AllergyIntolerance records for a specified patient.
POSTCreate AllergyIntoleranceSubmits a new AllergyIntolerance record to the Health Gorilla FHIR server.
PUTUpdate AllergyIntoleranceUpdates an existing AllergyIntolerance record by full resource replacement.
DELETEDelete AllergyIntoleranceRemoves an existing AllergyIntolerance record from the system by full deletion.

Frequently Used Search Parameters

ParameterDescriptionFHIR Value Set / Example ValuesFHIR Data TypeRequired
patientFilters by patient IDPatient/{id}ReferenceYes
clinicalStatusFilters by the current status of the allergyAllergyIntoleranceClinicalStatus (active)tokenNo
verificationStatusFilters by level of certaintyAllergyIntoleranceVerificationStatus (confirmed)tokenNo
recordedDateFilters by the date the allergy was recordedge2022-01-01, le2023-12-31dateNo
categoryFilters by the allergen categoryAllergyIntoleranceCategory (food)tokenNo
codeFilters by the substance causing the allergySNOMED CT or RxNorm codes (e.g., 227493005)tokenNo
recorderFilters by the practitioner or person who recorded the allergyPractitioner/{id}, RelatedPerson/{id}ReferenceNo
criticalityFilters by the potential severity of the reactionAllergyIntoleranceCriticality (high)tokenNo
onsetFilters by the onset date of the allergy or intolerancege2020-01-01dateNo
lastOccurrenceFilters by the date of the most recent allergic reactionle2024-12-31dateNo

Commonly Returned Resource Attributes

AttributeDescriptionExample ValuesFHIR Data TypeRequired
patientReference to the patient who has the allergy or intolerancePatient/{id}Reference(Patient)Yes
codeSubstance or allergenSNOMED CT or RxNorm codes (e.g., aspirin, peanuts)CodeableConceptYes
typeType of adverse sensitivityallergy, intolerancecodeNo
categoryCategory of the substancefood, medicationcode[]No
criticalityPotential severity of the reaction if exposedhighcodeNo
clinicalStatusThe current status of the allergyactiveCodeableConceptNo
verificationStatusCertainty about the presence of the allergyconfirmedCodeableConceptNo
onsetEstimated or known date/time when the allergy beganYYYY-MM-DD, age, perioddateTime, Age, etc.No
recordedDateWhen the allergy was first recordedYYYY-MM-DDdateTimeNo
lastOccurrenceMost recent known occurrence of a reactionYYYY-MM-DDdateTimeNo
recorderWho recorded the allergy (user or system)Practitioner/{id}, RelatedPerson/{id}ReferenceNo
reaction.manifestationSymptoms/signs that manifested during the reactionSNOMED CT codes (hives, dyspnea, etc.)CodeableConcept[]No
reaction.severitySeverity of the reactionmild, moderate, severecodeNo
reaction.substanceSpecific substance causing the reaction (if different from code)e.g., penicillin GCodeableConceptNo
reaction.descriptionText description of the reactionFree-textstringNo

Webhooks

Clients can subscribe to receive notifications when new allergies or intolerances are recorded, or when existing records are updated or resolved. For more information, go to: Webhooks & Polling.

Error Handling

All AllergyIntolerance operations follow standard Health Gorilla error handling, including use of FHIR OperationOutcome for structured responses. For more information, go to: Error Handling.

Additional Resources

HL7 FHIR AllergyIntolerance