<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://example.org/fhir/StructureDefinition/MyAllergyIntolerance" />
  <name value="MyAllergyIntolerance" />
  <status value="draft" />
  <contact>
    <name value="zahra" />
  </contact>
  <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.extension">
      <path value="AllergyIntolerance.extension" />
      <code>
        <system value="http://loinc.org" />
      </code>
      <min value="2" />
    </element>
    <element id="AllergyIntolerance.extension:ZahraExtensionTest">
      <path value="AllergyIntolerance.extension" />
      <sliceName value="ZahraExtensionTest" />
      <min value="2" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/openEHR-test" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="AllergyIntolerance.category">
      <path value="AllergyIntolerance.category" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.recordedDate">
      <path value="AllergyIntolerance.recordedDate" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.reaction">
      <path value="AllergyIntolerance.reaction" />
      <min value="1" />
      <max value="1" />
    </element>
  </differential>
</StructureDefinition>