<StructureDefinition xmlns="http://hl7.org/fhir">
  <meta>
    <lastUpdated value="2018-10-19T14:13:16.453+01:00" />
  </meta>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="pc" />
  </extension>
  <url value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-AllergyIntolerance-1" />
  <version value="1.2.0" />
  <name value="CareConnect-ITK-AllergyIntolerance-1" />
  <status value="active" />
  <date value="2024-01-22T11:39:06.3872207+00:00" />
  <publisher value="NHS Digital" />
  <contact>
    <name value="Interoperability Team" />
    <telecom>
      <system value="email" />
      <value value="interoperabilityteam@nhs.net" />
      <use value="work" />
    </telecom>
  </contact>
  <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." />
  <purpose value="CURATED BY INTEROPen see: http://www.interopen.org/careconnect-curation-methodology/" />
  <copyright value="Copyright © 2018 NHS Digital" />
  <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 id="AllergyIntolerance">
      <path value="AllergyIntolerance" />
      <definition value="Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance." />
    </element>
    <element id="AllergyIntolerance.extension">
      <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="https://fhir.nhs.uk/STU3/StructureDefinition/Extension-ITK-AssociatedEncounter-1" />
      </type>
    </element>
    <element id="AllergyIntolerance.extension:allergyEnd">
      <path value="AllergyIntolerance.extension" />
      <sliceName value="allergyEnd" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-AllergyIntoleranceEnd-1" />
      </type>
    </element>
    <element id="AllergyIntolerance.extension:allergyEnd.url">
      <path value="AllergyIntolerance.extension.url" />
      <fixedUri value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-AllergyIntoleranceEnd-1" />
    </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:evidence.url">
      <path value="AllergyIntolerance.extension.url" />
      <fixedUri value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-Evidence-1" />
    </element>
    <element id="AllergyIntolerance.identifier.type.coding.system">
      <path value="AllergyIntolerance.identifier.type.coding.system" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.identifier.type.coding.code">
      <path value="AllergyIntolerance.identifier.type.coding.code" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.identifier.type.coding.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="AllergyIntolerance.identifier.type.coding.display" />
      <min value="1" />
    </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.verificationStatus">
      <path value="AllergyIntolerance.verificationStatus" />
      <short value="unconfirmed | confirmed" />
    </element>
    <element id="AllergyIntolerance.code">
      <path value="AllergyIntolerance.code" />
      <min value="1" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="AllergyIntoleranceCode" />
        </extension>
        <strength value="required" />
        <valueSetReference>
          <reference value="https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-AllergyCode-1" />
        </valueSetReference>
      </binding>
    </element>
    <element id="AllergyIntolerance.code.extension">
      <path value="AllergyIntolerance.code.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="AllergyIntolerance.code.extension:snomedCTDescriptionID">
      <path value="AllergyIntolerance.code.extension" />
      <sliceName value="snomedCTDescriptionID" />
      <definition value="The SNOMED CT Description ID for the display" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid" />
      </type>
    </element>
    <element id="AllergyIntolerance.code.coding">
      <path value="AllergyIntolerance.code.coding" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.code.coding.system">
      <path value="AllergyIntolerance.code.coding.system" />
      <min value="1" />
      <fixedUri value="http://snomed.info/sct" />
    </element>
    <element id="AllergyIntolerance.code.coding.code">
      <path value="AllergyIntolerance.code.coding.code" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.code.coding.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="AllergyIntolerance.code.coding.display" />
      <min value="1" />
    </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.patient.reference">
      <path value="AllergyIntolerance.patient.reference" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.onset[x]">
      <path value="AllergyIntolerance.onset[x]" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.assertedDate">
      <path value="AllergyIntolerance.assertedDate" />
      <min value="1" />
    </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.recorder.reference">
      <path value="AllergyIntolerance.recorder.reference" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.asserter">
      <path value="AllergyIntolerance.asserter" />
      <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>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/ITK-RelatedPerson-1" />
      </type>
    </element>
    <element id="AllergyIntolerance.asserter.reference">
      <path value="AllergyIntolerance.asserter.reference" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.note.author[x]:authorReference">
      <path value="AllergyIntolerance.note.author[x]" />
      <sliceName value="authorReference" />
      <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>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/ITK-RelatedPerson-1" />
      </type>
    </element>
    <element id="AllergyIntolerance.note.author[x]:authorReference.reference">
      <path value="AllergyIntolerance.note.author[x].reference" />
      <min value="1" />
    </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 id="AllergyIntolerance.reaction.substance.coding:snomedCT.extension">
      <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" />
      <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">
      <path value="AllergyIntolerance.reaction.manifestation" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Manifestation" />
        </extension>
        <strength value="extensible" />
        <valueSetReference>
          <reference value="https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-AllergyManifestation-1" />
        </valueSetReference>
      </binding>
    </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 id="AllergyIntolerance.reaction.manifestation.coding:snomedCT.extension">
      <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" />
      <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.exposureRoute">
      <path value="AllergyIntolerance.reaction.exposureRoute" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="RouteOfAdministration" />
        </extension>
        <strength value="example" />
        <valueSetReference>
          <reference value="https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-AllergyExposureRoute-1" />
        </valueSetReference>
      </binding>
    </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 id="AllergyIntolerance.reaction.exposureRoute.coding:snomedCT.extension">
      <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" />
      <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">
      <path value="AllergyIntolerance.reaction.note" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.reaction.note.author[x]">
      <path value="AllergyIntolerance.reaction.note.author[x]" />
      <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>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/ITK-RelatedPerson-1" />
      </type>
    </element>
  </differential>
</StructureDefinition>