<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="epa-allergy-intolerance" />
  <url value="https://gematik.de/fhir/epa/StructureDefinition/epa-allergy-intolerance" />
  <version value="1.1.0" />
  <name value="EPAAllergyIntolerance" />
  <title value="EPA Allergy Intolerance Profile" />
  <status value="active" />
  <experimental value="false" />
  <date value="2024-08-14" />
  <publisher value="mio42 GmbH" />
  <description value="Dieses Profil bildet eine Allergie oder Unverträglichkeit ab." />
  <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="Dieses Profil bildet eine Allergie oder Unverträglichkeit ab." />
    </element>
    <element id="AllergyIntolerance.meta">
      <path value="AllergyIntolerance.meta" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.meta.versionId">
      <path value="AllergyIntolerance.meta.versionId" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.meta.lastUpdated">
      <path value="AllergyIntolerance.meta.lastUpdated" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.text">
      <path value="AllergyIntolerance.text" />
      <definition value="In diesem Element können die, in der Instanz, enthaltenen Informationen in einer menschenlesbaren Form zusammengefasst werden. Dabei ist zu beachten, dass keine Informationen aufgenommen werden dürfen, die nicht in strukturierter Form an anderer Stelle in der Instanz enthalten sind." />
    </element>
    <element id="AllergyIntolerance.text.status">
      <path value="AllergyIntolerance.text.status" />
      <fixedCode value="extensions" />
    </element>
    <element id="AllergyIntolerance.extension">
      <path value="AllergyIntolerance.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <ordered value="false" />
        <rules value="open" />
      </slicing>
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.extension:abatement">
      <path value="AllergyIntolerance.extension" />
      <sliceName value="abatement" />
      <short value="Klinisch relevantes Enddatum" />
      <definition value="In diesem Element kann angegeben werden, in welchem Zeitraum bzw. ab wann der/die Patient:in die Allergie/Unverträglichkeit hatte." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://gematik.de/fhir/epa/StructureDefinition/epa-allergy-intolerance-abatement-extension" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.extension:abatement-phase-until">
      <path value="AllergyIntolerance.extension" />
      <sliceName value="abatement-phase-until" />
      <short value="abatement-lebensphase-bis" />
      <definition value="Angabe des ungefähren Alters, ab dem der/die Patient:in die Allergie/Unverträglichkeit nicht mehr hat." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://gematik.de/fhir/epa/StructureDefinition/epa-stage-life-extension" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.clinicalStatus">
      <path value="AllergyIntolerance.clinicalStatus" />
      <definition value="Beschreibt den Status einer Allergie bzw. Unverträglichkeit aus klinischer Sicht." />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.clinicalStatus.coding">
      <path value="AllergyIntolerance.clinicalStatus.coding" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.clinicalStatus.coding.system">
      <path value="AllergyIntolerance.clinicalStatus.coding.system" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.clinicalStatus.coding.version">
      <path value="AllergyIntolerance.clinicalStatus.coding.version" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.clinicalStatus.coding.code">
      <path value="AllergyIntolerance.clinicalStatus.coding.code" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.clinicalStatus.coding.display">
      <path value="AllergyIntolerance.clinicalStatus.coding.display" />
      <min value="1" />
      <mustSupport value="true" />
    </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 werden kann." />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.verificationStatus.coding">
      <path value="AllergyIntolerance.verificationStatus.coding" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.verificationStatus.coding.system">
      <path value="AllergyIntolerance.verificationStatus.coding.system" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.verificationStatus.coding.version">
      <path value="AllergyIntolerance.verificationStatus.coding.version" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.verificationStatus.coding.code">
      <path value="AllergyIntolerance.verificationStatus.coding.code" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.verificationStatus.coding.display">
      <path value="AllergyIntolerance.verificationStatus.coding.display" />
      <min value="1" />
      <mustSupport value="true" />
    </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" />
      <mustSupport value="true" />
    </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" />
      <mustSupport value="true" />
    </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." />
      <mustSupport value="true" />
    </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 kann als codierte Information und/oder als Freitext angegeben werden." />
      <min value="1" />
      <mustSupport value="true" />
    </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 kann die Substanz als codierte Information angegeben werden." />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.code.coding:snomed">
      <path value="AllergyIntolerance.code.coding" />
      <sliceName value="snomed" />
      <definition value="Hier kann ein SNOMED CT®-Code für die Substanz angegeben werden." />
      <min value="0" />
      <max value="1" />
      <patternCoding>
        <system value="http://snomed.info/sct" />
      </patternCoding>
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="https://gematik.de/fhir/terminology/ValueSet/epa-substance-snomed-ct-vs" />
      </binding>
    </element>
    <element id="AllergyIntolerance.code.coding:snomed.system">
      <path value="AllergyIntolerance.code.coding.system" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.code.coding:snomed.version">
      <path value="AllergyIntolerance.code.coding.version" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.code.coding:snomed.code">
      <path value="AllergyIntolerance.code.coding.code" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.code.coding:snomed.display">
      <path value="AllergyIntolerance.code.coding.display" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.code.coding:ask">
      <path value="AllergyIntolerance.code.coding" />
      <sliceName value="ask" />
      <definition value="Hier kann ein ASK-Code für die Substanz angegeben werden." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Coding" />
        <profile value="http://fhir.de/StructureDefinition/CodingASK" />
      </type>
      <patternCoding>
        <system value="http://fhir.de/CodeSystem/ask" />
      </patternCoding>
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://fhir.de/ValueSet/ask" />
      </binding>
    </element>
    <element id="AllergyIntolerance.code.coding:ask.system">
      <path value="AllergyIntolerance.code.coding.system" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.code.coding:ask.code">
      <path value="AllergyIntolerance.code.coding.code" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.code.coding:ask.display">
      <path value="AllergyIntolerance.code.coding.display" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.code.coding:atc-de">
      <path value="AllergyIntolerance.code.coding" />
      <sliceName value="atc-de" />
      <definition value="Hier kann ein deutscher ATC-Code für die Substanz angegeben werden." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Coding" />
        <profile value="http://fhir.de/StructureDefinition/CodingATC" />
      </type>
      <patternCoding>
        <system value="http://fhir.de/CodeSystem/bfarm/atc" />
      </patternCoding>
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://fhir.de/ValueSet/bfarm/atc" />
      </binding>
    </element>
    <element id="AllergyIntolerance.code.coding:atc-de.system">
      <path value="AllergyIntolerance.code.coding.system" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.code.coding:atc-de.version">
      <path value="AllergyIntolerance.code.coding.version" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.code.coding:atc-de.code">
      <path value="AllergyIntolerance.code.coding.code" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.code.coding:atc-de.display">
      <path value="AllergyIntolerance.code.coding.display" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.code.text">
      <path value="AllergyIntolerance.code.text" />
      <definition value="Hier kann die Bezeichnung der Substanz als Freitext angegeben werden." />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.patient">
      <path value="AllergyIntolerance.patient" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.patient.identifier">
      <path value="AllergyIntolerance.patient.identifier" />
      <min value="1" />
      <type>
        <code value="Identifier" />
        <profile value="http://fhir.de/StructureDefinition/identifier-kvid-10" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.onset[x]">
      <path value="AllergyIntolerance.onset[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
      <definition value="In diesem Element kann angegeben werden, in welchem Zeitraum bzw. ab wann der/die Patient:in die Allergie/Unverträglichkeit hatte bzw. hat." />
      <type>
        <code value="dateTime" />
      </type>
      <type>
        <code value="Age" />
      </type>
      <type>
        <code value="Period" />
      </type>
    </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>
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.onset[x]:onsetAge">
      <path value="AllergyIntolerance.onset[x]" />
      <sliceName value="onsetAge" />
      <short value="Klinischer Zeitraum" />
      <definition value="Angabe der Lebensphasen, in denen die Allergie/Unverträglichkeit begonnen hat." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Age" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.onset[x]:onsetAge.extension">
      <path value="AllergyIntolerance.onset[x].extension" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.onset[x]:onsetAge.extension:phase-from">
      <path value="AllergyIntolerance.onset[x].extension" />
      <sliceName value="phase-from" />
      <short 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://gematik.de/fhir/epa/StructureDefinition/epa-stage-life-extension" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.onset[x]:onsetPeriod">
      <path value="AllergyIntolerance.onset[x]" />
      <sliceName value="onsetPeriod" />
      <definition value="Klinisch relevanter Zeitraum als Zeitintervall mit Datumsangaben, ab/bis wann der/die Patient:in die Allergie/Unverträglichkeit hatte bzw. hat." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Period" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.onset[x]:onsetPeriod.start">
      <path value="AllergyIntolerance.onset[x].start" />
      <definition value="Datum, ab wann die Allergie/Unverträglichkeit identifiziert wurde." />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.onset[x]:onsetPeriod.end">
      <path value="AllergyIntolerance.onset[x].end" />
      <definition value="Datum, bis wann der/die Patient:in die Allergie/Unverträglichkeit hatte." />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.recorder">
      <path value="AllergyIntolerance.recorder" />
      <definition value="Hier wird die Aufzeichnende Person der &quot;Allergie/Unverträglichkeit&quot; referenziert." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.recorder.reference">
      <path value="AllergyIntolerance.recorder.reference" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.recorder.identifier">
      <path value="AllergyIntolerance.recorder.identifier" />
      <type>
        <code value="Identifier" />
        <profile value="http://fhir.de/StructureDefinition/identifier-kvid-10" />
        <profile value="http://fhir.de/StructureDefinition/identifier-telematik-id" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.asserter">
      <path value="AllergyIntolerance.asserter" />
      <definition value="Hier wird die Quelle der Information der &quot;Allergie/Unverträglichkeit&quot; abgebildet." />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.asserter.reference">
      <path value="AllergyIntolerance.asserter.reference" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.asserter.identifier">
      <path value="AllergyIntolerance.asserter.identifier" />
      <type>
        <code value="Identifier" />
        <profile value="http://fhir.de/StructureDefinition/identifier-kvid-10" />
        <profile value="http://fhir.de/StructureDefinition/identifier-telematik-id" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.note">
      <path value="AllergyIntolerance.note" />
      <definition value="Hier können ergänzende Informationen zur Allergie bzw. Unverträglichkeit angegeben werden." />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.note.author[x]">
      <path value="AllergyIntolerance.note.author[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="closed" />
      </slicing>
      <definition value="Hier wird die Person/Einrichtung referenziert, die die Notiz erstellt hat." />
      <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" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.note.author[x]:authorReference">
      <path value="AllergyIntolerance.note.author[x]" />
      <sliceName value="authorReference" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.note.author[x]:authorReference.reference">
      <path value="AllergyIntolerance.note.author[x].reference" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.note.author[x]:authorReference.identifier">
      <path value="AllergyIntolerance.note.author[x].identifier" />
      <type>
        <code value="Identifier" />
        <profile value="http://fhir.de/StructureDefinition/identifier-kvid-10" />
        <profile value="http://fhir.de/StructureDefinition/identifier-telematik-id" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.note.time">
      <path value="AllergyIntolerance.note.time" />
      <definition value="Hier wird der Zeitpunkt angegeben, zu dem die Notiz erstellt wurde." />
      <comment value="Dieses Element sollte in der Regel automatisiert ohne Aufwand für die Person, die die Notiz erstellt befüllt werden." />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.note.text">
      <path value="AllergyIntolerance.note.text" />
      <definition value="Hier wird der eigentliche Text der Notiz eingetragen." />
      <mustSupport value="true" />
    </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." />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.substance">
      <path value="AllergyIntolerance.reaction.substance" />
      <definition value="Dieses Element bildet die spezifische Substanz ab, welche die Reaktion hervorruft." />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding">
      <path value="AllergyIntolerance.reaction.substance.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <definition value="Dieses Element bildet die Substanz als codierte Information ab." />
      <comment value="Das MustSupport gilt nur für die vordefinierten Slices." />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:snomed">
      <path value="AllergyIntolerance.reaction.substance.coding" />
      <sliceName value="snomed" />
      <definition value="Hier kann ein SNOMED CT®-Code für die Substanz angegeben werden." />
      <min value="0" />
      <max value="1" />
      <patternCoding>
        <system value="http://snomed.info/sct" />
      </patternCoding>
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="https://gematik.de/fhir/terminology/ValueSet/epa-substance-snomed-ct-vs" />
      </binding>
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:snomed.system">
      <path value="AllergyIntolerance.reaction.substance.coding.system" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:snomed.version">
      <path value="AllergyIntolerance.reaction.substance.coding.version" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:snomed.code">
      <path value="AllergyIntolerance.reaction.substance.coding.code" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:snomed.display">
      <path value="AllergyIntolerance.reaction.substance.coding.display" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:ask">
      <path value="AllergyIntolerance.reaction.substance.coding" />
      <sliceName value="ask" />
      <definition value="Hier kann ein ASK-Code für die Substanz angegeben werden." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Coding" />
        <profile value="http://fhir.de/StructureDefinition/CodingASK" />
      </type>
      <patternCoding>
        <system value="http://fhir.de/CodeSystem/ask" />
      </patternCoding>
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://fhir.de/ValueSet/ask" />
      </binding>
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:ask.system">
      <path value="AllergyIntolerance.reaction.substance.coding.system" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:ask.code">
      <path value="AllergyIntolerance.reaction.substance.coding.code" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:ask.display">
      <path value="AllergyIntolerance.reaction.substance.coding.display" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:atc-de">
      <path value="AllergyIntolerance.reaction.substance.coding" />
      <sliceName value="atc-de" />
      <definition value="Hier kann ein deutscher ATC-Code für die Substanz angegeben werden." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Coding" />
        <profile value="http://fhir.de/StructureDefinition/CodingATC" />
      </type>
      <patternCoding>
        <system value="http://fhir.de/CodeSystem/bfarm/atc" />
      </patternCoding>
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://fhir.de/ValueSet/bfarm/atc" />
      </binding>
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:atc-de.system">
      <path value="AllergyIntolerance.reaction.substance.coding.system" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:atc-de.version">
      <path value="AllergyIntolerance.reaction.substance.coding.version" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:atc-de.code">
      <path value="AllergyIntolerance.reaction.substance.coding.code" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:atc-de.display">
      <path value="AllergyIntolerance.reaction.substance.coding.display" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.text">
      <path value="AllergyIntolerance.reaction.substance.text" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation">
      <path value="AllergyIntolerance.reaction.manifestation" />
      <definition value="In diesem Element können Angaben zur Manifestation der Reaktion gemacht werden." />
      <mustSupport value="true" />
    </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="Hier kann die Manifestation als codierte Information angegeben werden." />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.coding:snomed">
      <path value="AllergyIntolerance.reaction.manifestation.coding" />
      <sliceName value="snomed" />
      <definition value="Manifestation als SNOMED CT®-Code." />
      <min value="0" />
      <max value="1" />
      <patternCoding>
        <system value="http://snomed.info/sct" />
      </patternCoding>
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <valueSet value="https://gematik.de/fhir/terminology/ValueSet/epa-allergy-intolerance-reaction-snomed-ct-vs" />
      </binding>
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.coding:snomed.system">
      <path value="AllergyIntolerance.reaction.manifestation.coding.system" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.coding:snomed.version">
      <path value="AllergyIntolerance.reaction.manifestation.coding.version" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.coding:snomed.code">
      <path value="AllergyIntolerance.reaction.manifestation.coding.code" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.coding:snomed.display">
      <path value="AllergyIntolerance.reaction.manifestation.coding.display" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.text">
      <path value="AllergyIntolerance.reaction.manifestation.text" />
      <definition value="Bezeichnung bzw. Beschreibung der Manifestation als Freitext." />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.description">
      <path value="AllergyIntolerance.reaction.description" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.onset">
      <path value="AllergyIntolerance.reaction.onset" />
      <definition value="Datum eines Reaktionsereignisses." />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.severity">
      <path value="AllergyIntolerance.reaction.severity" />
      <definition value="Dieses Element enthält Informationen zum Schweregrad der Reaktion." />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.exposureRoute">
      <path value="AllergyIntolerance.reaction.exposureRoute" />
      <definition value="Hier kann der Expositionsweg des Allergens angegeben werden." />
      <mustSupport value="true" />
    </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 kann der Expositionsweg als codierte Information angegeben werden." />
      <mustSupport value="true" />
    </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>
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <valueSet value="https://gematik.de/fhir/terminology/ValueSet/epa-route-of-administration-snomed-ct-vs" />
      </binding>
    </element>
    <element id="AllergyIntolerance.reaction.exposureRoute.coding:snomed.system">
      <path value="AllergyIntolerance.reaction.exposureRoute.coding.system" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.exposureRoute.coding:snomed.version">
      <path value="AllergyIntolerance.reaction.exposureRoute.coding.version" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.exposureRoute.coding:snomed.code">
      <path value="AllergyIntolerance.reaction.exposureRoute.coding.code" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.exposureRoute.coding:snomed.display">
      <path value="AllergyIntolerance.reaction.exposureRoute.coding.display" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.exposureRoute.coding:edqmCode">
      <path value="AllergyIntolerance.reaction.exposureRoute.coding" />
      <sliceName value="edqmCode" />
      <definition value="EDQM-Code für die Bezeichnung des Expositionswegs." />
      <min value="0" />
      <max value="1" />
      <patternCoding>
        <system value="http://standardterms.edqm.eu" />
      </patternCoding>
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="https://gematik.de/fhir/terminology/ValueSet/epa-medicine-route-of-administration-edqm-vs" />
      </binding>
    </element>
    <element id="AllergyIntolerance.reaction.exposureRoute.coding:edqmCode.system">
      <path value="AllergyIntolerance.reaction.exposureRoute.coding.system" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.exposureRoute.coding:edqmCode.code">
      <path value="AllergyIntolerance.reaction.exposureRoute.coding.code" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.exposureRoute.coding:edqmCode.display">
      <path value="AllergyIntolerance.reaction.exposureRoute.coding.display" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.exposureRoute.text">
      <path value="AllergyIntolerance.reaction.exposureRoute.text" />
      <definition value="Hier kann der Expositionsweg als Freitext angegeben werden." />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>