OpenOrchid Core AllergyIntolerance
An allergy or intolerance on the patient's chart. A code is recommended, not required: the substance may be typed text.| Canonical URL | https://openorchid.ca/fhir/core/StructureDefinition/oo-allergyintolerance |
|---|---|
| Version | 0.1.0 |
| Record | AllergyIntolerance |
| Derives from | http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/allergyintolerance-ca-core |
| Download | StructureDefinition (JSON) |
What this profile adds
Everything else is as in the profile it derives from.
| Element | Requires |
|---|---|
AllergyIntolerance | oo-status-1: The clinical status is given unless the record was entered in error.FHIRPathverificationStatus.coding.where(code = 'entered-in-error').exists() or clinicalStatus.exists() |
AllergyIntolerance.clinicalStatus.coding | At least 1 |
AllergyIntolerance.verificationStatus | At least 1 |
AllergyIntolerance.verificationStatus.coding | At least 1 |
AllergyIntolerance.code | At least 1 |
AllergyIntolerance.patient.reference | At least 1 |
AllergyIntolerance.recordedDate | At least 1 |
Examples
Records that pass this profile:
AllergyIntolerance-oo-allergyintolerance-example
{
"resourceType": "AllergyIntolerance",
"id": "oo-allergyintolerance-example",
"meta": {
"profile": [
"https://openorchid.ca/fhir/core/StructureDefinition/oo-allergyintolerance"
]
},
"clinicalStatus": {
"coding": [
{
"code": "active",
"system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical"
}
]
},
"verificationStatus": {
"coding": [
{
"code": "confirmed",
"system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification"
}
]
},
"code": {
"coding": [
{
"code": "764146007",
"system": "http://snomed.info/sct",
"display": "Penicillin (substance)"
}
],
"text": "Penicillin"
},
"patient": {
"reference": "Patient/oo-patient-example"
},
"recordedDate": "2024-06-02",
"reaction": [
{
"manifestation": [
{
"text": "Hives"
}
]
}
]
}
Records that fail it, each breaking one rule above:
Breaks clinicalStatus.coding
{
"resourceType": "AllergyIntolerance",
"id": "invalid-allergy-clinical-text-only",
"meta": {
"profile": ["https://openorchid.ca/fhir/core/StructureDefinition/oo-allergyintolerance"]
},
"clinicalStatus": {
"text": "active"
},
"code": {
"text": "Penicillin"
},
"patient": {
"reference": "Patient/oo-patient-example"
},
"recordedDate": "2024-06-02",
"verificationStatus": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",
"code": "confirmed"
}
]
}
}
Breaks verificationStatus.coding
{
"resourceType": "AllergyIntolerance",
"id": "invalid-allergy-verification-text-only",
"meta": {
"profile": ["https://openorchid.ca/fhir/core/StructureDefinition/oo-allergyintolerance"]
},
"clinicalStatus": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",
"code": "active"
}
]
},
"code": {
"text": "Penicillin"
},
"patient": {
"reference": "Patient/oo-patient-example"
},
"recordedDate": "2024-06-02",
"verificationStatus": {
"text": "confirmed"
}
}
Breaks verificationStatus
{
"resourceType": "AllergyIntolerance",
"id": "invalid-allergy-no-verification",
"meta": {
"profile": ["https://openorchid.ca/fhir/core/StructureDefinition/oo-allergyintolerance"]
},
"clinicalStatus": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",
"code": "active"
}
]
},
"code": {
"text": "Penicillin"
},
"patient": {
"reference": "Patient/oo-patient-example"
},
"recordedDate": "2024-06-02"
}