<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="http://hs-osnabrueck.de/fhir/eWundbericht/StructureDefinition/AllergyIntolerance" />
  <name value="AllergyIntolerance" />
  <version value="0.9" />
  <status value="draft" />
  <publisher value="Hochschule Osnabrück" />
  <contact>
    <name value="Mareike Przysucha" />
    <telecom>
      <system value="email" />
      <value value="ewundbericht@hs-osnabrueck.de" />
      <use value="work" />
    </telecom>
    <telecom>
      <system value="phone" />
      <value value="+49 541 969 3354" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="Profile for the description of allergies or intolerances." />
  <copyright value="Forschungsgruppe Informatik im Gesundheitswesen, Fakultät Wirtschafts- und Sozialwissenschaften, Hochschule Osnabrück" />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="AllergyIntolerance" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/AllergyIntolerance" />
  <derivation value="constraint" />
  <differential>
    <element id="AllergyIntolerance.criticality">
      <path value="AllergyIntolerance.criticality" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.code">
      <path value="AllergyIntolerance.code" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.code.coding">
      <path value="AllergyIntolerance.code.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="AllergyIntolerance.code.coding:SNOMED">
      <path value="AllergyIntolerance.code.coding" />
      <sliceName value="SNOMED" />
      <binding>
        <strength value="example" />
        <valueSet value="http://hs-osnabrueck.de/fhir/eWundbericht/ValueSet/allergy-code" />
      </binding>
    </element>
    <element id="AllergyIntolerance.code.coding:SNOMED.system">
      <path value="AllergyIntolerance.code.coding.system" />
      <fixedUri value="http://snomed.info/sct" />
    </element>
    <element id="AllergyIntolerance.patient">
      <path value="AllergyIntolerance.patient" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hs-osnabrueck.de/fhir/eWundbericht/StructureDefinition/Patient" />
      </type>
    </element>
    <element id="AllergyIntolerance.reaction.substance">
      <path value="AllergyIntolerance.reaction.substance" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.extension">
      <path value="AllergyIntolerance.reaction.substance.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="AllergyIntolerance.reaction.substance.extension:substanceReference">
      <path value="AllergyIntolerance.reaction.substance.extension" />
      <sliceName value="substanceReference" />
      <type>
        <code value="Extension" />
        <profile value="http://hs-osnabrueck.de/fhir/eWundbericht/StructureDefinition/AllergySubstance" />
      </type>
    </element>
    <element id="AllergyIntolerance.reaction.substance.extension:substanceReference.value[x]">
      <path value="AllergyIntolerance.reaction.substance.extension.value[x]" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation">
      <path value="AllergyIntolerance.reaction.manifestation" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.extension">
      <path value="AllergyIntolerance.reaction.manifestation.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.extension:manifestationReference">
      <path value="AllergyIntolerance.reaction.manifestation.extension" />
      <sliceName value="manifestationReference" />
      <type>
        <code value="Extension" />
        <profile value="http://hs-osnabrueck.de/fhir/eWundbericht/StructureDefinition/AllergyManifestation" />
      </type>
      <mustSupport value="false" />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.extension:manifestationReference.value[x]">
      <path value="AllergyIntolerance.reaction.manifestation.extension.value[x]" />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>