<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="allergyintolerance-certainty" />
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="pc" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="1" />
  </extension>
  <url value="http://hl7.org/fhir/StructureDefinition/allergyintolerance-certainty" />
  <name value="certainty" />
  <title value="certainty" />
  <status value="draft" />
  <date value="2015-02-21" />
  <publisher value="Health Level Seven, Inc. - FHIR WG" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="HL7" />
    </telecom>
  </contact>
  <description value="Statement about the degree of clinical certainty that the specific substance was the cause of the manifestation in this reaction event." />
  <fhirVersion value="3.0.1" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <kind value="complex-type" />
  <abstract value="false" />
  <contextType value="resource" />
  <context value="AllergyIntolerance.reaction" />
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <short value="Certainty that the substance was the cause of the manifestation" />
      <definition value="Statement about the degree of clinical certainty that the specific substance was the cause of the manifestation in this reaction event." />
      <comment value="When certainty is missing, it means no information exists (although it could be in narrative).  By contrast, the unknown code is used when there is an explicit assertion that certainty is not known, such as when a patient eats a meal and it is unknown which food caused the reaction." />
      <min value="0" />
      <max value="1" />
      <mapping>
        <identity value="rim" />
        <map value="uncertaintyCode" />
      </mapping>
    </element>
    <element id="Extension.extension">
      <path value="Extension.extension" />
      <max value="0" />
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <type>
        <code value="uri" />
      </type>
      <fixedUri value="http://hl7.org/fhir/StructureDefinition/allergyintolerance-certainty" />
    </element>
    <element id="Extension.valueCode">
      <path value="Extension.valueCode" />
      <type>
        <code value="code" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="AllergyIntoleranceCertainty" />
        </extension>
        <strength value="required" />
        <description value="Statement about the degree of clinical certainty that a specific substance was the cause of the manifestation in a reaction event." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/reaction-event-certainty" />
        </valueSetReference>
      </binding>
    </element>
  </differential>
</StructureDefinition>