AllergyIntolerance
Overview
The AllergyIntolerance resource provides information about a patient's risk of harmful or undesirable physiological responses to specific substances. This includes allergies, intolerances, and adverse reactions that are critical for safe patient care.
Resource Schema
Key fields in the AllergyIntolerance resource:
{
"resourceType": "AllergyIntolerance",
"id": "example-allergy-123",
"clinicalStatus": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",
"code": "active"
}
]
},
"verificationStatus": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",
"code": "confirmed"
}
]
},
"type": "allergy",
"category": ["medication"],
"criticality": "high",
"code": {
"coding": [
{
"system": "http://www.nlm.nih.gov/research/umls/rxnorm",
"code": "7980",
"display": "Penicillin"
}
]
},
"patient": {
"reference": "Patient/123456"
}
}
Operations
The AllergyIntolerance resource supports Read and Search operations. Support varies by CareRecord solution.
| CareRecord / Solution | Read | Search |
|---|---|---|
| GEHRIMED | ✅ | ✅ |
| myAvatar | ✅ | ✅ |
| myEvolv | ✅ | ✅ |
| myUnity | ✅ | ✅ |
| TheraOffice | ✅ | ✅ |
Read
Retrieves a specific AllergyIntolerance resource by ID.
HTTP Method: GET
URL: /AllergyIntolerance/{id}
Examples
- Production
- Preview
curl -X GET https://fhir.netsmartcloud.com/uscore/v1/AllergyIntolerance/123456 \
-H "Authorization: Bearer {token}" \
-H "Accept: application/fhir+json"
curl -X GET https://fhirtest.netsmartcloud.com/uscore/v1/AllergyIntolerance/123456 \
-H "Authorization: Bearer {token}" \
-H "Accept: application/fhir+json"
Search
Retrieves AllergyIntolerance resources matching specified criteria.
HTTP Method: GET or POST
URL: /AllergyIntolerance or /AllergyIntolerance/_search
Search Parameters
Patient-based Search:
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
patient | reference | Yes | REQUIRED Who the sensitivity is for | patient=value |
clinical-status | string | No | Clinical status of the AllergyIntolerance. Possible values are: active, inactive, or resolved | clinical-status=value |
page | string | No | Zero-based page index | page=value |
_revinclude | special | No | Include Provenance resource(s) that reference the matched search results. Allowed: "Provenance:target" | _revinclude=value |
ID-based Search:
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
clinical-status | string | No | Clinical status of the AllergyIntolerance. Possible values are: active, inactive, or resolved | clinical-status=value |
page | string | No | Zero-based page index | page=value |
_revinclude | special | No | Include Provenance resource(s) that reference the matched search results. Allowed: "Provenance:target" | _revinclude=value |
Examples
POST Method (Recommended)
- Production
- Preview
curl -X POST https://fhir.netsmartcloud.com/uscore/v1/AllergyIntolerance/_search \
-H "Authorization: Bearer {token}" \
-H "Accept: application/fhir+json" \
-H "Content-Type: application/x-form-urlencoded" \
-d "patient=Patient/123"
curl -X POST https://fhirtest.netsmartcloud.com/uscore/v1/AllergyIntolerance/_search \
-H "Authorization: Bearer {token}" \
-H "Accept: application/fhir+json" \
-H "Content-Type: application/x-form-urlencoded" \
-d "patient=Patient/123"
GET Method
- Production
- Preview
curl -X GET https://fhir.netsmartcloud.com/uscore/v1/AllergyIntolerance?patient=Patient/123 \
-H "Authorization: Bearer {token}" \
-H "Accept: application/fhir+json"
curl -X GET https://fhirtest.netsmartcloud.com/uscore/v1/AllergyIntolerance?patient=Patient/123 \
-H "Authorization: Bearer {token}" \
-H "Accept: application/fhir+json"
Integration Patterns
Common Workflows
- Allergy Check - Retrieve all allergies for a patient before prescribing
- Safety Screening - Check for specific substance allergies
- Clinical Decision Support - Use allergy data for medication reconciliation
Relationships to Other Resources
The AllergyIntolerance resource relates to:
- Patient - Subject of the allergy or intolerance
- MedicationRequest - Medications that may trigger allergies
- Encounter - Healthcare encounter when allergy was identified
- Practitioner - Who recorded or verified the allergy
Error Handling
For common errors and troubleshooting guidance, see Common Errors.
Supported Profiles
Profiles supported by this resource (as defined in the CapabilityStatement):