<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="KBV-PR-Base-AllergyIntolerance" />
  <url value="https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_AllergyIntolerance" />
  <version value="1.7.0" />
  <name value="KBV_PR_Base_AllergyIntolerance" />
  <status value="active" />
  <date value="2025-02-11" />
  <publisher value="Kassenärztliche Bundesvereinigung (KBV)" />
  <description value="Hier wird eine einzelne Allergie oder Unverträglichkeit abgebildet." />
  <copyright value="Im folgenden Profil können Codes aus den Codesystemen Snomed, Loinc oder Ucum enthalten sein, die dem folgenden Urheberrecht unterliegen: This material includes SNOMED Clinical Terms® (SNOMED CT®) which is used by permission of SNOMED International. All rights reserved. SNOMED CT®, was originally created by The College of American Pathologists. SNOMED and SNOMED CT are registered trademarks of SNOMED International. Implementers of these artefacts must have the appropriate SNOMED CT Affiliate license. This material contains content from LOINC (http://loinc.org). LOINC is copyright © 1995-2020, Regenstrief Institute, Inc. and the Logical Observation Identifiers Names and Codes (LOINC) Committee and is available at no cost under the license at http://loinc.org/license. LOINC® is a registered United States trademark of Regenstrief Institute, Inc. This product includes all or a portion of the UCUM table, UCUM codes, and UCUM definitions or is derived from it, subject to a license from Regenstrief Institute, Inc. and The UCUM Organization. Your use of the UCUM table, UCUM codes, UCUM definitions also is subject to this license, a copy of which is available at http://unitsofmeasure.org. The current complete UCUM table, UCUM Specification are available for download at http://unitsofmeasure.org. The UCUM table and UCUM codes are copyright © 1995-2009, Regenstrief Institute, Inc. and the Unified Codes for Units of Measures (UCUM) Organization. All rights reserved. THE UCUM TABLE (IN ALL FORMATS), UCUM DEFINITIONS, AND SPECIFICATION ARE PROVIDED 'AS IS.' ANY EXPRESS OR IMPLIED WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="AllergyIntolerance" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/AllergyIntolerance" />
  <derivation value="constraint" />
  <differential>
    <element id="AllergyIntolerance">
      <path value="AllergyIntolerance" />
      <definition value="Hier wird eine einzelne Allergie oder Unverträglichkeit abgebildet." />
    </element>
    <element id="AllergyIntolerance.extension:abatement">
      <path value="AllergyIntolerance.extension" />
      <sliceName value="abatement" />
      <short value="Klinisch relevantes Enddatum" />
      <definition value="Datum, bis wann der/die Patient:in die Allergie/Unverträglichkeit hatte." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_AllergyIntolerance_Abatement" />
      </type>
    </element>
    <element id="AllergyIntolerance.extension:abatement-lebensphase-bis">
      <path value="AllergyIntolerance.extension" />
      <sliceName value="abatement-lebensphase-bis" />
      <short value="Lebensphase" />
      <definition value="Angabe des ungefähren Alters, ab dem der/die Patient:in die Allergie nicht mehr hat." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Stage_Life" />
      </type>
    </element>
    <element id="AllergyIntolerance.clinicalStatus">
      <path value="AllergyIntolerance.clinicalStatus" />
      <definition value="Beschreibt den Status einer Allergie bzw. Unverträglichkeit aus klinischer Sicht." />
    </element>
    <element id="AllergyIntolerance.clinicalStatus.coding">
      <path value="AllergyIntolerance.clinicalStatus.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="AllergyIntolerance.clinicalStatus.coding.system">
      <path value="AllergyIntolerance.clinicalStatus.coding.system" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.clinicalStatus.coding.version">
      <path value="AllergyIntolerance.clinicalStatus.coding.version" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.clinicalStatus.coding.code">
      <path value="AllergyIntolerance.clinicalStatus.coding.code" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.clinicalStatus.coding.display">
      <path value="AllergyIntolerance.clinicalStatus.coding.display" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.verificationStatus">
      <path value="AllergyIntolerance.verificationStatus" />
      <definition value="Gibt den Grad der Sicherheit oder Gewissheit an, mit der das tatsächliche Vorliegen der Allergie/Unverträglichkeit angegeben wird." />
    </element>
    <element id="AllergyIntolerance.verificationStatus.coding">
      <path value="AllergyIntolerance.verificationStatus.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="AllergyIntolerance.verificationStatus.coding.system">
      <path value="AllergyIntolerance.verificationStatus.coding.system" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.verificationStatus.coding.version">
      <path value="AllergyIntolerance.verificationStatus.coding.version" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.verificationStatus.coding.code">
      <path value="AllergyIntolerance.verificationStatus.coding.code" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.verificationStatus.coding.display">
      <path value="AllergyIntolerance.verificationStatus.coding.display" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.type">
      <path value="AllergyIntolerance.type" />
      <definition value="In diesem Element kann angegeben werden, ob es sich um eine Allergie oder eine Unverträglichkeit handelt." />
    </element>
    <element id="AllergyIntolerance.category">
      <path value="AllergyIntolerance.category" />
      <definition value="Enthält die Kategorie der die Allergie oder Unverträglichkeit auslösenden Substanz gemäß den angegebenen Auswahlmöglichkeiten." />
      <max value="1" />
    </element>
    <element id="AllergyIntolerance.criticality">
      <path value="AllergyIntolerance.criticality" />
      <definition value="Beschreibt die Kritikalität. Die Kritikalität gibt an, wie hoch Risiko dafür ist, dass die Exposition zu der Substanz eine schwerwiegende oder lebensbedrohliche Situation hervorruft." />
    </element>
    <element id="AllergyIntolerance.code">
      <path value="AllergyIntolerance.code" />
      <definition value="Dieses Element bildet die Substanz bzw. Substanzgruppen ab, gegen die eine Allergie oder Unverträglichkeit besteht. Diese wird als codierte Information und/oder als Freitext angegeben." />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.code.coding">
      <path value="AllergyIntolerance.code.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <definition value="Hier wird die Substanz als codierte Information angegeben." />
    </element>
    <element id="AllergyIntolerance.code.coding:snomed">
      <path value="AllergyIntolerance.code.coding" />
      <sliceName value="snomed" />
      <definition value="Hier wird ein SNOMED CT®-Code für die Substanz angegeben." />
      <min value="0" />
      <max value="*" />
      <patternCoding>
        <system value="http://snomed.info/sct" />
      </patternCoding>
      <binding>
        <strength value="required" />
        <valueSet value="https://fhir.kbv.de/ValueSet/KBV_VS_Base_Allergy_Substance_SNOMED_CT" />
      </binding>
    </element>
    <element id="AllergyIntolerance.code.coding:snomed.system">
      <path value="AllergyIntolerance.code.coding.system" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.code.coding:snomed.version">
      <path value="AllergyIntolerance.code.coding.version" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.code.coding:snomed.code">
      <path value="AllergyIntolerance.code.coding.code" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.code.coding:snomed.display">
      <path value="AllergyIntolerance.code.coding.display" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.code.coding:ask">
      <path value="AllergyIntolerance.code.coding" />
      <sliceName value="ask" />
      <definition value="Hier wird ein ASK-Code für die Substanz angegeben." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Coding" />
        <profile value="http://fhir.de/StructureDefinition/CodingASK" />
      </type>
      <patternCoding>
        <system value="http://fhir.de/CodeSystem/ask" />
      </patternCoding>
    </element>
    <element id="AllergyIntolerance.code.coding:ask.version">
      <path value="AllergyIntolerance.code.coding.version" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.code.coding:ask.display">
      <path value="AllergyIntolerance.code.coding.display" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.code.text">
      <path value="AllergyIntolerance.code.text" />
      <definition value="Hier wird die Bezeichnung der Substanz als Freitext angegeben." />
    </element>
    <element id="AllergyIntolerance.patient">
      <path value="AllergyIntolerance.patient" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Patient|1.7.0" />
      </type>
    </element>
    <element id="AllergyIntolerance.onset[x]">
      <path value="AllergyIntolerance.onset[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <definition value="Klinisch relevanter Zeitraum als Zeitintervall mit Datumsangaben, ab/bis wann der/die Patient:in die Allergie/Unverträglichkeit hatte." />
    </element>
    <element id="AllergyIntolerance.onset[x]:onsetDateTime">
      <path value="AllergyIntolerance.onset[x]" />
      <sliceName value="onsetDateTime" />
      <short value="Klinischer Zeitraum datiert &quot;von&quot;" />
      <definition value="Datum, ab wann die Allergie/Unverträglichkeit identifiziert wurde." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="AllergyIntolerance.onset[x]:onsetAge">
      <path value="AllergyIntolerance.onset[x]" />
      <sliceName value="onsetAge" />
      <short value="Lebensphasen von/bis" />
      <definition value="Angabe der Lebensphasen, in denen die Allergie/Unverträglichkeit begonnen/geendet hat." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Age" />
      </type>
    </element>
    <element id="AllergyIntolerance.onset[x]:onsetAge.extension:lebensphase-von">
      <path value="AllergyIntolerance.onset[x].extension" />
      <sliceName value="lebensphase-von" />
      <definition value="Angabe des ungefähren Alters, ab dem der/die Patient:in die Allergie/Unverträglichkeit hat." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Stage_Life" />
      </type>
    </element>
    <element id="AllergyIntolerance.note">
      <path value="AllergyIntolerance.note" />
      <definition value="Hier werden ergänzende Informationen zur Allergie bzw. Unverträglichkeit angegeben." />
    </element>
    <element id="AllergyIntolerance.note.author[x]">
      <path value="AllergyIntolerance.note.author[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <definition value="Hier wird die Person angegeben, die die Notiz erstellt hat." />
    </element>
    <element id="AllergyIntolerance.note.author[x]:authorReference">
      <path value="AllergyIntolerance.note.author[x]" />
      <sliceName value="authorReference" />
      <definition value="Hier wird die Person, die die Notiz erstellt hat, referenziert." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
        <targetProfile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Patient|1.7.0" />
        <targetProfile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Practitioner|1.7.0" />
        <targetProfile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_RelatedPerson|1.7.0" />
        <targetProfile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Organization|1.7.0" />
      </type>
    </element>
    <element id="AllergyIntolerance.note.author[x]:authorString">
      <path value="AllergyIntolerance.note.author[x]" />
      <sliceName value="authorString" />
      <definition value="Hier wird die Person, die die Notiz erstellt hat, als Freitext angegeben." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="AllergyIntolerance.note.time">
      <path value="AllergyIntolerance.note.time" />
      <definition value="Hier wird der Zeitpunkt angegeben, zu dem die Notiz erstellt wurde." />
    </element>
    <element id="AllergyIntolerance.note.text">
      <path value="AllergyIntolerance.note.text" />
      <definition value="Hier wird der eigentliche Text der Notiz eingetragen." />
    </element>
    <element id="AllergyIntolerance.reaction">
      <path value="AllergyIntolerance.reaction" />
      <definition value="Dieses Element enthält Informationen über die Reaktion, die bei diesem/dieser Patient:in nach Exposition hervorgerufen wird." />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation">
      <path value="AllergyIntolerance.reaction.manifestation" />
      <definition value="In diesem Element werden Angaben zur Manifestation der Reaktion gemacht." />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.coding">
      <path value="AllergyIntolerance.reaction.manifestation.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <definition value="Manifestation als Code aus einem anderen Code-System." />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.coding:snomed">
      <path value="AllergyIntolerance.reaction.manifestation.coding" />
      <sliceName value="snomed" />
      <definition value="Manifestation als SNOMED CT®-Code. Es wird ein optionales Beispiel-ValueSet zur Verfügung gestellt." />
      <min value="0" />
      <max value="*" />
      <patternCoding>
        <system value="http://snomed.info/sct" />
      </patternCoding>
      <binding>
        <strength value="example" />
        <valueSet value="https://fhir.kbv.de/ValueSet/KBV_VS_Base_Reaction_Allergy" />
      </binding>
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.coding:snomed.system">
      <path value="AllergyIntolerance.reaction.manifestation.coding.system" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.coding:snomed.version">
      <path value="AllergyIntolerance.reaction.manifestation.coding.version" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.coding:snomed.code">
      <path value="AllergyIntolerance.reaction.manifestation.coding.code" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.coding:snomed.display">
      <path value="AllergyIntolerance.reaction.manifestation.coding.display" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.text">
      <path value="AllergyIntolerance.reaction.manifestation.text" />
      <definition value="Bezeichnung bzw. Beschreibung der Manifestation als Freitext." />
    </element>
    <element id="AllergyIntolerance.reaction.onset">
      <path value="AllergyIntolerance.reaction.onset" />
      <definition value="Datum eines Reaktionsereignisses." />
    </element>
    <element id="AllergyIntolerance.reaction.severity">
      <path value="AllergyIntolerance.reaction.severity" />
      <definition value="Dieses Element enthält Informationen zum Schweregrad der Reaktion." />
    </element>
    <element id="AllergyIntolerance.reaction.exposureRoute">
      <path value="AllergyIntolerance.reaction.exposureRoute" />
      <definition value="Hier wird der Expositionsweg des Allergens angegeben." />
    </element>
    <element id="AllergyIntolerance.reaction.exposureRoute.coding">
      <path value="AllergyIntolerance.reaction.exposureRoute.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <definition value="Hier wird der Expositionsweg als codierte Information angegeben." />
    </element>
    <element id="AllergyIntolerance.reaction.exposureRoute.coding:snomed">
      <path value="AllergyIntolerance.reaction.exposureRoute.coding" />
      <sliceName value="snomed" />
      <definition value="SNOMED CT®-Code für die Bezeichnung des Expositionswegs." />
      <min value="0" />
      <max value="1" />
      <patternCoding>
        <system value="http://snomed.info/sct" />
      </patternCoding>
      <binding>
        <strength value="example" />
        <valueSet value="https://fhir.kbv.de/ValueSet/KBV_VS_Base_Route_of_Administration_SNOMED_CT" />
      </binding>
    </element>
    <element id="AllergyIntolerance.reaction.exposureRoute.coding:snomed.system">
      <path value="AllergyIntolerance.reaction.exposureRoute.coding.system" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.reaction.exposureRoute.coding:snomed.code">
      <path value="AllergyIntolerance.reaction.exposureRoute.coding.code" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.reaction.exposureRoute.text">
      <path value="AllergyIntolerance.reaction.exposureRoute.text" />
      <definition value="Hier wird der Expositionsweg als Freitext angegeben." />
    </element>
  </differential>
</StructureDefinition>