<StructureDefinition xmlns="http://hl7.org/fhir">
  <meta>
    <lastUpdated value="2017-08-25T13:56:52.292+01:00" />
  </meta>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="pc" />
  </extension>
  <url value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-AllergyIntolerance-1" />
  <version value="0.0.1" />
  <name value="CareConnect-AllergyIntolerance-1" />
  <status value="draft" />
  <date value="2017-07-13T08:24:34.7834577+01:00" />
  <publisher value="HL7 UK" />
  <description value="This AllergyIntolerance Resource records Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance." />
  <copyright value="Copyright © 2016 HL7 UK&#xD;&#xA;&#xD;&#xA;Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); you may not use this file except in compliance with the License. You may obtain a copy of the License at&#xD;&#xA;&#xD;&#xA;http://www.apache.org/licenses/LICENSE-2.0&#xD;&#xA;&#xD;&#xA;Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.&#xD;&#xA;&#xD;&#xA;HL7® FHIR® standard Copyright © 2011+ HL7&#xD;&#xA;&#xD;&#xA;The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at&#xD;&#xA;&#xD;&#xA;https://www.hl7.org/fhir/license.html" />
  <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>
      <path value="AllergyIntolerance.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="AllergyIntolerance.extension:encounter">
      <path value="AllergyIntolerance.extension" />
      <sliceName value="encounter" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/encounter-associatedEncounter" />
      </type>
    </element>
    <element id="AllergyIntolerance.extension:endDate">
      <path value="AllergyIntolerance.extension" />
      <sliceName value="endDate" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-AllergyIntoleranceEndDate-1" />
      </type>
    </element>
    <element id="AllergyIntolerance.extension:evidence">
      <path value="AllergyIntolerance.extension" />
      <sliceName value="evidence" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-Evidence-1" />
      </type>
    </element>
    <element id="AllergyIntolerance.extension:probabilityOfRecurrence">
      <path value="AllergyIntolerance.extension" />
      <sliceName value="probabilityOfRecurrence" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-ProbabilityOfRecurrence-1" />
      </type>
    </element>
    <element id="AllergyIntolerance.identifier.system">
      <path value="AllergyIntolerance.identifier.system" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.identifier.value">
      <path value="AllergyIntolerance.identifier.value" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.identifier.assigner">
      <path value="AllergyIntolerance.identifier.assigner" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1" />
      </type>
    </element>
    <element id="AllergyIntolerance.patient">
      <path value="AllergyIntolerance.patient" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1" />
      </type>
    </element>
    <element id="AllergyIntolerance.recorder">
      <path value="AllergyIntolerance.recorder" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1" />
      </type>
    </element>
    <element id="AllergyIntolerance.asserter">
      <path value="AllergyIntolerance.asserter" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1" />
      </type>
    </element>
    <element id="AllergyIntolerance.note.author[x]">
      <path value="AllergyIntolerance.note.author[x]" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
      </type>
      <type>
        <code value="string" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1" />
      </type>
    </element>
    <element>
      <path value="AllergyIntolerance.reaction.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="AllergyIntolerance.reaction.extension:allergyCertainty">
      <path value="AllergyIntolerance.reaction.extension" />
      <sliceName value="allergyCertainty" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-AllergyCertainty-1" />
      </type>
    </element>
    <element id="AllergyIntolerance.reaction.extension:allergySeverity">
      <path value="AllergyIntolerance.reaction.extension" />
      <sliceName value="allergySeverity" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-AllergySeverity-1" />
      </type>
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding">
      <path value="AllergyIntolerance.reaction.substance.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:snomedCT">
      <path value="AllergyIntolerance.reaction.substance.coding" />
      <sliceName value="snomedCT" />
      <max value="1" />
    </element>
    <element>
      <path value="AllergyIntolerance.reaction.substance.coding.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:snomedCT.extension:snomedCTDescriptionID">
      <path value="AllergyIntolerance.reaction.substance.coding.extension" />
      <sliceName value="snomedCTDescriptionID" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid" />
      </type>
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:snomedCT.system">
      <path value="AllergyIntolerance.reaction.substance.coding.system" />
      <min value="1" />
      <fixedUri value="http://snomed.info/sct" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:snomedCT.version">
      <path value="AllergyIntolerance.reaction.substance.coding.version" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:snomedCT.code">
      <path value="AllergyIntolerance.reaction.substance.coding.code" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:snomedCT.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="AllergyIntolerance.reaction.substance.coding.display" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.coding">
      <path value="AllergyIntolerance.reaction.manifestation.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.coding:snomedCT">
      <path value="AllergyIntolerance.reaction.manifestation.coding" />
      <sliceName value="snomedCT" />
      <max value="1" />
    </element>
    <element>
      <path value="AllergyIntolerance.reaction.manifestation.coding.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.coding:snomedCT.extension:snomedCTDescriptionID">
      <path value="AllergyIntolerance.reaction.manifestation.coding.extension" />
      <sliceName value="snomedCTDescriptionID" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid" />
      </type>
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.coding:snomedCT.system">
      <path value="AllergyIntolerance.reaction.manifestation.coding.system" />
      <min value="1" />
      <fixedUri value="http://snomed.info/sct" />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.coding:snomedCT.version">
      <path value="AllergyIntolerance.reaction.manifestation.coding.version" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.coding:snomedCT.code">
      <path value="AllergyIntolerance.reaction.manifestation.coding.code" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.coding:snomedCT.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="AllergyIntolerance.reaction.manifestation.coding.display" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.reaction.severity">
      <path value="AllergyIntolerance.reaction.severity" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.reaction.exposureRoute.coding">
      <path value="AllergyIntolerance.reaction.exposureRoute.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
    </element>
    <element id="AllergyIntolerance.reaction.exposureRoute.coding:snomedCT">
      <path value="AllergyIntolerance.reaction.exposureRoute.coding" />
      <sliceName value="snomedCT" />
      <max value="1" />
    </element>
    <element>
      <path value="AllergyIntolerance.reaction.exposureRoute.coding.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="AllergyIntolerance.reaction.exposureRoute.coding:snomedCT.extension:snomedCTDescriptionID">
      <path value="AllergyIntolerance.reaction.exposureRoute.coding.extension" />
      <sliceName value="snomedCTDescriptionID" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid" />
      </type>
    </element>
    <element id="AllergyIntolerance.reaction.exposureRoute.coding:snomedCT.system">
      <path value="AllergyIntolerance.reaction.exposureRoute.coding.system" />
      <min value="1" />
      <fixedUri value="http://snomed.info/sct" />
    </element>
    <element id="AllergyIntolerance.reaction.exposureRoute.coding:snomedCT.version">
      <path value="AllergyIntolerance.reaction.exposureRoute.coding.version" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.reaction.exposureRoute.coding:snomedCT.code">
      <path value="AllergyIntolerance.reaction.exposureRoute.coding.code" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.reaction.exposureRoute.coding:snomedCT.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="AllergyIntolerance.reaction.exposureRoute.coding.display" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.reaction.note.author[x]">
      <path value="AllergyIntolerance.reaction.note.author[x]" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
      </type>
      <type>
        <code value="string" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1" />
      </type>
    </element>
  </differential>
</StructureDefinition>