{
  "resourceType": "StructureDefinition",
  "id": "RE05",
  "url": "https://PrehospitalDataInEHR.dk/fhir/StructureDefinition/RE05",
  "name": "PrehospitalDataInEHRObservationAllergyIntoleranceprofile",
  "status": "draft",
  "description": "This profile originates from the page Prior illnesses in the pre-hospital patient journal (PPJ). The registration contains information regarding the patient’s allergies, including food and medicine. It is only possible to select from predefined allergies.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "sct-concept",
      "uri": "http://snomed.info/conceptdomain",
      "name": "SNOMED CT Concept Domain Binding"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "sct-attr",
      "uri": "http://snomed.org/attributebinding",
      "name": "SNOMED CT Attribute Binding"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation",
        "short": "Information regarding the patient's allergies",
        "definition": "This profile originates from the page Prior illnesses in the pre-hospital patient journal (PPJ). The registration contains information regarding the patient’s allergies, including food and medicine. It is only possible to select from predefined allergies."
      },
      {
        "id": "Observation.identifier",
        "path": "Observation.identifier",
        "short": "Danish social security number (CPR)",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.identifier.use",
        "path": "Observation.identifier.use",
        "max": "0"
      },
      {
        "id": "Observation.identifier.type",
        "path": "Observation.identifier.type",
        "max": "0"
      },
      {
        "id": "Observation.identifier.system",
        "path": "Observation.identifier.system",
        "short": "Entry to Danish social security number database",
        "min": 1
      },
      {
        "id": "Observation.identifier.value",
        "path": "Observation.identifier.value",
        "short": "Unique identifier of 10 digits",
        "min": 1
      },
      {
        "id": "Observation.identifier.period",
        "path": "Observation.identifier.period",
        "max": "0"
      },
      {
        "id": "Observation.identifier.assigner",
        "path": "Observation.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Observation.basedOn",
        "path": "Observation.basedOn",
        "max": "0"
      },
      {
        "id": "Observation.partOf",
        "path": "Observation.partOf",
        "max": "0"
      },
      {
        "id": "Observation.status",
        "path": "Observation.status",
        "fixedCode": "registered"
      },
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "max": "0"
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "max": "0"
      },
      {
        "id": "Observation.code.text",
        "path": "Observation.code.text",
        "max": "0"
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "short": "Who has the allergies",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://PrehospitalDataInEHR.dk/fhir/StructureDefinition/RE09"
            ]
          }
        ]
      },
      {
        "id": "Observation.subject.reference",
        "path": "Observation.subject.reference",
        "max": "0"
      },
      {
        "id": "Observation.subject.type",
        "path": "Observation.subject.type",
        "max": "0"
      },
      {
        "id": "Observation.subject.identifier",
        "path": "Observation.subject.identifier",
        "max": "0"
      },
      {
        "id": "Observation.subject.display",
        "path": "Observation.subject.display",
        "max": "0"
      },
      {
        "id": "Observation.focus",
        "path": "Observation.focus",
        "max": "0"
      },
      {
        "id": "Observation.encounter",
        "path": "Observation.encounter",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://PrehospitalDataInEHR.dk/fhir/StructureDefinition/RE02"
            ]
          }
        ]
      },
      {
        "id": "Observation.encounter.reference",
        "path": "Observation.encounter.reference",
        "max": "0"
      },
      {
        "id": "Observation.encounter.type",
        "path": "Observation.encounter.type",
        "max": "0"
      },
      {
        "id": "Observation.encounter.identifier",
        "path": "Observation.encounter.identifier",
        "max": "0"
      },
      {
        "id": "Observation.encounter.display",
        "path": "Observation.encounter.display",
        "max": "0"
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "min": 1,
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Observation.issued",
        "path": "Observation.issued",
        "max": "0"
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://PrehospitalDataInEHR.dk/fhir/StructureDefinition/RE12"
            ]
          }
        ]
      },
      {
        "id": "Observation.performer.reference",
        "path": "Observation.performer.reference",
        "max": "0"
      },
      {
        "id": "Observation.performer.type",
        "path": "Observation.performer.type",
        "max": "0"
      },
      {
        "id": "Observation.performer.identifier",
        "path": "Observation.performer.identifier",
        "max": "0"
      },
      {
        "id": "Observation.performer.display",
        "path": "Observation.performer.display",
        "max": "0"
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "max": "0"
      },
      {
        "id": "Observation.dataAbsentReason",
        "path": "Observation.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.interpretation",
        "path": "Observation.interpretation",
        "max": "0"
      },
      {
        "id": "Observation.note",
        "path": "Observation.note",
        "max": "0"
      },
      {
        "id": "Observation.bodySite",
        "path": "Observation.bodySite",
        "max": "0"
      },
      {
        "id": "Observation.method",
        "path": "Observation.method",
        "max": "0"
      },
      {
        "id": "Observation.specimen",
        "path": "Observation.specimen",
        "max": "0"
      },
      {
        "id": "Observation.device",
        "path": "Observation.device",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange",
        "path": "Observation.referenceRange",
        "max": "0"
      },
      {
        "id": "Observation.hasMember",
        "path": "Observation.hasMember",
        "max": "0"
      },
      {
        "id": "Observation.derivedFrom",
        "path": "Observation.derivedFrom",
        "max": "0"
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "code.text"
            }
          ],
          "rules": "open"
        },
        "short": "Predefined allergies",
        "max": "1"
      },
      {
        "id": "Observation.component:penicillin",
        "path": "Observation.component",
        "sliceName": "penicillin",
        "short": "Penicillin allergy",
        "max": "1"
      },
      {
        "id": "Observation.component:penicillin.code",
        "path": "Observation.component.code",
        "code": [
          {
            "system": "http://snomed.info/sct",
            "version": "2020/09/30",
            "code": "91936005",
            "display": "Penicillin"
          }
        ]
      },
      {
        "id": "Observation.component:penicillin.code.coding",
        "path": "Observation.component.code.coding",
        "code": [
          {
            "system": "http://snomed.info/sct",
            "version": "2020/09/30",
            "code": "91936005",
            "display": "Penicillin"
          }
        ],
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.component:penicillin.code.coding.system",
        "path": "Observation.component.code.coding.system",
        "max": "0"
      },
      {
        "id": "Observation.component:penicillin.code.coding.version",
        "path": "Observation.component.code.coding.version",
        "max": "0"
      },
      {
        "id": "Observation.component:penicillin.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "max": "0"
      },
      {
        "id": "Observation.component:penicillin.code.coding.display",
        "path": "Observation.component.code.coding.display",
        "max": "0"
      },
      {
        "id": "Observation.component:penicillin.code.coding.userSelected",
        "path": "Observation.component.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Observation.component:penicillin.code.text",
        "path": "Observation.component.code.text",
        "short": "Registration of penicillin allergy",
        "min": 1,
        "fixedString": "Penicillin"
      },
      {
        "id": "Observation.component:penicillin.value[x]",
        "path": "Observation.component.value[x]",
        "max": "0",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Observation.component:penicillin.dataAbsentReason",
        "path": "Observation.component.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.component:penicillin.interpretation",
        "path": "Observation.component.interpretation",
        "max": "0"
      },
      {
        "id": "Observation.component:penicillin.referenceRange",
        "path": "Observation.component.referenceRange",
        "max": "0"
      },
      {
        "id": "Observation.component:NSAID",
        "path": "Observation.component",
        "sliceName": "NSAID",
        "short": "NSAID allergy",
        "max": "1"
      },
      {
        "id": "Observation.component:NSAID.code",
        "path": "Observation.component.code",
        "code": [
          {
            "system": "http://snomed.info/sct",
            "version": "2020/09/30",
            "code": "293610009",
            "display": "NSAID"
          }
        ]
      },
      {
        "id": "Observation.component:NSAID.code.coding",
        "path": "Observation.component.code.coding",
        "code": [
          {
            "system": "http://snomed.info/sct",
            "version": "2020/09/30",
            "code": "293610009",
            "display": "NSAID"
          }
        ],
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.component:NSAID.code.coding.system",
        "path": "Observation.component.code.coding.system",
        "max": "0"
      },
      {
        "id": "Observation.component:NSAID.code.coding.version",
        "path": "Observation.component.code.coding.version",
        "max": "0"
      },
      {
        "id": "Observation.component:NSAID.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "max": "0"
      },
      {
        "id": "Observation.component:NSAID.code.coding.display",
        "path": "Observation.component.code.coding.display",
        "max": "0"
      },
      {
        "id": "Observation.component:NSAID.code.coding.userSelected",
        "path": "Observation.component.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Observation.component:NSAID.code.text",
        "path": "Observation.component.code.text",
        "short": "Registration of NSAID allergy",
        "min": 1,
        "fixedString": "NSAID"
      },
      {
        "id": "Observation.component:NSAID.value[x]",
        "path": "Observation.component.value[x]",
        "max": "0",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Observation.component:NSAID.dataAbsentReason",
        "path": "Observation.component.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.component:NSAID.interpretation",
        "path": "Observation.component.interpretation",
        "max": "0"
      },
      {
        "id": "Observation.component:NSAID.referenceRange",
        "path": "Observation.component.referenceRange",
        "max": "0"
      },
      {
        "id": "Observation.component:morphine",
        "path": "Observation.component",
        "sliceName": "morphine",
        "short": "Morphine allergy",
        "max": "1"
      },
      {
        "id": "Observation.component:morphine.code",
        "path": "Observation.component.code",
        "code": [
          {
            "system": "http://snomed.info/sct",
            "version": "2020/09/30",
            "code": "293601001",
            "display": "Morfin"
          }
        ]
      },
      {
        "id": "Observation.component:morphine.code.coding",
        "path": "Observation.component.code.coding",
        "code": [
          {
            "system": "http://snomed.info/sct",
            "version": "2020/09/30",
            "code": "293601001",
            "display": "Morfin"
          }
        ],
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.component:morphine.code.coding.system",
        "path": "Observation.component.code.coding.system",
        "max": "0"
      },
      {
        "id": "Observation.component:morphine.code.coding.version",
        "path": "Observation.component.code.coding.version",
        "max": "0"
      },
      {
        "id": "Observation.component:morphine.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "max": "0"
      },
      {
        "id": "Observation.component:morphine.code.coding.display",
        "path": "Observation.component.code.coding.display",
        "max": "0"
      },
      {
        "id": "Observation.component:morphine.code.coding.userSelected",
        "path": "Observation.component.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Observation.component:morphine.code.text",
        "path": "Observation.component.code.text",
        "short": "Registration of morphine allergy",
        "min": 1,
        "fixedString": "Morfin"
      },
      {
        "id": "Observation.component:morphine.value[x]",
        "path": "Observation.component.value[x]",
        "max": "0",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Observation.component:morphine.dataAbsentReason",
        "path": "Observation.component.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.component:morphine.interpretation",
        "path": "Observation.component.interpretation",
        "max": "0"
      },
      {
        "id": "Observation.component:morphine.referenceRange",
        "path": "Observation.component.referenceRange",
        "max": "0"
      },
      {
        "id": "Observation.component:sulfonamide",
        "path": "Observation.component",
        "sliceName": "sulfonamide",
        "short": "Sulfonamide allergy",
        "max": "1"
      },
      {
        "id": "Observation.component:sulfonamide.code",
        "path": "Observation.component.code",
        "code": [
          {
            "system": "http://hl7.org/fhir/sid/icd-10",
            "version": "2020/09/30",
            "code": "91939003",
            "display": "Sulfamid"
          }
        ]
      },
      {
        "id": "Observation.component:sulfonamide.code.coding",
        "path": "Observation.component.code.coding",
        "code": [
          {
            "system": "http://snomed.info/sct",
            "version": "2020/09/30",
            "code": "91939003",
            "display": "Sulfamid"
          }
        ],
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.component:sulfonamide.code.coding.system",
        "path": "Observation.component.code.coding.system",
        "max": "0"
      },
      {
        "id": "Observation.component:sulfonamide.code.coding.version",
        "path": "Observation.component.code.coding.version",
        "max": "0"
      },
      {
        "id": "Observation.component:sulfonamide.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "max": "0"
      },
      {
        "id": "Observation.component:sulfonamide.code.coding.display",
        "path": "Observation.component.code.coding.display",
        "max": "0"
      },
      {
        "id": "Observation.component:sulfonamide.code.coding.userSelected",
        "path": "Observation.component.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Observation.component:sulfonamide.code.text",
        "path": "Observation.component.code.text",
        "short": "Registration of sulfonamide allergy",
        "min": 1,
        "fixedString": "Sulfamid"
      },
      {
        "id": "Observation.component:sulfonamide.value[x]",
        "path": "Observation.component.value[x]",
        "max": "0",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Observation.component:sulfonamide.dataAbsentReason",
        "path": "Observation.component.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.component:sulfonamide.interpretation",
        "path": "Observation.component.interpretation",
        "max": "0"
      },
      {
        "id": "Observation.component:sulfonamide.referenceRange",
        "path": "Observation.component.referenceRange",
        "max": "0"
      },
      {
        "id": "Observation.component:acetylsalicylicAcid",
        "path": "Observation.component",
        "sliceName": "acetylsalicylicAcid",
        "short": "Acetylsalicylic acid allergy",
        "max": "1"
      },
      {
        "id": "Observation.component:acetylsalicylicAcid.code",
        "path": "Observation.component.code",
        "code": [
          {
            "system": "http://snomed.info/sct",
            "version": "2020/09/30",
            "code": "293586001",
            "display": "Acetylsalisylsyre"
          }
        ]
      },
      {
        "id": "Observation.component:acetylsalicylicAcid.code.coding",
        "path": "Observation.component.code.coding",
        "code": [
          {
            "system": "http://snomed.info/sct",
            "version": "2020/09/30",
            "code": "293586001",
            "display": "Acetylsalicylsyre"
          }
        ],
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.component:acetylsalicylicAcid.code.coding.system",
        "path": "Observation.component.code.coding.system",
        "max": "0"
      },
      {
        "id": "Observation.component:acetylsalicylicAcid.code.coding.version",
        "path": "Observation.component.code.coding.version",
        "max": "0"
      },
      {
        "id": "Observation.component:acetylsalicylicAcid.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "max": "0"
      },
      {
        "id": "Observation.component:acetylsalicylicAcid.code.coding.display",
        "path": "Observation.component.code.coding.display",
        "max": "0"
      },
      {
        "id": "Observation.component:acetylsalicylicAcid.code.coding.userSelected",
        "path": "Observation.component.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Observation.component:acetylsalicylicAcid.code.text",
        "path": "Observation.component.code.text",
        "short": "Registration of acetylsalicylic acid allergy",
        "min": 1,
        "fixedString": "Acetylsalicylsyre"
      },
      {
        "id": "Observation.component:acetylsalicylicAcid.value[x]",
        "path": "Observation.component.value[x]",
        "max": "0",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Observation.component:acetylsalicylicAcid.dataAbsentReason",
        "path": "Observation.component.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.component:acetylsalicylicAcid.interpretation",
        "path": "Observation.component.interpretation",
        "max": "0"
      },
      {
        "id": "Observation.component:acetylsalicylicAcid.referenceRange",
        "path": "Observation.component.referenceRange",
        "max": "0"
      },
      {
        "id": "Observation.component:antiepileptica",
        "path": "Observation.component",
        "sliceName": "antiepileptica",
        "short": "Antiepileptica allergy",
        "max": "1"
      },
      {
        "id": "Observation.component:antiepileptica.code",
        "path": "Observation.component.code",
        "code": [
          {
            "system": "http://snomed.info/sct",
            "version": "2020/09/30",
            "code": "295030006",
            "display": "Antiepileptika"
          }
        ]
      },
      {
        "id": "Observation.component:antiepileptica.code.coding",
        "path": "Observation.component.code.coding",
        "code": [
          {
            "system": "http://snomed.info/sct",
            "version": "2020/09/30",
            "code": "295030006",
            "display": "Antiepileptika"
          }
        ],
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.component:antiepileptica.code.coding.system",
        "path": "Observation.component.code.coding.system",
        "max": "0"
      },
      {
        "id": "Observation.component:antiepileptica.code.coding.version",
        "path": "Observation.component.code.coding.version",
        "max": "0"
      },
      {
        "id": "Observation.component:antiepileptica.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "max": "0"
      },
      {
        "id": "Observation.component:antiepileptica.code.coding.display",
        "path": "Observation.component.code.coding.display",
        "max": "0"
      },
      {
        "id": "Observation.component:antiepileptica.code.coding.userSelected",
        "path": "Observation.component.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Observation.component:antiepileptica.code.text",
        "path": "Observation.component.code.text",
        "short": "Registration of antiepileptica allergy",
        "min": 1,
        "fixedString": "Antiepileptika"
      },
      {
        "id": "Observation.component:antiepileptica.value[x]",
        "path": "Observation.component.value[x]",
        "max": "0",
        "type": [
          {
            "code": "boolean"
          }
        ]
      },
      {
        "id": "Observation.component:antiepileptica.dataAbsentReason",
        "path": "Observation.component.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.component:antiepileptica.interpretation",
        "path": "Observation.component.interpretation",
        "max": "0"
      },
      {
        "id": "Observation.component:antiepileptica.referenceRange",
        "path": "Observation.component.referenceRange",
        "max": "0"
      }
    ]
  }
}