Release 5

This page is part of the FHIR Specification (v5.0.0: R5 - STU). This is the current published version. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3 R2

Example StructureDefinition/AllergyIntolerance (XML)

Patient Care Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Patient, Practitioner, RelatedPerson

Raw XML (canonical form + also see XML Format Specification)

Jump past Narrative

StructureDefinition for allergyintolerance

<?xml version="1.0" encoding="UTF-8"?>

<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="AllergyIntolerance"/> 
  <meta> 
    <lastUpdated value="2023-03-26T15:21:02.749+11:00"/> 
  </meta> 
  <text> 
    <status value="generated"/> 
    <div xmlns="http://www.w3.org/1999/xhtml">
      <table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align:
       top;">
        <tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align:
         top">
          <th class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a> 
          </th> 
          <th class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a> 
          </th> 
          <th class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a> 
          </th> 
          <th class="hierarchy" style="width: 100px">
            <a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a> 
          </th> 
          <th class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description &amp; Constraints</a> 
            <span style="float: right">
              <a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format">
                <img alt="doco" src="data:(snipped in html view)" style="background-color: inherit"/> 
              </a> 
            </span> 
          </th> 
        </tr> 
        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAAJUlEQVR4Xu3IIQEAAAgDsHd9/w4EQIOamFnaBgAA4M
          MKAACAKwNp30CqZFfFmwAAAABJRU5ErkJggg==)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Resource"/>  
            <span title="AllergyIntolerance : Risk of harmful or undesirable physiological response which
             is specific to an individual and associated with exposure to a substance.">AllergyIntolerance</span> 
            <a name="AllergyIntolerance"> </a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="versions.html#std-process" style="padding-left: 3px; padding-right: 3px; border: 1px grey solid; font-weight: bold;
             color: black; background-color: #fff5e6" title="Standards Status = Trial Use">TU</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="domainresource.html">DomainResource</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">Allergy or Intolerance (generally: Risk of adverse reaction to a substance)
            <br/>  
            <br/>  Elements defined in Ancestors: 
            <a href="resource.html#Resource" title="The logical id of the resource, as used in the URL for the resource. Once assigned,
             this value never changes.">id</a> , 
            <a href="resource.html#Resource" title="The metadata about the resource. This is content that is maintained by the infrastructure.
             Changes to the content might not always be associated with version changes to the
             resource.">meta</a> , 
            <a href="resource.html#Resource" title="A reference to a set of rules that were followed when the resource was constructed,
             and which must be understood when processing the content. Often, this is a reference
             to an implementation guide that defines the special rules along with other profiles
             etc.">implicitRules</a> , 
            <a href="resource.html#Resource" title="The base language in which the resource is written.">language</a> , 
            <a href="domainresource.html#DomainResource" title="A human-readable narrative that contains a summary of the resource and can 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.">text</a> , 
            <a href="domainresource.html#DomainResource" title="These resources do not have an independent existence apart from the resource that
             contains them - they cannot be identified independently, nor can they have their
             own independent transaction scope. This is allowed to be a Parameters resource
             if and only if it is referenced by a resource that provides context/meaning.">contained</a> , 
            <a href="domainresource.html#DomainResource" title="May be used to represent additional information that is not part of the basic definition
             of the resource. To make the use of extensions safe and managable, there is a strict
             set of governance applied to the definition and use of extensions. Though any implementer
             can define an extension, there is a set of requirements that SHALL be met as part
             of the definition of the extension.">extension</a> , 
            <a href="domainresource.html#DomainResource" title="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 and/or the understanding of the containing element's descendants. Usually modifier
             elements provide negation or qualification. To make the use of extensions safe
             and managable, 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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or
             DomainResource (including cannot change the meaning of modifierExtension itself).">modifierExtension</a> 
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAw
          EwfT6/ddA0GBAxO3NrLlKUj9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Data Type"/>  
            <span title="AllergyIntolerance.identifier : Business identifiers assigned to this AllergyIntolerance
             by the performer or other systems which remain constant as the resource is updated
             and propagates from server to server.">identifier</span> 
            <a name="AllergyIntolerance.identifier"> </a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">0..*</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#Identifier">Identifier</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">External ids for this item
            <br/>  
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAwEwfT6/ddA0GBAxO3NrLlKUj
          9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Data Type"/>  
            <span title="AllergyIntolerance.clinicalStatus : The clinical status of the allergy or intolerance.">clinicalStatus</span> 
            <a name="AllergyIntolerance.clinicalStatus"> </a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="conformance-rules.html#isModifier" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is a modifier element">?!</a> 
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#CodeableConcept">CodeableConcept</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">active | inactive | resolved
            <br/>  Binding: 
            <a href="valueset-allergyintolerance-clinical.html">AllergyIntolerance Clinical Status Codes</a>  (
            <a href="terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value
             set.">Required</a> )
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAw
          EwfT6/ddA0GBAxO3NrLlKUj9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Data Type"/>  
            <span title="AllergyIntolerance.verificationStatus : Assertion about certainty associated with
             the propensity, or potential risk, of a reaction to the identified substance (including
             pharmaceutical product).  The verification status pertains to the allergy or intolerance,
             itself, not to any specific AllergyIntolerance attribute.">verificationStatus</span> 
            <a name="AllergyIntolerance.verificationStatus"> </a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="conformance-rules.html#isModifier" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is a modifier element">?!</a> 
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#CodeableConcept">CodeableConcept</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">unconfirmed | presumed | confirmed | refuted | entered-in-error
            <br/>  Binding: 
            <a href="valueset-allergyintolerance-verification.html">AllergyIntolerance Verification Status</a>  (
            <a href="terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value
             set.">Required</a> )
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAwEwfT6/ddA0GBAxO3NrLlKUj
          9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Data Type"/>  
            <span title="AllergyIntolerance.type : Identification of the underlying physiological mechanism
             for the reaction risk.">type</span> 
            <a name="AllergyIntolerance.type"> </a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
            <a href="versions.html#std-process" style="padding-left: 3px; padding-right: 3px; border: 1px grey solid; font-weight: bold;
             color: black; background-color: #fff5e6" title="Standards Status = Trial Use">TU</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#CodeableConcept">CodeableConcept</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">allergy | intolerance - Underlying mechanism (if known)
            <br/>  Binding: 
            <a href="valueset-allergy-intolerance-type.html">Allergy Intolerance Type</a>  (
            <a href="terminologies.html#preferred" title="Instances are encouraged to draw from the specified codes for interoperability
             purposes but are not required to do so to be considered conformant.">Preferred</a> )
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAw
          EwfT6/ddA0GBAxO3NrLlKUj9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Primitive Data Type"/>  
            <span title="AllergyIntolerance.category : Category of the identified substance.">category</span> 
            <a name="AllergyIntolerance.category"> </a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">0..*</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#code">code</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">food | medication | environment | biologic
            <br/>  Binding: 
            <a href="valueset-allergy-intolerance-category.html">Allergy Intolerance Category</a>  (
            <a href="terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value
             set.">Required</a> )
            <br/>  
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAwEwfT6/ddA0GBAxO3NrLlKUj
          9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Primitive Data Type"/>  
            <span title="AllergyIntolerance.criticality : Estimate of the potential clinical harm, or seriousness,
             of the reaction to the identified substance.">criticality</span> 
            <a name="AllergyIntolerance.criticality"> </a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#code">code</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">low | high | unable-to-assess
            <br/>  Binding: 
            <a href="valueset-allergy-intolerance-criticality.html">Allergy Intolerance Criticality</a>  (
            <a href="terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value
             set.">Required</a> )
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAw
          EwfT6/ddA0GBAxO3NrLlKUj9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Data Type"/>  
            <span title="AllergyIntolerance.code : Code for an allergy or intolerance statement (either
             a positive or a negated/excluded statement).  This may be a code for a substance
             or pharmaceutical product that is considered to be responsible for the adverse
             reaction risk (e.g., &quot;Latex&quot;), an allergy or intolerance condition (e.g.,
             &quot;Latex allergy&quot;), or a negated/excluded code for a specific substance
             or class (e.g., &quot;No latex allergy&quot;) or a general or categorical negated
             statement (e.g.,  &quot;No known allergy&quot;, &quot;No known drug allergies&quot;).
              Note: the substance for a specific reaction may be different from the substance
             identified as the cause of the risk, but it must be consistent with it. For instance,
             it may be a more specific substance (e.g. a brand medication) or a composite product
             that includes the identified substance. It must be clinically safe to only process
             the 'code' and ignore the 'reaction.substance'.  If a receiving system is unable
             to confirm that AllergyIntolerance.reaction.substance falls within the semantic
             scope of AllergyIntolerance.code, then the receiving system should ignore AllergyIntolerance.
            reaction.substance.">code</span> 
            <a name="AllergyIntolerance.code"> </a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#CodeableConcept">CodeableConcept</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">Code that identifies the allergy or intolerance
            <br/>  Binding: 
            <a href="valueset-allergyintolerance-code.html">AllergyIntolerance Substance/Product, Condition and Negation Codes</a>  (
            <a href="terminologies.html#example" title="Instances are not expected or even encouraged to draw from the specified value
             set.  The value set merely provides examples of the types of concepts intended
             to be included.">Example</a> )
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAwEwfT6/ddA0GBAxO3NrLlKUj
          9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Reference to another Resource"/>  
            <span title="AllergyIntolerance.patient : The patient who has the allergy or intolerance.">patient</span> 
            <a name="AllergyIntolerance.patient"> </a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">1..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="references.html#Reference">Reference</a> (
            <a href="patient.html">Patient</a> )
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">Who the allergy or intolerance is for
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAw
          EwfT6/ddA0GBAxO3NrLlKUj9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Reference to another Resource"/>  
            <span title="AllergyIntolerance.encounter : The encounter when the allergy or intolerance was
             asserted.">encounter</span> 
            <a name="AllergyIntolerance.encounter"> </a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="references.html#Reference">Reference</a> (
            <a href="encounter.html">Encounter</a> )
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">Encounter when the allergy or intolerance was asserted
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAwEwfT6/ddA0GBAxO3NrLlKUj
          9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Choice of Types"/>  
            <span title="AllergyIntolerance.onset[x] : Estimated or actual date,  date-time, or age when
             allergy or intolerance was identified.">onset[x]</span> 
            <a name="AllergyIntolerance.onset_x_"> </a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">When allergy or intolerance was identified
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAAMUlEQVR4Xu3LMQoAIBA
          Dwftr/v8GtdbqEAthAtMspJJUx9rYW8ftHwAA+NcRAAAAXplLq0BWj/rZigAAAABJRU5ErkJggg==)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Primitive Data Type"/>  
            <span title="A date, date-time or partial date (e.g. just year or year + month).  If hours and
             minutes are specified, a UTC offset SHALL be populated. The format is a union of
             the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided
             due to schema type constraints but may be zero-filled and may be ignored.     
                        Dates SHALL be valid dates.">onsetDateTime</span> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#dateTime">dateTime</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px"/> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAAMUlEQVR4Xu3LMQoAIBADwftr/v8GtdbqEAthAtMspJ
          JUx9rYW8ftHwAA+NcRAAAAXplLq0BWj/rZigAAAABJRU5ErkJggg==)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Data Type"/>  
            <span title="A duration of time during which an organism (or a process) has existed.">onsetAge</span> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#Age">Age</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px"/> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAAMUlEQVR4Xu3LMQoAIBA
          Dwftr/v8GtdbqEAthAtMspJJUx9rYW8ftHwAA+NcRAAAAXplLq0BWj/rZigAAAABJRU5ErkJggg==)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Data Type"/>  
            <span title="A time period defined by a start and end date and optionally time.">onsetPeriod</span> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#Period">Period</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px"/> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAAMUlEQVR4Xu3LMQoAIBADwftr/v8GtdbqEAthAtMspJ
          JUx9rYW8ftHwAA+NcRAAAAXplLq0BWj/rZigAAAABJRU5ErkJggg==)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Data Type"/>  
            <span title="A set of ordered Quantities defined by a low and high limit.">onsetRange</span> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#Range">Range</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px"/> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAw
          EwfT6/ddA0GBAxO3NrLlKUj9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Primitive Data Type"/>  
            <span title="A sequence of Unicode characters">onsetString</span> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#string">string</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px"/> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAwEwfT6/ddA0GBAxO3NrLlKUj
          9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Primitive Data Type"/>  
            <span title="AllergyIntolerance.recordedDate : The recordedDate represents when this particular
             AllergyIntolerance record was created in the system, which is often a system-generated
             date.">recordedDate</span> 
            <a name="AllergyIntolerance.recordedDate"> </a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#dateTime">dateTime</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">Date allergy or intolerance was first recorded
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAw
          EwfT6/ddA0GBAxO3NrLlKUj9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Element"/>  
            <span title="AllergyIntolerance.participant : Indicates who or what participated in the activities
             related to the allergy or intolerance and how they were involved.">participant</span> 
            <a name="AllergyIntolerance.participant"> </a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">0..*</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="types.html#BackBoneElement">BackboneElement</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">Who or what participated in the activities related to the allergy or intolerance
             and how they were involved
            <br/>  
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAAMUlEQVR4Xu3LMQoAIBADwftr/v8GtdbqEAthAtMspJ
          JUx9rYW8ftHwAA+NcRAAAAXplLq0BWj/rZigAAAABJRU5ErkJggg==)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Data Type"/>  
            <span title="AllergyIntolerance.participant.function : Distinguishes the type of involvement
             of the actor in the activities related to the allergy or intolerance.">function</span> 
            <a name="AllergyIntolerance.participant.function"> </a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#CodeableConcept">CodeableConcept</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">Type of involvement
            <br/>  Binding: 
            <a href="valueset-participation-role-type.html">Participation Role Type</a>  (
            <a href="terminologies.html#extensible" title="To be conformant, the concept in this element SHALL be from the specified value
             set if any of the codes within the value set can apply to the concept being communicated.
              If the value set does not cover the concept (based on human review), alternate
             codings (or, data type allowing, text) may be included instead.">Extensible</a> )
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAw
          EwfT6/ddA0GBAxO3NrLlKUj9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Reference to another Resource"/>  
            <span title="AllergyIntolerance.participant.actor : Indicates who or what participated in the
             activities related to the allergy or intolerance.">actor</span> 
            <a name="AllergyIntolerance.participant.actor"> </a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">1..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="references.html#Reference">Reference</a> (
            <a href="practitioner.html">Practitioner</a>  | 
            <a href="practitionerrole.html">PractitionerRole</a>  | 
            <a href="patient.html">Patient</a>  | 
            <a href="relatedperson.html">RelatedPerson</a>  | 
            <a href="device.html">Device</a>  | 
            <a href="organization.html">Organization</a>  | 
            <a href="careteam.html">CareTeam</a> )
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">Who or what participated in the activities related to the allergy or intolerance
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAwEwfT6/ddA0GBAxO3NrLlKUj
          9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Primitive Data Type"/>  
            <span title="AllergyIntolerance.lastOccurrence : Represents the date and/or time of the last
             known occurrence of a reaction event.">lastOccurrence</span> 
            <a name="AllergyIntolerance.lastOccurrence"> </a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#dateTime">dateTime</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">Date(/time) of last known occurrence of a reaction
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAw
          EwfT6/ddA0GBAxO3NrLlKUj9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Data Type"/>  
            <span title="AllergyIntolerance.note : Additional narrative about the propensity for the Adverse
             Reaction, not captured in other fields.">note</span> 
            <a name="AllergyIntolerance.note"> </a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">0..*</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#Annotation">Annotation</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">Additional text not captured in other fields
            <br/>  
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAAJUlEQVR4Xu3IIQEAAAgDsHd9/w4EQIOamFnaBgAA4M
          MKAACAKwNp30CqZFfFmwAAAABJRU5ErkJggg==)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Element"/>  
            <span title="AllergyIntolerance.reaction : Details about each adverse reaction event linked
             to exposure to the identified substance.">reaction</span> 
            <a name="AllergyIntolerance.reaction"> </a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="versions.html#std-process" style="padding-left: 3px; padding-right: 3px; border: 1px grey solid; font-weight: bold;
             color: black; background-color: #fff5e6" title="Standards Status = Trial Use">TU</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">0..*</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="types.html#BackBoneElement">BackboneElement</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">Adverse Reaction Events linked to exposure to substance
            <br/>  
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALElEQVR4Xu3IsQ0AIAw
          Esez6+89AqKGGJj7JzVWS+mm3zgcAAMxwDQAAgFcaYAVAgNGLTjgAAAAASUVORK5CYII=)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Data Type"/>  
            <span title="AllergyIntolerance.reaction.substance : Identification of the specific substance
             (or pharmaceutical product) considered to be responsible for the Adverse Reaction
             event. Note: the substance for a specific reaction may be different from the substance
             identified as the cause of the risk, but it must be consistent with it. For instance,
             it may be a more specific substance (e.g. a brand medication) or a composite product
             that includes the identified substance. It must be clinically safe to only process
             the 'code' and ignore the 'reaction.substance'.  If a receiving system is unable
             to confirm that AllergyIntolerance.reaction.substance falls within the semantic
             scope of AllergyIntolerance.code, then the receiving system should ignore AllergyIntolerance.
            reaction.substance.">substance</span> 
            <a name="AllergyIntolerance.reaction.substance"> </a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#CodeableConcept">CodeableConcept</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">Specific substance or pharmaceutical product considered to be responsible for event
            <br/>  Binding: 
            <a href="valueset-substance-code.html">Substance Code</a>  (
            <a href="terminologies.html#example" title="Instances are not expected or even encouraged to draw from the specified value
             set.  The value set merely provides examples of the types of concepts intended
             to be included.">Example</a> )
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALElEQVR4Xu3IsQ0AIAwEsez6+89AqKGGJj7JzVWS+m
          m3zgcAAMxwDQAAgFcaYAVAgNGLTjgAAAAASUVORK5CYII=)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Reference to another Resource"/>  
            <span title="AllergyIntolerance.reaction.manifestation : Clinical symptoms and/or signs that
             are observed or associated with the adverse reaction event.">manifestation</span> 
            <a name="AllergyIntolerance.reaction.manifestation"> </a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">1..*</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="references.html#CodeableReference">CodeableReference</a> (
            <a href="observation.html">Observation</a> )
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">Clinical symptoms/signs associated with the Event
            <br/>  Binding: 
            <a href="valueset-clinical-findings.html">SNOMED CT Clinical Findings</a>  (
            <a href="terminologies.html#example" title="Instances are not expected or even encouraged to draw from the specified value
             set.  The value set merely provides examples of the types of concepts intended
             to be included.">Example</a> )
            <br/>  
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALElEQVR4Xu3IsQ0AIAw
          Esez6+89AqKGGJj7JzVWS+mm3zgcAAMxwDQAAgFcaYAVAgNGLTjgAAAAASUVORK5CYII=)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Primitive Data Type"/>  
            <span title="AllergyIntolerance.reaction.description : Text description about the reaction as
             a whole, including details of the manifestation if required.">description</span> 
            <a name="AllergyIntolerance.reaction.description"> </a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#string">string</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">Description of the event as a whole
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALElEQVR4Xu3IsQ0AIAwEsez6+89AqKGGJj7JzVWS+m
          m3zgcAAMxwDQAAgFcaYAVAgNGLTjgAAAAASUVORK5CYII=)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Primitive Data Type"/>  
            <span title="AllergyIntolerance.reaction.onset : Record of the date and/or time of the onset
             of the Reaction.">onset</span> 
            <a name="AllergyIntolerance.reaction.onset"> </a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#dateTime">dateTime</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">Date(/time) when manifestations showed
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALElEQVR4Xu3IsQ0AIAw
          Esez6+89AqKGGJj7JzVWS+mm3zgcAAMxwDQAAgFcaYAVAgNGLTjgAAAAASUVORK5CYII=)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Primitive Data Type"/>  
            <span title="AllergyIntolerance.reaction.severity : Clinical assessment of the severity of the
             reaction event as a whole, potentially considering multiple different manifestations.">severity</span> 
            <a name="AllergyIntolerance.reaction.severity"> </a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#code">code</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">mild | moderate | severe (of event as a whole)
            <br/>  Binding: 
            <a href="valueset-reaction-event-severity.html">Allergy Intolerance Severity</a>  (
            <a href="terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value
             set.">Required</a> )
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALElEQVR4Xu3IsQ0AIAwEsez6+89AqKGGJj7JzVWS+m
          m3zgcAAMxwDQAAgFcaYAVAgNGLTjgAAAAASUVORK5CYII=)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Data Type"/>  
            <span title="AllergyIntolerance.reaction.exposureRoute : Identification of the route by which
             the subject was exposed to the substance.">exposureRoute</span> 
            <a name="AllergyIntolerance.reaction.exposureRoute"> </a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#CodeableConcept">CodeableConcept</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">How the subject was exposed to the substance
            <br/>  Binding: 
            <a href="valueset-route-codes.html">SNOMED CT Route Codes</a>  (
            <a href="terminologies.html#example" title="Instances are not expected or even encouraged to draw from the specified value
             set.  The value set merely provides examples of the types of concepts intended
             to be included.">Example</a> )
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAAJUlEQVR4Xu3IIQEAAAg
          DsHd9/w4EQIOamFnaBgAA4MMKAACAKwNp30CqZFfFmwAAAABJRU5ErkJggg==)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Data Type"/>  
            <span title="AllergyIntolerance.reaction.note : Additional text about the adverse reaction event
             not captured in other fields.">note</span> 
            <a name="AllergyIntolerance.reaction.note"> </a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">0..*</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#Annotation">Annotation</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">Text about event not captured in other fields
            <br/>  
            <br/>  
          </td> 
        </tr> 

        <tr> 
          <td class="hierarchy" colspan="5">
            <br/>  
            <a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format">
              <img alt="doco" src="data:(snipped in html view)" style="background-color: inherit"/>  Documentation for this format
            </a> 
          </td> 
        </tr> 
      </table> 
    </div> 
  </text> 
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-category">
    <valueString value="Clinical.Summary"/> 
  </extension> 
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="trial-use"/> 
  </extension> 
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="3"/> 
  </extension> 
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category">
    <valueCode value="patient"/> 
  </extension> 
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="pc"/> 
  </extension> 
  <url value="http://hl7.org/fhir/StructureDefinition/AllergyIntolerance"/> 
  <version value="5.0.0"/> 
  <name value="AllergyIntolerance"/> 
  <status value="draft"/> 
  <experimental value="false"/> 
  <date value="2023-03-26T15:21:02+11:00"/> 
  <publisher value="Health Level Seven International (Patient Care)"/> 
  <contact> 
    <telecom> 
      <system value="url"/> 
      <value value="http://hl7.org/fhir"/> 
    </telecom> 
  </contact> 
  <contact> 
    <telecom> 
      <system value="url"/> 
      <value value="http://www.hl7.org/Special/committees/patientcare/index.cfm"/> 
    </telecom> 
  </contact> 
  <description value="Risk of harmful or undesirable, physiological response which is unique to an individual
   and associated with exposure to a substance."/> 
  <jurisdiction> 
    <coding> 
      <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> 
      <code value="001"/> 
      <display value="World"/> 
    </coding> 
  </jurisdiction> 
  <purpose value="To record a clinical assessment of a propensity, or potential risk to an individual,
   of an adverse reaction upon future exposure to the specified substance, or class
   of substance."/> 
  <fhirVersion value="5.0.0"/> 
  <mapping> 
    <identity value="w5"/> 
    <uri value="http://hl7.org/fhir/fivews"/> 
    <name value="FiveWs Pattern Mapping"/> 
  </mapping> 
  <mapping> 
    <identity value="rim"/> 
    <uri value="http://hl7.org/v3"/> 
    <name value="RIM 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/StructureDefinition/DomainResource"/> 
  <derivation value="specialization"/> 
  <snapshot> 
    <element id="AllergyIntolerance">
      <path value="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 specific to an individual
       and associated with exposure to a substance."/> 
      <comment value="Substances include, but are not limited to: a therapeutic substance administered
       correctly at an appropriate dosage for the individual; food; material derived from
       plants or animals; or venom from insect stings."/> 
      <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> 
      <constraint> 
        <key value="dom-2"/> 
        <severity value="error"/> 
        <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> 
        <expression value="contained.contained.empty()"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> 
      </constraint> 
      <constraint> 
        <key value="dom-3"/> 
        <severity value="error"/> 
        <human value="If the resource is contained in another resource, it SHALL be referred to from
         elsewhere in the resource or SHALL refer to the containing resource"/> 
        <expression value="contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofTy
        pe(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url)))
         or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical)
         = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmat
        ched', id).empty()"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> 
      </constraint> 
      <constraint> 
        <key value="dom-4"/> 
        <severity value="error"/> 
        <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId
         or a meta.lastUpdated"/> 
        <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> 
      </constraint> 
      <constraint> 
        <key value="dom-5"/> 
        <severity value="error"/> 
        <human value="If a resource is contained in another resource, it SHALL NOT have a security label"/> 
        <expression value="contained.meta.security.empty()"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> 
      </constraint> 
      <constraint> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice">
          <valueBoolean value="true"/> 
        </extension> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation">
          <valueMarkdown value="When a resource has no narrative, only systems that fully understand the data can
           display the resource to a human safely. Including a human readable representation
           in the resource makes for a much more robust eco-system and cheaper handling of
           resources by intermediary systems. Some ecosystems restrict distribution of resources
           to only those systems that do fully understand the resources, and as a consequence
           implementers may believe that the narrative is superfluous. However experience
           shows that such eco-systems often open up to new participants over time."/> 
        </extension> 
        <key value="dom-6"/> 
        <severity value="warning"/> 
        <human value="A resource should have narrative for robust management"/> 
        <expression value="text.`div`.exists()"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="Entity, Role, or Act,Observation[classCode=OBS, moodCode=EVN]"/> 
      </mapping> 
      <mapping> 
        <identity value="w5"/> 
        <map value="clinical.general"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.id">
      <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."/> 
      <comment value="Within the context of the FHIR RESTful interactions, the resource has an id except
       for cases like the create and conditional update. Otherwise, the use of the resouce
       id depends on the given use case."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Resource.id"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <!--  Note: special primitive values have a FHIRPath system type. e.g. this is compiler
       magic (j)  -->
      <type> 
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="id"/> 
        </extension> 
        <code value="http://hl7.org/fhirpath/System.String"/> 
      </type> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
    </element> 
    <element id="AllergyIntolerance.meta">
      <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 might not always be associated with version changes to the
       resource."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Resource.meta"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="Meta"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
    </element> 
    <element id="AllergyIntolerance.implicitRules">
      <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. Often, this is a reference
       to an implementation guide that defines the special rules along with other profiles
       etc."/> 
      <comment value="Asserting this rule set restricts the content to be only understood by a limited
       set of trading partners. This inherently limits the usefulness of the data in the
       long term. However, the existing health eco-system is highly fractured, and not
       yet ready to define, collect, and exchange data in a generally computable sense.
       Wherever possible, implementers and/or specification writers should avoid using
       this element. Often, when used, the URL is a reference to an implementation guide
       that defines these special rules as part of its narrative along with other profiles,
       value sets, etc."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Resource.implicitRules"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="uri"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="true"/> 
      <isModifierReason value="This element is labeled as a modifier because the implicit rules may provide additional
       knowledge about the resource that modifies its meaning or interpretation"/> 
      <isSummary value="true"/> 
    </element> 
    <element id="AllergyIntolerance.language">
      <path value="AllergyIntolerance.language"/> 
      <short value="Language of the resource content"/> 
      <definition value="The base language in which the resource is written."/> 
      <comment value="Language is provided to support indexing and accessibility (typically, services
       such as text to speech use the language tag). The html language tag in the narrative
       applies  to the narrative. The language tag on the resource may be used to specify
       the language of other presentations generated from the data in the resource. Not
       all the content has to be in the base language. The Resource.language should not
       be assumed to apply to the narrative automatically. If a language is specified,
       it should it also be specified on the div element in the html (see rules in HTML5
       for information about the relationship between xml:lang and the html lang attribute)."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Resource.language"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="code"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Language"/> 
        </extension> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/> 
        </extension> 
        <strength value="required"/> 
        <description value="IETF language tag for a human language"/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/all-languages|5.0.0"/> 
        <additional> 
          <purpose value="starter"/> 
          <valueSet value="http://hl7.org/fhir/ValueSet/languages"/> 
        </additional> 
      </binding> 
    </element> 
    <element id="AllergyIntolerance.text">
      <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 can 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."/> 
      <comment value="Contained resources do not have a narrative. Resources that are not contained SHOULD
       have a narrative. In some cases, a resource may only have text with little or no
       additional discrete data (as long as all minOccurs=1 elements are satisfied). 
       This may be necessary for data from legacy systems where information is captured
       as a &quot;text blob&quot; or where text is additionally entered raw or narrated
       and encoded information is added later."/> 
      <alias value="narrative"/> 
      <alias value="html"/> 
      <alias value="xhtml"/> 
      <alias value="display"/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="DomainResource.text"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="Narrative"/> 
      </type> 
      <condition value="dom-6"/> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="Act.text?"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.contained">
      <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, nor can they have their
       own independent transaction scope. This is allowed to be a Parameters resource
       if and only if it is referenced by a resource that provides context/meaning."/> 
      <comment value="This should never be done when the content can be identified properly, as once
       identification is lost, it is extremely difficult (and context dependent) to restore
       it again. Contained resources may have profiles and tags in their meta elements,
       but SHALL NOT have security labels."/> 
      <alias value="inline resources"/> 
      <alias value="anonymous resources"/> 
      <alias value="contained resources"/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="DomainResource.contained"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Resource"/> 
      </type> 
      <condition value="dom-2"/> 
      <condition value="dom-4"/> 
      <condition value="dom-3"/> 
      <condition value="dom-5"/> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.extension">
      <path value="AllergyIntolerance.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 resource. To make the use of extensions safe and managable, there is a strict
       set of governance applied to the definition and use of extensions. Though any implementer
       can define an extension, there is a set of requirements that SHALL be met as part
       of the definition of the extension."/> 
      <comment value="There can be no stigma associated with the use of extensions by any application,
       project, or standard - regardless of the institution or jurisdiction that uses
       or defines the extensions.  The use of extensions is what allows the FHIR specification
       to retain a core level of simplicity for everyone."/> 
      <alias value="extensions"/> 
      <alias value="user content"/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="DomainResource.extension"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Extension"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <constraint> 
        <key value="ext-1"/> 
        <severity value="error"/> 
        <human value="Must have either extensions or value[x], not both"/> 
        <expression value="extension.exists() != value.exists()"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.modifierExtension">
      <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 and/or the understanding of the containing element's descendants. Usually modifier
       elements provide negation or qualification. To make the use of extensions safe
       and managable, 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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or
       DomainResource (including cannot change the meaning of modifierExtension itself)."/> 
      <comment value="There can be no stigma associated with the use of extensions by any application,
       project, or standard - regardless of the institution or jurisdiction that uses
       or defines the extensions.  The use of extensions is what allows the FHIR specification
       to retain a core level of simplicity for everyone."/> 
      <requirements value="Modifier extensions allow for extensions that *cannot* be safely ignored to be
       clearly distinguished from the vast majority of extensions which can be safely
       ignored.  This promotes interoperability by eliminating the need for implementers
       to prohibit the presence of extensions. For further information, see the [definition
       of modifier extensions](extensibility.html#modifierExtension)."/> 
      <alias value="extensions"/> 
      <alias value="user content"/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="DomainResource.modifierExtension"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Extension"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <constraint> 
        <key value="ext-1"/> 
        <severity value="error"/> 
        <human value="Must have either extensions or value[x], not both"/> 
        <expression value="extension.exists() != value.exists()"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="true"/> 
      <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the
       resource that contains them"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.identifier">
      <path value="AllergyIntolerance.identifier"/> 
      <short value="External ids for this item"/> 
      <definition value="Business identifiers assigned to this AllergyIntolerance by the performer or other
       systems which remain constant as the resource is updated and propagates from server
       to server."/> 
      <comment value="This is a business identifier, not a resource identifier (see [discussion](resource.html#iden
      tifiers)).  It is best practice for the identifier to only appear on a single resource
       instance, however business practices may occasionally dictate that multiple resource
       instances with the same identifier can exist - possibly even with different resource
       types.  For example, multiple Patient and a Person resource instance might share
       the same social insurance number."/> 
      <requirements value="Allows identification of the AllergyIntolerance as it is known by various participating
       systems and in a way that remains consistent across servers."/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="AllergyIntolerance.identifier"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Identifier"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.identifier"/> 
      </mapping> 
      <mapping> 
        <identity value="v2"/> 
        <map value="IAM-7"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="id"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.clinicalStatus">
      <path value="AllergyIntolerance.clinicalStatus"/> 
      <short value="active | inactive | resolved"/> 
      <definition value="The clinical status of the allergy or intolerance."/> 
      <comment value="AllergyIntolerance.clinicalStatus should be present if verificationStatus is not
       entered-in-error and the AllergyIntolerance.code isn't negated (No Known Allergy,
       No Drug Allergy, No Food Allergy, No Latex Allergy).
Refer to [discussion](extensibility.html#Special-Case) if clinicalStatus is missing
       data.
The data type is CodeableConcept because clinicalStatus has some clinical judgment
       involved, such that there might need to be more specificity than the required FHIR
       value set allows. For example, a SNOMED coding might allow for additional specificity."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="AllergyIntolerance.clinicalStatus"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="CodeableConcept"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="true"/> 
      <isModifierReason value="This element is labeled as a modifier because the status contains the codes inactive
       and resolved that mark the AllergyIntolerance as no longer active."/> 
      <isSummary value="true"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="AllergyIntoleranceClinicalStatus"/> 
        </extension> 
        <strength value="required"/> 
        <description value="The clinical status of the allergy or intolerance."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/allergyintolerance-clinical|5.0.0"/> 
      </binding> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.status"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="Observation ACT .inboundRelationship[typeCode=COMP].source[classCode=OBS, code=&quot;clinical
        Status&quot;, moodCode=EVN].value"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.verificationStatus">
      <path value="AllergyIntolerance.verificationStatus"/> 
      <short value="unconfirmed | presumed | confirmed | refuted | entered-in-error"/> 
      <definition value="Assertion about certainty associated with the propensity, or potential risk, of
       a reaction to the identified substance (including pharmaceutical product).  The
       verification status pertains to the allergy or intolerance, itself, not to any
       specific AllergyIntolerance attribute."/> 
      <comment value="The data type is CodeableConcept because verificationStatus has some clinical judgment
       involved, such that there might need to be more specificity than the required FHIR
       value set allows. For example, a SNOMED coding might allow for additional specificity."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="AllergyIntolerance.verificationStatus"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="CodeableConcept"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="true"/> 
      <isModifierReason value="This element is labeled as a modifier because the status contains the codes refuted
       and entered-in-error that mark the AllergyIntolerance as not currently valid."/> 
      <isSummary value="true"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="AllergyIntoleranceVerificationStatus"/> 
        </extension> 
        <strength value="required"/> 
        <description value="Assertion about certainty associated with a propensity, or potential risk, of a
         reaction to the identified substance."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/allergyintolerance-verification|5.0.0"/> 
      </binding> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.status"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="Observation ACT .inboundRelationship[typeCode=COMP].source[classCode=OBS, code=&quot;verifica
        tionStatus&quot;, moodCode=EVN].value"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.type">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="trial-use"/> 
      </extension> 
      <path value="AllergyIntolerance.type"/> 
      <short value="allergy | intolerance - Underlying mechanism (if known)"/> 
      <definition value="Identification of the underlying physiological mechanism for the reaction risk."/> 
      <comment value="Allergic (typically immune-mediated) reactions have been traditionally regarded
       as an indicator for potential escalation to significant future risk. Contemporary
       knowledge suggests that some reactions previously thought to be immune-mediated
       are, in fact, non-immune, but in some cases can still pose a life threatening risk.
       It is acknowledged that many clinicians might not be in a position to distinguish
       the mechanism of a particular reaction. Often the term &quot;allergy&quot; is used
       rather generically and may overlap with the use of &quot;intolerance&quot; - in
       practice the boundaries between these two concepts might not be well-defined or
       understood. This data element is included nevertheless, because many legacy systems
       have captured this attribute. Immunologic testing may provide supporting evidence
       for the basis of the reaction and the causative substance, but no tests are 100%
       sensitive or specific for sensitivity to a particular substance. If, as is commonly
       the case, it is unclear whether the reaction is due to an allergy or an intolerance,
       then the type element should be omitted from the resource."/> 
      <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="CodeableConcept"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="AllergyIntoleranceType"/> 
        </extension> 
        <strength value="preferred"/> 
        <description value="Identification of the underlying physiological mechanism for a Reaction Risk."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/allergy-intolerance-type"/> 
      </binding> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.class"/> 
      </mapping> 
      <mapping> 
        <identity value="v2"/> 
        <map value="IAM-9"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="code"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.category">
      <path value="AllergyIntolerance.category"/> 
      <short value="food | medication | environment | biologic"/> 
      <definition value="Category of the identified substance."/> 
      <comment value="This data element has been included because it is currently being captured in some
       clinical systems. This data can be derived from the substance where coding systems
       are used, and is effectively redundant in that situation.  When searching on category,
       consider the implications of AllergyIntolerance resources without a category. 
       For example, when searching on category = medication, medication allergies that
       don't have a category valued will not be returned.  Refer to [search](search.html)
       for more information on how to search category with a :missing modifier to get
       allergies that don't have a category.  Additionally, category should be used with
       caution because category can be subjective based on the sender."/> 
      <alias value="Category"/> 
      <alias value="Type"/> 
      <alias value="Reaction Type"/> 
      <alias value="Class"/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="AllergyIntolerance.category"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="code"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="AllergyIntoleranceCategory"/> 
        </extension> 
        <strength value="required"/> 
        <description value="Category of an identified substance associated with allergies or intolerances."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/allergy-intolerance-category|5.0.0"/> 
      </binding> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.class"/> 
      </mapping> 
      <mapping> 
        <identity value="v2"/> 
        <map value="AL1-2"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="value &lt; IntoleranceValue (Agent)"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.criticality">
      <path value="AllergyIntolerance.criticality"/> 
      <short value="low | high | unable-to-assess"/> 
      <definition value="Estimate of the potential clinical harm, or seriousness, of the reaction to the
       identified substance."/> 
      <comment value="The default criticality value for any propensity to an adverse reaction should
       be 'Low Risk', indicating at the very least a relative contraindication to deliberate
       or voluntary exposure to the substance. 'High Risk' is flagged if the clinician
       has identified a propensity for a more serious or potentially life-threatening
       reaction, such as anaphylaxis, and implies an absolute contraindication to deliberate
       or voluntary exposure to the substance. If this element is missing, the criticality
       is unknown (though it may be known elsewhere).  Systems that capture a severity
       at the condition level are actually representing the concept of criticality whereas
       the severity documented at the reaction level is representing the true reaction
       severity.  Existing systems that are capturing both condition criticality and reaction
       severity may use the term &quot;severity&quot; to represent both.  Criticality
       is the worst it could be in the future (i.e. situation-agnostic) whereas severity
       is situation-dependent."/> 
      <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> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="AllergyIntoleranceCriticality"/> 
        </extension> 
        <strength value="required"/> 
        <description value="Estimate of the potential clinical harm, or seriousness, of a reaction to an identified
         substance."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/allergy-intolerance-criticality|5.0.0"/> 
      </binding> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.grade"/> 
      </mapping> 
      <mapping> 
        <identity value="v2"/> 
        <map value="AL1-4"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=SEV,
         value &lt;= SeverityObservation (Severity Level)]"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.code">
      <path value="AllergyIntolerance.code"/> 
      <short value="Code that identifies the allergy or intolerance"/> 
      <definition value="Code for an allergy or intolerance statement (either a positive or a negated/excluded
       statement).  This may be a code for a substance or pharmaceutical product that
       is considered to be responsible for the adverse reaction risk (e.g., &quot;Latex&quot;),
       an allergy or intolerance condition (e.g., &quot;Latex allergy&quot;), or a negated/excluded
       code for a specific substance or class (e.g., &quot;No latex allergy&quot;) or
       a general or categorical negated statement (e.g.,  &quot;No known allergy&quot;,
       &quot;No known drug allergies&quot;).  Note: the substance for a specific reaction
       may be different from the substance identified as the cause of the risk, but it
       must be consistent with it. For instance, it may be a more specific substance (e.g.
       a brand medication) or a composite product that includes the identified substance.
       It must be clinically safe to only process the 'code' and ignore the 'reaction.substance'.
        If a receiving system is unable to confirm that AllergyIntolerance.reaction.substance
       falls within the semantic scope of AllergyIntolerance.code, then the receiving
       system should ignore AllergyIntolerance.reaction.substance."/> 
      <comment value="It is strongly recommended that this element be populated using a terminology,
       where possible. For example, some terminologies used include RxNorm, SNOMED CT,
       DM+D, NDFRT, ICD-9, IDC-10, UNII, and ATC. Plain text should only be used if there
       is no appropriate terminology available. Additional details can be specified in
       the text.

When a substance or product code is specified for the 'code' element, the &quot;default&quot;
       semantic context is that this is a positive statement of an allergy or intolerance
       (depending on the value of the 'type' element, if present) condition to the specified
       substance/product.  In the corresponding SNOMED CT allergy model, the specified
       substance/product is the target (destination) of the &quot;Causative agent&quot;
       relationship.

The 'substanceExposureRisk' extension is available as a structured and more flexible
       alternative to the 'code' element for making positive or negative allergy or intolerance
       statements.  This extension provides the capability to make &quot;no known allergy&quot;
       (or &quot;no risk of adverse reaction&quot;) statements regarding any coded substance/product
       (including cases when a pre-coordinated &quot;no allergy to x&quot; concept for
       that substance/product does not exist).  If the 'substanceExposureRisk' extension
       is present, the AllergyIntolerance.code element SHALL be omitted."/> 
      <alias value="Code"/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="AllergyIntolerance.code"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="CodeableConcept"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="AllergyIntoleranceCode"/> 
        </extension> 
        <strength value="example"/> 
        <description value="Type of the substance/product, allergy or intolerance condition, or negation/exclusion
         codes for reporting no known allergies."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/allergyintolerance-code"/> 
      </binding> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.what[x]"/> 
      </mapping> 
      <mapping> 
        <identity value="v2"/> 
        <map value="AL1-3 / IAM-3"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="substance/product:

.participation[typeCode=CAGNT].role[classCode=ADMM].player[classCode=MAT, determinerCode=KIND
        , code &lt;= ExposureAgentEntityType]

negated/excluded substance/product:

.participation[typeCode=CAGNT, negationInd=true].role[classCode=ADMM].player[classCode=MAT,
         determinerCode=KIND, code &lt;= ExposureAgentEntityType]

positive or negated/excluded condition/situation:

Observation.code=ASSERTION; Observation.value"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.patient">
      <path value="AllergyIntolerance.patient"/> 
      <short value="Who the allergy or intolerance 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"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.subject[x]"/> 
      </mapping> 
      <mapping> 
        <identity value="v2"/> 
        <map value="(PID-3)"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".participation[typeCode=SBJ].role[classCode=PAT]"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.encounter">
      <path value="AllergyIntolerance.encounter"/> 
      <short value="Encounter when the allergy or intolerance was asserted"/> 
      <definition value="The encounter when the allergy or intolerance was asserted."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="AllergyIntolerance.encounter"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="Reference"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.context"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.onset[x]">
      <path value="AllergyIntolerance.onset[x]"/> 
      <short value="When allergy or intolerance was identified"/> 
      <definition value="Estimated or actual date,  date-time, or age when allergy or intolerance was identified."/> 
      <comment value="Age is generally used when the patient reports an age at which the AllergyIntolerance
       was noted. Period is generally used to convey an imprecise onset that occurred
       within the time period.  Range is generally used to convey an imprecise age range
       (e.g. 4 to 6 years old)."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="AllergyIntolerance.onset[x]"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="dateTime"/> 
      </type> 
      <type> 
        <code value="Age"/> 
      </type> 
      <type> 
        <code value="Period"/> 
      </type> 
      <type> 
        <code value="Range"/> 
      </type> 
      <type> 
        <code value="string"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.init"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="effectiveTime.low"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.recordedDate">
      <path value="AllergyIntolerance.recordedDate"/> 
      <short value="Date allergy or intolerance was first recorded"/> 
      <definition value="The recordedDate represents when this particular AllergyIntolerance record was
       created in the system, which is often a system-generated date."/> 
      <comment value="When onset date is unknown, recordedDate can be used to establish if the allergy
       or intolerance was present on or before a given date.  If the recordedDate is known
       and provided by a sending system, it is preferred that the receiving system preserve
       that recordedDate value. If the recordedDate is not provided by the sending system,
       the receipt timestamp is sometimes used as the recordedDate."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="AllergyIntolerance.recordedDate"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="dateTime"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.recorded"/> 
      </mapping> 
      <mapping> 
        <identity value="v2"/> 
        <map value="IAM-13"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".participation[typeCode=AUT].time"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.participant">
      <path value="AllergyIntolerance.participant"/> 
      <short value="Who or what participated in the activities related to the allergy or intolerance
       and how they were involved"/> 
      <definition value="Indicates who or what participated in the activities related to the allergy or
       intolerance and how they were involved."/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="AllergyIntolerance.participant"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="BackboneElement"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".participation[typeCode=PRF]"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.participant.id">
      <path value="AllergyIntolerance.participant.id"/> 
      <representation value="xmlAttr"/> 
      <short value="Unique id for inter-element referencing"/> 
      <definition value="Unique id for the element within a resource (for internal references). This may
       be any string value that does not contain spaces."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Element.id"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <!--  Note: special primitive values have a FHIRPath system type. e.g. this is compiler
       magic (j)  -->
      <type> 
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string"/> 
        </extension> 
        <code value="http://hl7.org/fhirpath/System.String"/> 
      </type> 
      <condition value="ele-1"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.participant.extension">
      <path value="AllergyIntolerance.participant.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. To make the use of extensions safe and managable, there is a strict
       set of governance applied to the definition and use of extensions. Though any implementer
       can define an extension, there is a set of requirements that SHALL be met as part
       of the definition of the extension."/> 
      <comment value="There can be no stigma associated with the use of extensions by any application,
       project, or standard - regardless of the institution or jurisdiction that uses
       or defines the extensions.  The use of extensions is what allows the FHIR specification
       to retain a core level of simplicity for everyone."/> 
      <alias value="extensions"/> 
      <alias value="user content"/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="Element.extension"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Extension"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <constraint> 
        <key value="ext-1"/> 
        <severity value="error"/> 
        <human value="Must have either extensions or value[x], not both"/> 
        <expression value="extension.exists() != value.exists()"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.participant.modifierExtension">
      <path value="AllergyIntolerance.participant.modifierExtension"/> 
      <short value="Extensions that cannot be ignored even if unrecognized"/> 
      <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 in which it is
       contained and/or the understanding of the containing element's descendants. Usually
       modifier elements provide negation or qualification. To make the use of extensions
       safe and managable, there is a strict set of governance applied to the definition
       and use of extensions. Though any implementer can 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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or
       DomainResource (including cannot change the meaning of modifierExtension itself)."/> 
      <comment value="There can be no stigma associated with the use of extensions by any application,
       project, or standard - regardless of the institution or jurisdiction that uses
       or defines the extensions.  The use of extensions is what allows the FHIR specification
       to retain a core level of simplicity for everyone."/> 
      <requirements value="Modifier extensions allow for extensions that *cannot* be safely ignored to be
       clearly distinguished from the vast majority of extensions which can be safely
       ignored.  This promotes interoperability by eliminating the need for implementers
       to prohibit the presence of extensions. For further information, see the [definition
       of modifier extensions](extensibility.html#modifierExtension)."/> 
      <alias value="extensions"/> 
      <alias value="user content"/> 
      <alias value="modifiers"/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="BackboneElement.modifierExtension"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Extension"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <constraint> 
        <key value="ext-1"/> 
        <severity value="error"/> 
        <human value="Must have either extensions or value[x], not both"/> 
        <expression value="extension.exists() != value.exists()"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
      </constraint> 
      <isModifier value="true"/> 
      <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the
       element that contains them"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.participant.function">
      <path value="AllergyIntolerance.participant.function"/> 
      <short value="Type of involvement"/> 
      <definition value="Distinguishes the type of involvement of the actor in the activities related to
       the allergy or intolerance."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="AllergyIntolerance.participant.function"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="CodeableConcept"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="AllergyIntoleranceParticipantFunction"/> 
        </extension> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/> 
        </extension> 
        <strength value="extensible"/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/participation-role-type"/> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".participation.functionCode"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.participant.actor">
      <path value="AllergyIntolerance.participant.actor"/> 
      <short value="Who or what participated in the activities related to the allergy or intolerance"/> 
      <definition value="Indicates who or what participated in the activities related to the allergy or
       intolerance."/> 
      <min value="1"/> 
      <max value="1"/> 
      <base> 
        <path value="AllergyIntolerance.participant.actor"/> 
        <min value="1"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="Reference"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/CareTeam"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.who"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".player"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.lastOccurrence">
      <path value="AllergyIntolerance.lastOccurrence"/> 
      <short value="Date(/time) of last known occurrence of a reaction"/> 
      <definition value="Represents the date and/or time of the last known occurrence of a reaction event."/> 
      <comment value="This date may be replicated by one of the Onset of Reaction dates. Where a textual
       representation of the date of last occurrence is required e.g. 'In Childhood, '10
       years ago' the AllergyIntolerance.note element should be used."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="AllergyIntolerance.lastOccurrence"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="dateTime"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="outBoundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN, code &lt;=
         CommonClinicalObservationType, value &lt;= ObservationValue (Reaction Type)].effectiveTime"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.note">
      <path value="AllergyIntolerance.note"/> 
      <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."/> 
      <comment value="For example: including reason for flagging a seriousness of 'High Risk'; and instructions
       related to future exposure or administration of the substance, such as administration
       within an Intensive Care Unit or under corticosteroid cover. The notes should be
       related to an allergy or intolerance as a condition in general and not related
       to any particular episode of it. For episode notes and descriptions, use AllergyIntolerance.e
      vent.description and  AllergyIntolerance.event.notes."/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="AllergyIntolerance.note"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Annotation"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="subjectOf.observationEvent[code=&quot;annotation&quot;].value"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.reaction">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="trial-use"/> 
      </extension> 
      <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> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="outBoundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN, code &lt;=
         CommonClinicalObservationType, value &lt;= ObservationValue (Reaction Type)]"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.reaction.id">
      <path value="AllergyIntolerance.reaction.id"/> 
      <representation value="xmlAttr"/> 
      <short value="Unique id for inter-element referencing"/> 
      <definition value="Unique id for the element within a resource (for internal references). This may
       be any string value that does not contain spaces."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Element.id"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <!--  Note: special primitive values have a FHIRPath system type. e.g. this is compiler
       magic (j)  -->
      <type> 
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string"/> 
        </extension> 
        <code value="http://hl7.org/fhirpath/System.String"/> 
      </type> 
      <condition value="ele-1"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.reaction.extension">
      <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. To make the use of extensions safe and managable, there is a strict
       set of governance applied to the definition and use of extensions. Though any implementer
       can define an extension, there is a set of requirements that SHALL be met as part
       of the definition of the extension."/> 
      <comment value="There can be no stigma associated with the use of extensions by any application,
       project, or standard - regardless of the institution or jurisdiction that uses
       or defines the extensions.  The use of extensions is what allows the FHIR specification
       to retain a core level of simplicity for everyone."/> 
      <alias value="extensions"/> 
      <alias value="user content"/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="Element.extension"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Extension"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <constraint> 
        <key value="ext-1"/> 
        <severity value="error"/> 
        <human value="Must have either extensions or value[x], not both"/> 
        <expression value="extension.exists() != value.exists()"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.reaction.modifierExtension">
      <path value="AllergyIntolerance.reaction.modifierExtension"/> 
      <short value="Extensions that cannot be ignored even if unrecognized"/> 
      <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 in which it is
       contained and/or the understanding of the containing element's descendants. Usually
       modifier elements provide negation or qualification. To make the use of extensions
       safe and managable, there is a strict set of governance applied to the definition
       and use of extensions. Though any implementer can 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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or
       DomainResource (including cannot change the meaning of modifierExtension itself)."/> 
      <comment value="There can be no stigma associated with the use of extensions by any application,
       project, or standard - regardless of the institution or jurisdiction that uses
       or defines the extensions.  The use of extensions is what allows the FHIR specification
       to retain a core level of simplicity for everyone."/> 
      <requirements value="Modifier extensions allow for extensions that *cannot* be safely ignored to be
       clearly distinguished from the vast majority of extensions which can be safely
       ignored.  This promotes interoperability by eliminating the need for implementers
       to prohibit the presence of extensions. For further information, see the [definition
       of modifier extensions](extensibility.html#modifierExtension)."/> 
      <alias value="extensions"/> 
      <alias value="user content"/> 
      <alias value="modifiers"/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="BackboneElement.modifierExtension"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Extension"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <constraint> 
        <key value="ext-1"/> 
        <severity value="error"/> 
        <human value="Must have either extensions or value[x], not both"/> 
        <expression value="extension.exists() != value.exists()"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
      </constraint> 
      <isModifier value="true"/> 
      <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the
       element that contains them"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.reaction.substance">
      <path value="AllergyIntolerance.reaction.substance"/> 
      <short value="Specific substance or pharmaceutical product considered to be responsible for event"/> 
      <definition value="Identification of the specific substance (or pharmaceutical product) considered
       to be responsible for the Adverse Reaction event. Note: the substance for a specific
       reaction may be different from the substance identified as the cause of the risk,
       but it must be consistent with it. For instance, it may be a more specific substance
       (e.g. a brand medication) or a composite product that includes the identified substance.
       It must be clinically safe to only process the 'code' and ignore the 'reaction.substance'.
        If a receiving system is unable to confirm that AllergyIntolerance.reaction.substance
       falls within the semantic scope of AllergyIntolerance.code, then the receiving
       system should ignore AllergyIntolerance.reaction.substance."/> 
      <comment value="Coding of the specific substance (or pharmaceutical product) with a terminology
       capable of triggering decision support should be used wherever possible.  The 'code'
       element allows for the use of a specific substance or pharmaceutical product, or
       a group or class of substances. In the case of an allergy or intolerance to a class
       of substances, (for example, &quot;penicillins&quot;), the 'reaction.substance'
       element could be used to code the specific substance that was identified as having
       caused the reaction (for example, &quot;amoxycillin&quot;). Duplication of the
       value in the 'code' and 'reaction.substance' elements is acceptable when a specific
       substance has been recorded in 'code'."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="AllergyIntolerance.reaction.substance"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="CodeableConcept"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="SubstanceCode"/> 
        </extension> 
        <strength value="example"/> 
        <description value="Codes defining the type of the substance (including pharmaceutical products)."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/substance-code"/> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value="outBoundRelationship[typeCode=SAS].target[classCode=SBADM, code &lt;= ExposureCode].participa
        tion[typeCode=CSM].role[classCode=ADMM].player[classCode=MAT, determinerCode=KIND,
         code &lt;= ExposureAgentEntityType]"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.reaction.manifestation">
      <path value="AllergyIntolerance.reaction.manifestation"/> 
      <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."/> 
      <comment value="Manifestation can be expressed as a single word, phrase or brief description. For
       example: nausea, rash or no reaction. It is preferable that manifestation should
       be coded with a terminology, where possible. The values entered here may be used
       to display on an application screen as part of a list of adverse reactions, as
       recommended in the UK NHS CUI guidelines.  Terminologies commonly used include,
       but are not limited to, SNOMED CT or ICD10."/> 
      <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="CodeableReference"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Manifestation"/> 
        </extension> 
        <strength value="example"/> 
        <description value="Clinical symptoms and/or signs that are observed or associated with an Adverse
         Reaction Event."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/clinical-findings"/> 
      </binding> 
      <mapping> 
        <identity value="v2"/> 
        <map value="AL1-5"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="code"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.reaction.description">
      <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."/> 
      <comment value="Use the description to provide any details of a particular event of the occurred
       reaction such as circumstances, reaction specifics, what happened before/after.
       Information, related to the event, but not describing a particular care should
       be captured in the note field. For example: at the age of four, the patient was
       given penicillin for strep throat and subsequently developed severe hives."/> 
      <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> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="text"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.reaction.onset">
      <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> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="v2"/> 
        <map value="AL1-6"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="effectiveTime.low"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.reaction.severity">
      <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."/> 
      <comment value="It is acknowledged that this assessment is very subjective. There may be some specific
       practice domains where objective scales have been applied. Objective scales can
       be included in this model as extensions."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="AllergyIntolerance.reaction.severity"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="code"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="AllergyIntoleranceSeverity"/> 
        </extension> 
        <strength value="required"/> 
        <description value="Clinical assessment of the severity of a reaction event as a whole, potentially
         considering multiple different manifestations."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/reaction-event-severity|5.0.0"/> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value="inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=SEV,
         value &lt;= SeverityObservation (Severity Level)]"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.reaction.exposureRoute">
      <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."/> 
      <comment value="Coding of the route of exposure with a terminology should be used wherever possible."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="AllergyIntolerance.reaction.exposureRoute"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="CodeableConcept"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="RouteOfAdministration"/> 
        </extension> 
        <strength value="example"/> 
        <description value="A coded concept describing the route or physiological path of exposure to a substance."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/route-codes"/> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value="outBoundRelationship[typeCode=SAS].target[classCode=SBADM, code &lt;= ExposureCode].routeCode"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.reaction.note">
      <path value="AllergyIntolerance.reaction.note"/> 
      <short value="Text about event not captured in other fields"/> 
      <definition value="Additional text about the adverse reaction event not captured in other fields."/> 
      <comment value="Use this field to record information indirectly related to a particular event and
       not captured in the description. For example: Clinical records are no longer available,
       recorded based on information provided to the patient by her mother and her mother
       is deceased."/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="AllergyIntolerance.reaction.note"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Annotation"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="subjectOf.observationEvent[code=&quot;annotation&quot;].value"/> 
      </mapping> 
    </element> 
  </snapshot> 
  <differential> 
    <element id="AllergyIntolerance">
      <path value="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 specific to an individual
       and associated with exposure to a substance."/> 
      <comment value="Substances include, but are not limited to: a therapeutic substance administered
       correctly at an appropriate dosage for the individual; food; material derived from
       plants or animals; or venom from insect stings."/> 
      <alias value="Allergy"/> 
      <alias value="Intolerance"/> 
      <alias value="Adverse Reaction"/> 
      <min value="0"/> 
      <max value="*"/> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <mapping> 
        <identity value="w5"/> 
        <map value="clinical.general"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="Observation[classCode=OBS, moodCode=EVN]"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.identifier">
      <path value="AllergyIntolerance.identifier"/> 
      <short value="External ids for this item"/> 
      <definition value="Business identifiers assigned to this AllergyIntolerance by the performer or other
       systems which remain constant as the resource is updated and propagates from server
       to server."/> 
      <comment value="This is a business identifier, not a resource identifier (see [discussion](resource.html#iden
      tifiers)).  It is best practice for the identifier to only appear on a single resource
       instance, however business practices may occasionally dictate that multiple resource
       instances with the same identifier can exist - possibly even with different resource
       types.  For example, multiple Patient and a Person resource instance might share
       the same social insurance number."/> 
      <requirements value="Allows identification of the AllergyIntolerance as it is known by various participating
       systems and in a way that remains consistent across servers."/> 
      <min value="0"/> 
      <max value="*"/> 
      <type> 
        <code value="Identifier"/> 
      </type> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.identifier"/> 
      </mapping> 
      <mapping> 
        <identity value="v2"/> 
        <map value="IAM-7"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="id"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.clinicalStatus">
      <path value="AllergyIntolerance.clinicalStatus"/> 
      <short value="active | inactive | resolved"/> 
      <definition value="The clinical status of the allergy or intolerance."/> 
      <comment value="AllergyIntolerance.clinicalStatus should be present if verificationStatus is not
       entered-in-error and the AllergyIntolerance.code isn't negated (No Known Allergy,
       No Drug Allergy, No Food Allergy, No Latex Allergy).
Refer to [discussion](extensibility.html#Special-Case) if clinicalStatus is missing
       data.
The data type is CodeableConcept because clinicalStatus has some clinical judgment
       involved, such that there might need to be more specificity than the required FHIR
       value set allows. For example, a SNOMED coding might allow for additional specificity."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="CodeableConcept"/> 
      </type> 
      <mustSupport value="false"/> 
      <isModifier value="true"/> 
      <isModifierReason value="This element is labeled as a modifier because the status contains the codes inactive
       and resolved that mark the AllergyIntolerance as no longer active."/> 
      <isSummary value="true"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="AllergyIntoleranceClinicalStatus"/> 
        </extension> 
        <strength value="required"/> 
        <description value="The clinical status of the allergy or intolerance."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/allergyintolerance-clinical|5.0.0"/> 
      </binding> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.status"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="Observation ACT .inboundRelationship[typeCode=COMP].source[classCode=OBS, code=&quot;clinical
        Status&quot;, moodCode=EVN].value"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.verificationStatus">
      <path value="AllergyIntolerance.verificationStatus"/> 
      <short value="unconfirmed | presumed | confirmed | refuted | entered-in-error"/> 
      <definition value="Assertion about certainty associated with the propensity, or potential risk, of
       a reaction to the identified substance (including pharmaceutical product).  The
       verification status pertains to the allergy or intolerance, itself, not to any
       specific AllergyIntolerance attribute."/> 
      <comment value="The data type is CodeableConcept because verificationStatus has some clinical judgment
       involved, such that there might need to be more specificity than the required FHIR
       value set allows. For example, a SNOMED coding might allow for additional specificity."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="CodeableConcept"/> 
      </type> 
      <mustSupport value="false"/> 
      <isModifier value="true"/> 
      <isModifierReason value="This element is labeled as a modifier because the status contains the codes refuted
       and entered-in-error that mark the AllergyIntolerance as not currently valid."/> 
      <isSummary value="true"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="AllergyIntoleranceVerificationStatus"/> 
        </extension> 
        <strength value="required"/> 
        <description value="Assertion about certainty associated with a propensity, or potential risk, of a
         reaction to the identified substance."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/allergyintolerance-verification|5.0.0"/> 
      </binding> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.status"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="Observation ACT .inboundRelationship[typeCode=COMP].source[classCode=OBS, code=&quot;verifica
        tionStatus&quot;, moodCode=EVN].value"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.type">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="trial-use"/> 
      </extension> 
      <path value="AllergyIntolerance.type"/> 
      <short value="allergy | intolerance - Underlying mechanism (if known)"/> 
      <definition value="Identification of the underlying physiological mechanism for the reaction risk."/> 
      <comment value="Allergic (typically immune-mediated) reactions have been traditionally regarded
       as an indicator for potential escalation to significant future risk. Contemporary
       knowledge suggests that some reactions previously thought to be immune-mediated
       are, in fact, non-immune, but in some cases can still pose a life threatening risk.
       It is acknowledged that many clinicians might not be in a position to distinguish
       the mechanism of a particular reaction. Often the term &quot;allergy&quot; is used
       rather generically and may overlap with the use of &quot;intolerance&quot; - in
       practice the boundaries between these two concepts might not be well-defined or
       understood. This data element is included nevertheless, because many legacy systems
       have captured this attribute. Immunologic testing may provide supporting evidence
       for the basis of the reaction and the causative substance, but no tests are 100%
       sensitive or specific for sensitivity to a particular substance. If, as is commonly
       the case, it is unclear whether the reaction is due to an allergy or an intolerance,
       then the type element should be omitted from the resource."/> 
      <alias value="Category"/> 
      <alias value="Class"/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="CodeableConcept"/> 
      </type> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="AllergyIntoleranceType"/> 
        </extension> 
        <strength value="preferred"/> 
        <description value="Identification of the underlying physiological mechanism for a Reaction Risk."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/allergy-intolerance-type"/> 
      </binding> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.class"/> 
      </mapping> 
      <mapping> 
        <identity value="v2"/> 
        <map value="IAM-9"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="code"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.category">
      <path value="AllergyIntolerance.category"/> 
      <short value="food | medication | environment | biologic"/> 
      <definition value="Category of the identified substance."/> 
      <comment value="This data element has been included because it is currently being captured in some
       clinical systems. This data can be derived from the substance where coding systems
       are used, and is effectively redundant in that situation.  When searching on category,
       consider the implications of AllergyIntolerance resources without a category. 
       For example, when searching on category = medication, medication allergies that
       don't have a category valued will not be returned.  Refer to [search](search.html)
       for more information on how to search category with a :missing modifier to get
       allergies that don't have a category.  Additionally, category should be used with
       caution because category can be subjective based on the sender."/> 
      <alias value="Category"/> 
      <alias value="Type"/> 
      <alias value="Reaction Type"/> 
      <alias value="Class"/> 
      <min value="0"/> 
      <max value="*"/> 
      <type> 
        <code value="code"/> 
      </type> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="AllergyIntoleranceCategory"/> 
        </extension> 
        <strength value="required"/> 
        <description value="Category of an identified substance associated with allergies or intolerances."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/allergy-intolerance-category|5.0.0"/> 
      </binding> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.class"/> 
      </mapping> 
      <mapping> 
        <identity value="v2"/> 
        <map value="AL1-2"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="value &lt; IntoleranceValue (Agent)"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.criticality">
      <path value="AllergyIntolerance.criticality"/> 
      <short value="low | high | unable-to-assess"/> 
      <definition value="Estimate of the potential clinical harm, or seriousness, of the reaction to the
       identified substance."/> 
      <comment value="The default criticality value for any propensity to an adverse reaction should
       be 'Low Risk', indicating at the very least a relative contraindication to deliberate
       or voluntary exposure to the substance. 'High Risk' is flagged if the clinician
       has identified a propensity for a more serious or potentially life-threatening
       reaction, such as anaphylaxis, and implies an absolute contraindication to deliberate
       or voluntary exposure to the substance. If this element is missing, the criticality
       is unknown (though it may be known elsewhere).  Systems that capture a severity
       at the condition level are actually representing the concept of criticality whereas
       the severity documented at the reaction level is representing the true reaction
       severity.  Existing systems that are capturing both condition criticality and reaction
       severity may use the term &quot;severity&quot; to represent both.  Criticality
       is the worst it could be in the future (i.e. situation-agnostic) whereas severity
       is situation-dependent."/> 
      <alias value="Severity"/> 
      <alias value="Seriousness"/> 
      <alias value="Contra-indication"/> 
      <alias value="Risk"/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="code"/> 
      </type> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="AllergyIntoleranceCriticality"/> 
        </extension> 
        <strength value="required"/> 
        <description value="Estimate of the potential clinical harm, or seriousness, of a reaction to an identified
         substance."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/allergy-intolerance-criticality|5.0.0"/> 
      </binding> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.grade"/> 
      </mapping> 
      <mapping> 
        <identity value="v2"/> 
        <map value="AL1-4"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=SEV,
         value &lt;= SeverityObservation (Severity Level)]"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.code">
      <path value="AllergyIntolerance.code"/> 
      <short value="Code that identifies the allergy or intolerance"/> 
      <definition value="Code for an allergy or intolerance statement (either a positive or a negated/excluded
       statement).  This may be a code for a substance or pharmaceutical product that
       is considered to be responsible for the adverse reaction risk (e.g., &quot;Latex&quot;),
       an allergy or intolerance condition (e.g., &quot;Latex allergy&quot;), or a negated/excluded
       code for a specific substance or class (e.g., &quot;No latex allergy&quot;) or
       a general or categorical negated statement (e.g.,  &quot;No known allergy&quot;,
       &quot;No known drug allergies&quot;).  Note: the substance for a specific reaction
       may be different from the substance identified as the cause of the risk, but it
       must be consistent with it. For instance, it may be a more specific substance (e.g.
       a brand medication) or a composite product that includes the identified substance.
       It must be clinically safe to only process the 'code' and ignore the 'reaction.substance'.
        If a receiving system is unable to confirm that AllergyIntolerance.reaction.substance
       falls within the semantic scope of AllergyIntolerance.code, then the receiving
       system should ignore AllergyIntolerance.reaction.substance."/> 
      <comment value="It is strongly recommended that this element be populated using a terminology,
       where possible. For example, some terminologies used include RxNorm, SNOMED CT,
       DM+D, NDFRT, ICD-9, IDC-10, UNII, and ATC. Plain text should only be used if there
       is no appropriate terminology available. Additional details can be specified in
       the text.

When a substance or product code is specified for the 'code' element, the &quot;default&quot;
       semantic context is that this is a positive statement of an allergy or intolerance
       (depending on the value of the 'type' element, if present) condition to the specified
       substance/product.  In the corresponding SNOMED CT allergy model, the specified
       substance/product is the target (destination) of the &quot;Causative agent&quot;
       relationship.

The 'substanceExposureRisk' extension is available as a structured and more flexible
       alternative to the 'code' element for making positive or negative allergy or intolerance
       statements.  This extension provides the capability to make &quot;no known allergy&quot;
       (or &quot;no risk of adverse reaction&quot;) statements regarding any coded substance/product
       (including cases when a pre-coordinated &quot;no allergy to x&quot; concept for
       that substance/product does not exist).  If the 'substanceExposureRisk' extension
       is present, the AllergyIntolerance.code element SHALL be omitted."/> 
      <alias value="Code"/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="CodeableConcept"/> 
      </type> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="AllergyIntoleranceCode"/> 
        </extension> 
        <strength value="example"/> 
        <description value="Type of the substance/product, allergy or intolerance condition, or negation/exclusion
         codes for reporting no known allergies."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/allergyintolerance-code"/> 
      </binding> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.what[x]"/> 
      </mapping> 
      <mapping> 
        <identity value="v2"/> 
        <map value="AL1-3 / IAM-3"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="substance/product:

.participation[typeCode=CAGNT].role[classCode=ADMM].player[classCode=MAT, determinerCode=KIND
        , code &lt;= ExposureAgentEntityType]

negated/excluded substance/product:

.participation[typeCode=CAGNT, negationInd=true].role[classCode=ADMM].player[classCode=MAT,
         determinerCode=KIND, code &lt;= ExposureAgentEntityType]

positive or negated/excluded condition/situation:

Observation.code=ASSERTION; Observation.value"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.patient">
      <path value="AllergyIntolerance.patient"/> 
      <short value="Who the allergy or intolerance is for"/> 
      <definition value="The patient who has the allergy or intolerance."/> 
      <alias value="Patient"/> 
      <min value="1"/> 
      <max value="1"/> 
      <type> 
        <code value="Reference"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> 
      </type> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.subject[x]"/> 
      </mapping> 
      <mapping> 
        <identity value="v2"/> 
        <map value="(PID-3)"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".participation[typeCode=SBJ].role[classCode=PAT]"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.encounter">
      <path value="AllergyIntolerance.encounter"/> 
      <short value="Encounter when the allergy or intolerance was asserted"/> 
      <definition value="The encounter when the allergy or intolerance was asserted."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="Reference"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter"/> 
      </type> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.context"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.onset[x]">
      <path value="AllergyIntolerance.onset[x]"/> 
      <short value="When allergy or intolerance was identified"/> 
      <definition value="Estimated or actual date,  date-time, or age when allergy or intolerance was identified."/> 
      <comment value="Age is generally used when the patient reports an age at which the AllergyIntolerance
       was noted. Period is generally used to convey an imprecise onset that occurred
       within the time period.  Range is generally used to convey an imprecise age range
       (e.g. 4 to 6 years old)."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="dateTime"/> 
      </type> 
      <type> 
        <code value="Age"/> 
      </type> 
      <type> 
        <code value="Period"/> 
      </type> 
      <type> 
        <code value="Range"/> 
      </type> 
      <type> 
        <code value="string"/> 
      </type> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.init"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="effectiveTime.low"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.recordedDate">
      <path value="AllergyIntolerance.recordedDate"/> 
      <short value="Date allergy or intolerance was first recorded"/> 
      <definition value="The recordedDate represents when this particular AllergyIntolerance record was
       created in the system, which is often a system-generated date."/> 
      <comment value="When onset date is unknown, recordedDate can be used to establish if the allergy
       or intolerance was present on or before a given date.  If the recordedDate is known
       and provided by a sending system, it is preferred that the receiving system preserve
       that recordedDate value. If the recordedDate is not provided by the sending system,
       the receipt timestamp is sometimes used as the recordedDate."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="dateTime"/> 
      </type> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.recorded"/> 
      </mapping> 
      <mapping> 
        <identity value="v2"/> 
        <map value="IAM-13"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".participation[typeCode=AUT].time"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.participant">
      <path value="AllergyIntolerance.participant"/> 
      <short value="Who or what participated in the activities related to the allergy or intolerance
       and how they were involved"/> 
      <definition value="Indicates who or what participated in the activities related to the allergy or
       intolerance and how they were involved."/> 
      <min value="0"/> 
      <max value="*"/> 
      <type> 
        <code value="BackboneElement"/> 
      </type> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".participation[typeCode=PRF]"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.participant.function">
      <path value="AllergyIntolerance.participant.function"/> 
      <short value="Type of involvement"/> 
      <definition value="Distinguishes the type of involvement of the actor in the activities related to
       the allergy or intolerance."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="CodeableConcept"/> 
      </type> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="AllergyIntoleranceParticipantFunction"/> 
        </extension> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/> 
        </extension> 
        <strength value="extensible"/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/participation-role-type"/> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".participation.functionCode"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.participant.actor">
      <path value="AllergyIntolerance.participant.actor"/> 
      <short value="Who or what participated in the activities related to the allergy or intolerance"/> 
      <definition value="Indicates who or what participated in the activities related to the allergy or
       intolerance."/> 
      <min value="1"/> 
      <max value="1"/> 
      <type> 
        <code value="Reference"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/CareTeam"/> 
      </type> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.who"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".player"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.lastOccurrence">
      <path value="AllergyIntolerance.lastOccurrence"/> 
      <short value="Date(/time) of last known occurrence of a reaction"/> 
      <definition value="Represents the date and/or time of the last known occurrence of a reaction event."/> 
      <comment value="This date may be replicated by one of the Onset of Reaction dates. Where a textual
       representation of the date of last occurrence is required e.g. 'In Childhood, '10
       years ago' the AllergyIntolerance.note element should be used."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="dateTime"/> 
      </type> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="outBoundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN, code &lt;=
         CommonClinicalObservationType, value &lt;= ObservationValue (Reaction Type)].effectiveTime"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.note">
      <path value="AllergyIntolerance.note"/> 
      <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."/> 
      <comment value="For example: including reason for flagging a seriousness of 'High Risk'; and instructions
       related to future exposure or administration of the substance, such as administration
       within an Intensive Care Unit or under corticosteroid cover. The notes should be
       related to an allergy or intolerance as a condition in general and not related
       to any particular episode of it. For episode notes and descriptions, use AllergyIntolerance.e
      vent.description and  AllergyIntolerance.event.notes."/> 
      <min value="0"/> 
      <max value="*"/> 
      <type> 
        <code value="Annotation"/> 
      </type> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="subjectOf.observationEvent[code=&quot;annotation&quot;].value"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.reaction">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="trial-use"/> 
      </extension> 
      <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="*"/> 
      <type> 
        <code value="BackboneElement"/> 
      </type> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="outBoundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN, code &lt;=
         CommonClinicalObservationType, value &lt;= ObservationValue (Reaction Type)]"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.reaction.substance">
      <path value="AllergyIntolerance.reaction.substance"/> 
      <short value="Specific substance or pharmaceutical product considered to be responsible for event"/> 
      <definition value="Identification of the specific substance (or pharmaceutical product) considered
       to be responsible for the Adverse Reaction event. Note: the substance for a specific
       reaction may be different from the substance identified as the cause of the risk,
       but it must be consistent with it. For instance, it may be a more specific substance
       (e.g. a brand medication) or a composite product that includes the identified substance.
       It must be clinically safe to only process the 'code' and ignore the 'reaction.substance'.
        If a receiving system is unable to confirm that AllergyIntolerance.reaction.substance
       falls within the semantic scope of AllergyIntolerance.code, then the receiving
       system should ignore AllergyIntolerance.reaction.substance."/> 
      <comment value="Coding of the specific substance (or pharmaceutical product) with a terminology
       capable of triggering decision support should be used wherever possible.  The 'code'
       element allows for the use of a specific substance or pharmaceutical product, or
       a group or class of substances. In the case of an allergy or intolerance to a class
       of substances, (for example, &quot;penicillins&quot;), the 'reaction.substance'
       element could be used to code the specific substance that was identified as having
       caused the reaction (for example, &quot;amoxycillin&quot;). Duplication of the
       value in the 'code' and 'reaction.substance' elements is acceptable when a specific
       substance has been recorded in 'code'."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="CodeableConcept"/> 
      </type> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="SubstanceCode"/> 
        </extension> 
        <strength value="example"/> 
        <description value="Codes defining the type of the substance (including pharmaceutical products)."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/substance-code"/> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value="outBoundRelationship[typeCode=SAS].target[classCode=SBADM, code &lt;= ExposureCode].participa
        tion[typeCode=CSM].role[classCode=ADMM].player[classCode=MAT, determinerCode=KIND,
         code &lt;= ExposureAgentEntityType]"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.reaction.manifestation">
      <path value="AllergyIntolerance.reaction.manifestation"/> 
      <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."/> 
      <comment value="Manifestation can be expressed as a single word, phrase or brief description. For
       example: nausea, rash or no reaction. It is preferable that manifestation should
       be coded with a terminology, where possible. The values entered here may be used
       to display on an application screen as part of a list of adverse reactions, as
       recommended in the UK NHS CUI guidelines.  Terminologies commonly used include,
       but are not limited to, SNOMED CT or ICD10."/> 
      <alias value="Symptoms"/> 
      <alias value="Signs"/> 
      <min value="1"/> 
      <max value="*"/> 
      <type> 
        <code value="CodeableReference"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation"/> 
      </type> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Manifestation"/> 
        </extension> 
        <strength value="example"/> 
        <description value="Clinical symptoms and/or signs that are observed or associated with an Adverse
         Reaction Event."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/clinical-findings"/> 
      </binding> 
      <mapping> 
        <identity value="v2"/> 
        <map value="AL1-5"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="code"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.reaction.description">
      <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."/> 
      <comment value="Use the description to provide any details of a particular event of the occurred
       reaction such as circumstances, reaction specifics, what happened before/after.
       Information, related to the event, but not describing a particular care should
       be captured in the note field. For example: at the age of four, the patient was
       given penicillin for strep throat and subsequently developed severe hives."/> 
      <alias value="Narrative"/> 
      <alias value="Text"/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="string"/> 
      </type> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="text"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.reaction.onset">
      <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"/> 
      <type> 
        <code value="dateTime"/> 
      </type> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="v2"/> 
        <map value="AL1-6"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="effectiveTime.low"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.reaction.severity">
      <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."/> 
      <comment value="It is acknowledged that this assessment is very subjective. There may be some specific
       practice domains where objective scales have been applied. Objective scales can
       be included in this model as extensions."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="code"/> 
      </type> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="AllergyIntoleranceSeverity"/> 
        </extension> 
        <strength value="required"/> 
        <description value="Clinical assessment of the severity of a reaction event as a whole, potentially
         considering multiple different manifestations."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/reaction-event-severity|5.0.0"/> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value="inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=SEV,
         value &lt;= SeverityObservation (Severity Level)]"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.reaction.exposureRoute">
      <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."/> 
      <comment value="Coding of the route of exposure with a terminology should be used wherever possible."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="CodeableConcept"/> 
      </type> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="RouteOfAdministration"/> 
        </extension> 
        <strength value="example"/> 
        <description value="A coded concept describing the route or physiological path of exposure to a substance."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/route-codes"/> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value="outBoundRelationship[typeCode=SAS].target[classCode=SBADM, code &lt;= ExposureCode].routeCode"/> 
      </mapping> 
    </element> 
    <element id="AllergyIntolerance.reaction.note">
      <path value="AllergyIntolerance.reaction.note"/> 
      <short value="Text about event not captured in other fields"/> 
      <definition value="Additional text about the adverse reaction event not captured in other fields."/> 
      <comment value="Use this field to record information indirectly related to a particular event and
       not captured in the description. For example: Clinical records are no longer available,
       recorded based on information provided to the patient by her mother and her mother
       is deceased."/> 
      <min value="0"/> 
      <max value="*"/> 
      <type> 
        <code value="Annotation"/> 
      </type> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="subjectOf.observationEvent[code=&quot;annotation&quot;].value"/> 
      </mapping> 
    </element> 
  </differential> 
</StructureDefinition> 

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.