<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="http://fhir.de/StructureDefinition/allergyintolerance-de-basis/0.2" />
  <version value="0.2" />
  <name value="allergyintolerance-de-basis-0.2" />
  <title value="AllergyIntolerance, deutsches Basisprofil (Version 0.2)" />
  <status value="draft" />
  <date value="2018-06-05" />
  <publisher value="HL7 Deutschland e.V. (Technisches Komitee FHIR)" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://hl7.de/technische-komitees/fhir/" />
    </telecom>
  </contact>
  <description value="Basisprofil für die Verwendung der AllergyIntolerance Ressource in Deutschland" />
  <copyright value="HL7 Deutschland e.V." />
  <fhirVersion value="3.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.patient">
      <path value="AllergyIntolerance.patient" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.de/StructureDefinition/patient-de-basis/0.2" />
      </type>
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding">
      <path value="AllergyIntolerance.reaction.substance.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:atc">
      <path value="AllergyIntolerance.reaction.substance.coding" />
      <sliceName value="atc" />
      <short value="ATC-Code" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:atc.system">
      <path value="AllergyIntolerance.reaction.substance.coding.system" />
      <min value="1" />
      <fixedUri value="http://www.whocc.no/atc" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:atc.code">
      <path value="AllergyIntolerance.reaction.substance.coding.code" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:edqm">
      <path value="AllergyIntolerance.reaction.substance.coding" />
      <sliceName value="edqm" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:edqm.system">
      <path value="AllergyIntolerance.reaction.substance.coding.system" />
      <min value="1" />
      <fixedUri value="urn:oid:0.4.0.127.0.16.1.1.2.1" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:edqm.code">
      <path value="AllergyIntolerance.reaction.substance.coding.code" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:pzn">
      <path value="AllergyIntolerance.reaction.substance.coding" />
      <sliceName value="pzn" />
      <binding>
        <strength value="required" />
        <valueSetUri value="http://fhir.de/ValueSet/ifa/pzn" />
      </binding>
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:pzn.system">
      <path value="AllergyIntolerance.reaction.substance.coding.system" />
      <min value="1" />
      <fixedUri value="http://fhir.de/CodeSystem/ifa/pzn" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:pzn.code">
      <path value="AllergyIntolerance.reaction.substance.coding.code" />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>