<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="spark648" />
  <meta>
    <versionId value="spark687" />
    <lastUpdated value="2015-10-02T14:11:42.24+00:00" />
  </meta>
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">to do</div>
  </text>
  <url value="http://hl7.org/fhir/StructureDefinition/hspc-allergyintolerance" />
  <name value="HSPC Allergy Intolerance" />
  <status value="draft" />
  <publisher value="HSPC" />
  <contact>
    <telecom>
      <system value="other" />
      <value value="http://healthcaresoa.org" />
    </telecom>
  </contact>
  <date value="2015-07-28" />
  <description value="The HSPC specific profile for an allergy or intolerance" />
  <kind value="resource" />
  <constrainedType value="AllergyIntolerance" />
  <abstract value="false" />
  <base value="http://hl7.org/fhir/StructureDefinition/AllergyIntolerance" />
  <snapshot>
    <element>
      <path value="AllergyIntolerance" />
      <name value="hspc-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="AllergyIntolerance" />
      </type>
      <mapping>
        <identity value="w5" />
        <map value="clinical" />
      </mapping>
    </element>
    <element>
      <path value="AllergyIntolerance.id" />
      <short value="Logical id of this artifact" />
      <definition value="The logical id of the resource, as used in the url for the resource. Once assigned, this value never changes." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="AllergyIntolerance.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="id" />
      </type>
      <isSummary value="true" />
    </element>
    <element>
      <path value="AllergyIntolerance.meta" />
      <short value="Metadata about the resource" />
      <definition value="The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="AllergyIntolerance.meta" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Meta" />
      </type>
      <isSummary value="true" />
    </element>
    <element>
      <path value="AllergyIntolerance.implicitRules" />
      <short value="A set of rules under which this content was created" />
      <definition value="A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="AllergyIntolerance.implicitRules" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="uri" />
      </type>
      <isModifier value="true" />
      <isSummary value="true" />
    </element>
    <element>
      <path value="AllergyIntolerance.language" />
      <short value="Language of the resource content" />
      <definition value="The base language in which the resource is written." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="AllergyIntolerance.language" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <binding>
        <strength value="required" />
        <description value="A human language" />
        <valueSetUri value="http://tools.ietf.org/html/bcp47" />
      </binding>
    </element>
    <element>
      <path value="AllergyIntolerance.text" />
      <short value="Text summary of the resource, for human interpretation" />
      <definition value="A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it &quot;clinically safe&quot; for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety." />
      <alias value="narrative" />
      <alias value="html" />
      <alias value="xhtml" />
      <alias value="display" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="AllergyIntolerance.text" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Narrative" />
      </type>
      <condition value="dom-1" />
      <mapping>
        <identity value="rim" />
        <map value="Act.text?" />
      </mapping>
    </element>
    <element>
      <path value="AllergyIntolerance.contained" />
      <short value="Contained, inline Resources" />
      <definition value="These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope." />
      <alias value="inline resources" />
      <alias value="anonymous resources" />
      <alias value="contained resources" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="AllergyIntolerance.contained" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Resource" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element>
      <path value="AllergyIntolerance.extension" />
      <slicing>
        <discriminator value="url" />
        <ordered value="false" />
        <rules value="open" />
      </slicing>
      <short value="Additional Content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="AllergyIntolerance.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element>
      <path value="AllergyIntolerance.extension" />
      <name value="DateOfResolution" />
      <short value="Extension" />
      <definition value="An Extension" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="AllergyIntolerance.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/hspc-allergyintolerance-DateOfResolution" />
      </type>
    </element>
    <element>
      <path value="AllergyIntolerance.extension" />
      <name value="PatientIfnormedIndicator" />
      <short value="Extension" />
      <definition value="An Extension" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="AllergyIntolerance.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/hspc-allergyintolerance-PatientInformedInd" />
      </type>
      <binding>
        <strength value="preferred" />
        <description value="The set of values to indicate affirmative or negative" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/v2-0136" />
        </valueSetReference>
      </binding>
    </element>
    <element>
      <path value="AllergyIntolerance.extension" />
      <name value="CauseOfDeathInidcator" />
      <short value="Extension" />
      <definition value="An Extension" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="AllergyIntolerance.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/hspc-allergyintolerance-CauseOfDeathInd" />
      </type>
      <binding>
        <strength value="preferred" />
        <description value="The set of values to indicate affirmative or negative" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/v2-0136" />
        </valueSetReference>
      </binding>
    </element>
    <element>
      <path value="AllergyIntolerance.extension" />
      <name value="MedicationStatement" />
      <short value="Extension" />
      <definition value="An Extension" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="AllergyIntolerance.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Reference" />
        <profile value="http://hl7.org/fhir/StructureDefinition/medicationstatement-hspc-medicationstatement" />
      </type>
    </element>
    <element>
      <path value="AllergyIntolerance.modifierExtension" />
      <short value="Extensions that cannot be ignored" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="AllergyIntolerance.modifierExtension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <isModifier value="true" />
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element>
      <path value="AllergyIntolerance.identifier" />
      <short value="External Ids for this item" />
      <definition value="This records identifiers associated with this allergy/intolerance concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="AllergyIntolerance.identifier" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Identifier" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value=".id" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="id" />
      </mapping>
    </element>
    <element>
      <path value="AllergyIntolerance.onset" />
      <short value="Date(/time) when manifestations showed" />
      <definition value="Record of the date and/or time of the onset of the Allergy or Intolerance." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="AllergyIntolerance.onset" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="dateTime" />
      </type>
      <isSummary value="true" />
    </element>
    <element>
      <path value="AllergyIntolerance.recordedDate" />
      <short value="When recorded" />
      <definition value="Date when the sensitivity was recorded." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="AllergyIntolerance.recordedDate" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="dateTime" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value=".participation[typeCode=AUT].time" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="when.recorded" />
      </mapping>
    </element>
    <element>
      <path value="AllergyIntolerance.recorder" />
      <name value="Documented" />
      <short value="Who recorded the sensitivity" />
      <definition value="Individual who recorded the record and takes responsibility for its conten." />
      <alias value="Author" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="AllergyIntolerance.recorder" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Reference" />
        <profile value="http://hl7.org/fhir/StructureDefinition/hspc-provpract" />
      </type>
      <type>
        <code value="Reference" />
        <profile value="http://hl7.org/fhir/StructureDefinition/hspc-patient" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value=".participation[typeCode=AUT].role" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="who.author" />
      </mapping>
    </element>
    <element>
      <path value="AllergyIntolerance.patient" />
      <short value="Who the sensitivity is for" />
      <definition value="The patient who has the allergy or intolerance." />
      <alias value="Patient" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="AllergyIntolerance.patient" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="Reference" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Patient" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value=".participation[typeCode=SBJ].role[classCode=PAT]" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="who.focus" />
      </mapping>
    </element>
    <element>
      <path value="AllergyIntolerance.reporter" />
      <name value="ReportedReceived" />
      <short value="Source of the information about the allergy" />
      <definition value="The source of the information about the allergy that is recorded." />
      <alias value="Source" />
      <alias value="Informant" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="AllergyIntolerance.reporter" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Reference" />
        <profile value="http://hl7.org/fhir/StructureDefinition/hspc-provpract" />
      </type>
      <type>
        <code value="Reference" />
        <profile value="http://hl7.org/fhir/StructureDefinition/hspc-patient" />
      </type>
      <type>
        <code value="Reference" />
        <profile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="w5" />
        <map value="who.source" />
      </mapping>
    </element>
    <element>
      <path value="AllergyIntolerance.substance" />
      <short value="Substance, (or class) considered to be responsible for risk" />
      <definition value="Identification of a substance, or a class of substances, that is considered to be responsible for the Adverse reaction risk." />
      <alias value="Agent" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="AllergyIntolerance.substance" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <strength value="preferred" />
        <description value="A set of codes that describe materials or matter" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/hspc-substance" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="w5" />
        <map value="what" />
      </mapping>
    </element>
    <element>
      <path value="AllergyIntolerance.status" />
      <short value="active | unconfirmed | confirmed | inactive | resolved | refuted | entered-in-error" />
      <definition value="Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified Substance." />
      <alias value="State" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="AllergyIntolerance.status" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <isModifier value="true" />
      <isSummary value="true" />
      <binding>
        <strength value="preferred" />
        <description value="The set of codes that describe the state of an allergy or intolerance" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/hspc-allergyIntoleranceStatus" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="w5" />
        <map value="status" />
      </mapping>
    </element>
    <element>
      <path value="AllergyIntolerance.criticality" />
      <short value="CRITL | CRITH | CRITU" />
      <definition value="Estimate of the potential clinical harm, or seriousness, of the reaction to the identified Substance." />
      <alias value="Severity" />
      <alias value="Seriousness" />
      <alias value="Contra-indication" />
      <alias value="Risk" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="AllergyIntolerance.criticality" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <isSummary value="true" />
      <binding>
        <strength value="required" />
        <description value="Estimate of the potential clinical harm, or seriousness, of a reaction to an identified Substance" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/allergy-intolerance-criticality" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="w5" />
        <map value="grade" />
      </mapping>
    </element>
    <element>
      <path value="AllergyIntolerance.type" />
      <short value="immune | non-immune - Underlying mechanism (if known)" />
      <definition value="Identification of the underlying physiological mechanism for the Reaction Risk." />
      <alias value="Category" />
      <alias value="Class" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="AllergyIntolerance.type" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <isSummary value="true" />
      <binding>
        <strength value="preferred" />
        <description value="The set of codes that describe if a reaction is a allergy or intolerance." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/hspc-allergyIntoleranceType" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="w5" />
        <map value="class" />
      </mapping>
    </element>
    <element>
      <path value="AllergyIntolerance.category" />
      <name value="SubstanceCategory" />
      <short value="food | medication | environment | other - Category of Substance" />
      <definition value="Category of the identified Substance." />
      <alias value="Category" />
      <alias value="Type" />
      <alias value="Reaction Type" />
      <alias value="Class" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="AllergyIntolerance.category" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <isSummary value="true" />
      <binding>
        <strength value="preferred" />
        <description value="A set of codes that describe categorical classifications of materials or matter." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/hspc-substanceCategory" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="w5" />
        <map value="class" />
      </mapping>
    </element>
    <element>
      <path value="AllergyIntolerance.lastOccurence" />
      <short value="Date(/time) of last known occurence of a reaction" />
      <definition value="Represents the date and/or time of the last known occurence of a reaction event." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="AllergyIntolerance.lastOccurence" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="dateTime" />
      </type>
      <isSummary value="true" />
    </element>
    <element>
      <path value="AllergyIntolerance.notes" />
      <short value="Additional text not captured in other fields" />
      <definition value="Additional narrative about the propensity for the Adverse Reaction, not captured in other fields." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="AllergyIntolerance.notes" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Annotation" />
      </type>
    </element>
    <element>
      <path value="AllergyIntolerance.reaction" />
      <short value="Adverse Reaction Events linked to exposure to substance" />
      <definition value="Details about each Adverse Reaction Event linked to exposure to the identified Substance." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="AllergyIntolerance.reaction" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element>
      <path value="AllergyIntolerance.reaction.id" />
      <representation value="xmlAttr" />
      <short value="xml:id (or equivalent in JSON)" />
      <definition value="unique id for the element within a resource (for internal references)." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="AllergyIntolerance.reaction.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="id" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element>
      <path value="AllergyIntolerance.reaction.extension" />
      <short value="Additional Content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="AllergyIntolerance.reaction.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element>
      <path value="AllergyIntolerance.reaction.modifierExtension" />
      <short value="Extensions that cannot be ignored" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions." />
      <alias value="extensions" />
      <alias value="user content" />
      <alias value="modifiers" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="AllergyIntolerance.reaction.modifierExtension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <isModifier value="true" />
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element>
      <path value="AllergyIntolerance.reaction.substance" />
      <short value="Specific substance considered to be responsible for event" />
      <definition value="Identification of the specific substance considered to be responsible for the Adverse Reaction event. Note: the substance for a specific reaction may be different to the substance identified as the cause of the risk, but must be consistent with it. For instance, it may be a more specific substance (e.g. a brand medication) or a composite substance that includes the identified substance. It must be clinically safe to only process the AllergyIntolerance.substance and ignore the AllergyIntolerance.event.substance." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="AllergyIntolerance.reaction.substance" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <strength value="example" />
        <description value="Type of the substance" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/substance-code" />
        </valueSetReference>
      </binding>
    </element>
    <element>
      <path value="AllergyIntolerance.reaction.certainty" />
      <short value="unlikely | likely | confirmed - clinical certainty about the specific substance" />
      <definition value="Statement about the degree of clinical certainty that the Specific Substance was the cause of the Manifestation in this reaction event." />
      <alias value="Cause" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="AllergyIntolerance.reaction.certainty" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <isSummary value="true" />
      <binding>
        <strength value="required" />
        <description value="Statement about the degree of clinical certainty that a Specific Substance was the cause of the Manifestation in an reaction event" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/reaction-event-certainty" />
        </valueSetReference>
      </binding>
    </element>
    <element>
      <path value="AllergyIntolerance.reaction.manifestation" />
      <name value="ReactionToSubstance" />
      <short value="Clinical symptoms/signs associated with the Event" />
      <definition value="Clinical symptoms and/or signs that are observed or associated with the Adverse Reaction Event." />
      <alias value="Symptoms" />
      <alias value="Signs" />
      <min value="1" />
      <max value="*" />
      <base>
        <path value="AllergyIntolerance.reaction.manifestation" />
        <min value="1" />
        <max value="*" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <strength value="preferred" />
        <description value="The set of codes that descibe the findings of a reaction" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/hspc-clinicalFinding" />
        </valueSetReference>
      </binding>
    </element>
    <element>
      <path value="AllergyIntolerance.reaction.description" />
      <short value="Description of the event as a whole" />
      <definition value="Text description about the Reaction as a whole, including details of the manifestation if required." />
      <alias value="Narrative" />
      <alias value="Text" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="AllergyIntolerance.reaction.description" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
    </element>
    <element>
      <path value="AllergyIntolerance.reaction.onset" />
      <short value="Date(/time) when manifestations showed" />
      <definition value="Record of the date and/or time of the onset of the Reaction." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="AllergyIntolerance.reaction.onset" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="dateTime" />
      </type>
      <isSummary value="true" />
    </element>
    <element>
      <path value="AllergyIntolerance.reaction.severity" />
      <short value="mild | moderate | severe (of event as a whole)" />
      <definition value="Clinical assessment of the severity of the reaction event as a whole, potentially considering multiple different manifestations." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="AllergyIntolerance.reaction.severity" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <isSummary value="true" />
      <binding>
        <strength value="preferred" />
        <description value="The set of codes that describe the seriousness of a reaction" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/hspc-severity" />
        </valueSetReference>
      </binding>
    </element>
    <element>
      <path value="AllergyIntolerance.reaction.exposureRoute" />
      <short value="How the subject was exposed to the substance" />
      <definition value="Identification of the route by which the subject was exposed to the substance." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="AllergyIntolerance.reaction.exposureRoute" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <strength value="preferred" />
        <description value="The set of codes that describe the means by which a substance got into or onto a patient that caused a reaction." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/v3-RouteOfAdministration" />
        </valueSetReference>
      </binding>
    </element>
    <element>
      <path value="AllergyIntolerance.reaction.notes" />
      <short value="Text about event not captured in other fields" />
      <definition value="Additional text about the Adverse Reaction event not captured in other fields." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="AllergyIntolerance.reaction.notes" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Annotation" />
      </type>
    </element>
  </snapshot>
  <differential>
    <element>
      <path value="AllergyIntolerance" />
      <name value="hspc-allergyintolerance" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="AllergyIntolerance" />
      </type>
    </element>
    <element>
      <path value="AllergyIntolerance.extension" />
      <name value="DateOfResolution" />
      <slicing>
        <discriminator value="url" />
        <ordered value="false" />
        <rules value="open" />
      </slicing>
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/hspc-allergyintolerance-DateOfResolution" />
      </type>
    </element>
    <element>
      <path value="AllergyIntolerance.extension" />
      <name value="PatientIfnormedIndicator" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/hspc-allergyintolerance-PatientInformedInd" />
      </type>
      <binding>
        <strength value="preferred" />
        <description value="The set of values to indicate affirmative or negative" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/v2-0136" />
        </valueSetReference>
      </binding>
    </element>
    <element>
      <path value="AllergyIntolerance.extension" />
      <name value="CauseOfDeathInidcator" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/hspc-allergyintolerance-CauseOfDeathInd" />
      </type>
      <binding>
        <strength value="preferred" />
        <description value="The set of values to indicate affirmative or negative" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/v2-0136" />
        </valueSetReference>
      </binding>
    </element>
    <element>
      <path value="AllergyIntolerance.extension" />
      <name value="MedicationStatement" />
      <type>
        <code value="Reference" />
        <profile value="http://hl7.org/fhir/StructureDefinition/medicationstatement-hspc-medicationstatement" />
      </type>
    </element>
    <element>
      <path value="AllergyIntolerance.recorder" />
      <name value="Documented" />
      <type>
        <code value="Reference" />
        <profile value="http://hl7.org/fhir/StructureDefinition/hspc-provpract" />
      </type>
      <type>
        <code value="Reference" />
        <profile value="http://hl7.org/fhir/StructureDefinition/hspc-patient" />
      </type>
    </element>
    <element>
      <path value="AllergyIntolerance.reporter" />
      <name value="ReportedReceived" />
      <type>
        <code value="Reference" />
        <profile value="http://hl7.org/fhir/StructureDefinition/hspc-provpract" />
      </type>
      <type>
        <code value="Reference" />
        <profile value="http://hl7.org/fhir/StructureDefinition/hspc-patient" />
      </type>
      <type>
        <code value="Reference" />
        <profile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
      </type>
    </element>
    <element>
      <path value="AllergyIntolerance.substance" />
      <binding>
        <strength value="preferred" />
        <description value="A set of codes that describe materials or matter" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/hspc-substance" />
        </valueSetReference>
      </binding>
    </element>
    <element>
      <path value="AllergyIntolerance.status" />
      <binding>
        <strength value="preferred" />
        <description value="The set of codes that describe the state of an allergy or intolerance" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/hspc-allergyIntoleranceStatus" />
        </valueSetReference>
      </binding>
    </element>
    <element>
      <path value="AllergyIntolerance.type" />
      <binding>
        <strength value="preferred" />
        <description value="The set of codes that describe if a reaction is a allergy or intolerance." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/hspc-allergyIntoleranceType" />
        </valueSetReference>
      </binding>
    </element>
    <element>
      <path value="AllergyIntolerance.category" />
      <name value="SubstanceCategory" />
      <binding>
        <strength value="preferred" />
        <description value="A set of codes that describe categorical classifications of materials or matter." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/hspc-substanceCategory" />
        </valueSetReference>
      </binding>
    </element>
    <element>
      <path value="AllergyIntolerance.reaction" />
    </element>
    <element>
      <path value="AllergyIntolerance.reaction.manifestation" />
      <name value="ReactionToSubstance" />
      <binding>
        <strength value="preferred" />
        <description value="The set of codes that descibe the findings of a reaction" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/hspc-clinicalFinding" />
        </valueSetReference>
      </binding>
    </element>
    <element>
      <path value="AllergyIntolerance.reaction.severity" />
      <binding>
        <strength value="preferred" />
        <description value="The set of codes that describe the seriousness of a reaction" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/hspc-severity" />
        </valueSetReference>
      </binding>
    </element>
    <element>
      <path value="AllergyIntolerance.reaction.exposureRoute" />
      <binding>
        <strength value="preferred" />
        <description value="The set of codes that describe the means by which a substance got into or onto a patient that caused a reaction." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/v3-RouteOfAdministration" />
        </valueSetReference>
      </binding>
    </element>
  </differential>
</StructureDefinition>