<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="fmc-allergyintolerance-profile" />
  <url value="http://fkcfhir.org/fhir/StructureDefinition/fmc-allergyintolerance-profile" />
  <name value="FreseniusAllergyIntolerance" />
  <title value="Fresenius Allergy Intolerance Profile" />
  <status value="active" />
  <description value="Fresenius Allergy Intolerance Profile" />
  <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/us/core/StructureDefinition/us-core-allergyintolerance" />
  <derivation value="constraint" />
  <differential>
    <element id="AllergyIntolerance.extension">
      <path value="AllergyIntolerance.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.extension:allergyCategoryCd">
      <extension url="http://fkcfhir.org/fhir/StructureDefinition/fmc-allergy-category-extn" />
      <path value="AllergyIntolerance.extension" />
      <sliceName value="allergyCategoryCd" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://fkcfhir.org/fhir/StructureDefinition/fmc-allergy-category-extn" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.category">
      <path value="AllergyIntolerance.category" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.code">
      <path value="AllergyIntolerance.code" />
      <binding>
        <strength value="required" />
        <valueSet value="http://fkcfhir.org/fhir/ValueSet/fmc-allergy-code-vs" />
      </binding>
    </element>
    <element id="AllergyIntolerance.patient">
      <path value="AllergyIntolerance.patient" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fkcfhir.org/fhir/StructureDefinition/fmc-patient-profile" />
      </type>
    </element>
    <element id="AllergyIntolerance.recordedDate">
      <path value="AllergyIntolerance.recordedDate" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.recorder">
      <path value="AllergyIntolerance.recorder" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fkcfhir.org/fhir/StructureDefinition/fmc-practitioner-profile" />
      </type>
    </element>
  </differential>
</StructureDefinition>