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 URLhttps://openorchid.ca/fhir/core/StructureDefinition/oo-allergyintolerance
Version0.1.0
RecordAllergyIntolerance
Derives fromhttp://fhir.infoway-inforoute.ca/cacore/StructureDefinition/allergyintolerance-ca-core
DownloadStructureDefinition (JSON)

What this profile adds

Everything else is as in the profile it derives from.

ElementRequires
AllergyIntoleranceoo-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.codingAt least 1
AllergyIntolerance.verificationStatusAt least 1
AllergyIntolerance.verificationStatus.codingAt least 1
AllergyIntolerance.codeAt least 1
AllergyIntolerance.patient.referenceAt least 1
AllergyIntolerance.recordedDateAt 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"
}