<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="shr-allergy-AllergyIntolerance" />
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>
        <b>SHR AllergyIntolerance Profile</b>
      </p>
      <p>A finding related to the presence or absence of an individual's risk or sensitivity to a substance or class of substances. A finding can be taken as tantamount to a representation of an allergic condition, allowing it to be tracked over time.</p>
      <p>
        <b>SHR Mapping Summary</b>
      </p>
      <p>
        <pre>shr.allergy.AllergyIntolerance maps to http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance:
  Informant maps to asserter
  Author maps to recorder
  CodeableConcept maps to code
  ClinicalStatus maps to clinicalStatus
  Entry.CreationTime maps to assertedDate
  Subject maps to patient
  Type maps to type
  Criticality maps to criticality
  SubstanceCategory maps to category
  VerificationStatus maps to verificationStatus
  Onset maps to onset[x]
  MostRecentOccurrenceTime maps to lastOccurrence
  AdverseReaction.AllergenIrritant maps to reaction.substance
  AdverseReaction.Manifestation maps to reaction.manifestation
  AdverseReaction.Details maps to reaction.description
  AdverseReaction.OccurrenceTime maps to reaction.onset
  AdverseReaction.Severity maps to reaction.severity
  AdverseReaction.RouteIntoBody maps to reaction.exposureRoute
</pre>
      </p>
    </div>
  </text>
  <url value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-allergy-AllergyIntolerance" />
  <identifier>
    <system value="http://standardhealthrecord.org" />
    <value value="shr.allergy.AllergyIntolerance" />
  </identifier>
  <version value="0.0.1" />
  <name value="SHR AllergyIntolerance Profile" />
  <status value="draft" />
  <date value="2017-12-20" />
  <publisher value="The MITRE Corporation: Standard Health Record Collaborative" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://standardhealthrecord.org" />
    </telecom>
  </contact>
  <description value="A finding related to the presence or absence of an individual's risk or sensitivity to a substance or class of substances. A finding can be taken as tantamount to a representation of an allergic condition, allowing it to be tracked over time." />
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166" />
      <code value="US" />
      <display value="United States Minor Outlying Islands (the)" />
    </coding>
  </jurisdiction>
  <fhirVersion value="3.0.1" />
  <mapping>
    <identity value="argonaut-dq-dstu2" />
    <uri value="http://unknown.org/Argonaut DQ DSTU2" />
    <name value="Argonaut DQ DSTU2" />
  </mapping>
  <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/w5" />
    <name value="W5 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:shr-allergy-AllergyIntolerance">
      <path value="AllergyIntolerance" />
      <short value="SHR AllergyIntolerance Profile" />
      <definition value="A finding related to the presence or absence of an individual's risk or sensitivity to a substance or class of substances. A finding can be taken as tantamount to a representation of an allergic condition, allowing it to be tracked over time." />
      <mustSupport value="false" />
    </element>
    <element id="AllergyIntolerance:shr-allergy-AllergyIntolerance.extension:relatedencounter">
      <path value="AllergyIntolerance.extension" />
      <sliceName value="relatedencounter" />
      <definition value="If content was generated during a patient encounter, related encounter is the encounter where the information was gained." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-RelatedEncounter-extension" />
      </type>
    </element>
    <element id="AllergyIntolerance:shr-allergy-AllergyIntolerance.extension:focalsubject">
      <path value="AllergyIntolerance.extension" />
      <sliceName value="focalsubject" />
      <definition value="For use when FHIR's subject does not allow the desired type of Subject in the Finding.Subject field." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-finding-FocalSubject-extension" />
      </type>
    </element>
    <element id="AllergyIntolerance:shr-allergy-AllergyIntolerance.extension:focalsubjectreference">
      <path value="AllergyIntolerance.extension" />
      <sliceName value="focalsubjectreference" />
      <definition value="For use when FHIR's subject does not allow the desired type of Subject in the Finding.Subject field." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-finding-FocalSubjectReference-extension" />
      </type>
    </element>
    <element id="AllergyIntolerance:shr-allergy-AllergyIntolerance.extension:findingmethod">
      <path value="AllergyIntolerance.extension" />
      <sliceName value="findingmethod" />
      <definition value="The technique used to create the finding, for example, the specific imaging technical, lab test code, or assessment vehicle." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-finding-FindingMethod-extension" />
      </type>
    </element>
    <element id="AllergyIntolerance:shr-allergy-AllergyIntolerance.extension:findingstatus">
      <path value="AllergyIntolerance.extension" />
      <sliceName value="findingstatus" />
      <definition value="Indicates whether the finding is preliminary, amended, final, etc.." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-finding-FindingStatus-extension" />
      </type>
    </element>
    <element id="AllergyIntolerance:shr-allergy-AllergyIntolerance.extension:evidence">
      <path value="AllergyIntolerance.extension" />
      <sliceName value="evidence" />
      <definition value="A symptom, observation, or other item, for example, a radiology report, that serves as evidence for the current assessment." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-finding-Evidence-extension" />
      </type>
    </element>
    <element id="AllergyIntolerance:shr-allergy-AllergyIntolerance.extension:abatement">
      <path value="AllergyIntolerance.extension" />
      <sliceName value="abatement" />
      <definition value="The end, remission or resolution." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-condition-Abatement-extension" />
      </type>
    </element>
    <element id="AllergyIntolerance:shr-allergy-AllergyIntolerance.code">
      <path value="AllergyIntolerance.code" />
      <binding>
        <strength value="required" />
        <valueSetReference>
          <reference value="http://standardhealthrecord.org/shr/allergy/vs/AllergenIrritantVS" />
        </valueSetReference>
      </binding>
    </element>
    <element id="AllergyIntolerance:shr-allergy-AllergyIntolerance.patient">
      <path value="AllergyIntolerance.patient" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Patient" />
      </type>
    </element>
    <element id="AllergyIntolerance:shr-allergy-AllergyIntolerance.onset[x]">
      <path value="AllergyIntolerance.onset[x]" />
      <type>
        <code value="dateTime" />
      </type>
      <type>
        <code value="Age" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-GestationalAge" />
      </type>
      <type>
        <code value="Period" />
      </type>
    </element>
    <element id="AllergyIntolerance:shr-allergy-AllergyIntolerance.assertedDate">
      <path value="AllergyIntolerance.assertedDate" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="AllergyIntolerance:shr-allergy-AllergyIntolerance.recorder">
      <path value="AllergyIntolerance.recorder" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Patient" />
      </type>
    </element>
    <element id="AllergyIntolerance:shr-allergy-AllergyIntolerance.asserter">
      <path value="AllergyIntolerance.asserter" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Patient" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-RelatedPerson" />
      </type>
    </element>
    <element id="AllergyIntolerance:shr-allergy-AllergyIntolerance.reaction">
      <path value="AllergyIntolerance.reaction" />
    </element>
    <element id="AllergyIntolerance:shr-allergy-AllergyIntolerance.reaction.substance">
      <path value="AllergyIntolerance.reaction.substance" />
      <binding>
        <strength value="required" />
        <valueSetReference>
          <reference value="http://standardhealthrecord.org/shr/allergy/vs/AllergenIrritantVS" />
        </valueSetReference>
      </binding>
    </element>
    <element id="AllergyIntolerance:shr-allergy-AllergyIntolerance.reaction.manifestation">
      <path value="AllergyIntolerance.reaction.manifestation" />
      <binding>
        <strength value="required" />
        <valueSetReference>
          <reference value="http://standardhealthrecord.org/shr/allergy/vs/ManifestationVS" />
        </valueSetReference>
      </binding>
    </element>
    <element id="AllergyIntolerance:shr-allergy-AllergyIntolerance.reaction.exposureRoute">
      <path value="AllergyIntolerance.reaction.exposureRoute" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="RouteOfAdministration" />
        </extension>
        <strength value="required" />
        <description value="A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/route-codes" />
        </valueSetReference>
      </binding>
    </element>
  </differential>
</StructureDefinition>