<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="http://example.org/allergyintolerance" />
  <name value="MyAllergyIntolerance" />
  <status value="draft" />
  <date value="2018-01-15T15:25:42.252+01:00" />
  <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" />
  <snapshot>
    <element id="AllergyIntolerance">
      <path value="AllergyIntolerance" />
      <short value="Allergy or Intolerance (generally: Risk Of Adverse reaction to a substance)" />
      <definition value="Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance." />
      <alias value="Allergy" />
      <alias value="Intolerance" />
      <alias value="Adverse Reaction" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="AllergyIntolerance" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="DomainResource" />
      </type>
      <mapping>
        <identity value="w5" />
        <map value="clinical.general" />
      </mapping>
    </element>
  </snapshot>
  <differential>
    <element id="AllergyIntolerance.clinicalStatus">
      <path value="AllergyIntolerance.clinicalStatus" />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>