<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="ordinalValue" />
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="fhir" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="1" />
  </extension>
  <url value="http://hl7.org/fhir/StructureDefinition/ordinalValue" />
  <version value="4.0.0" />
  <name value="Ordinal Value" />
  <status value="draft" />
  <date value="2013-12-05" />
  <publisher value="Health Level Seven International (FHIR Infrastructure)" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://www.hl7.org/Special/committees/fiwg" />
    </telecom>
  </contact>
  <description value="A numeric value that allows the comparison (less than, greater than) or other numerical &#xA;manipulation of a concept (e.g. Adding up components of a score). Scores are usually a whole number, but occasionally decimals are encountered in scores." />
  <fhirVersion value="4.0.0" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <kind value="complex-type" />
  <abstract value="false" />
  <context>
    <type value="element" />
    <expression value="Coding" />
  </context>
  <context>
    <type value="element" />
    <expression value="Questionnaire.item.answerOption" />
  </context>
  <context>
    <type value="element" />
    <expression value="CodeSystem.concept" />
  </context>
  <context>
    <type value="element" />
    <expression value="ValueSet.compose.include.concept" />
  </context>
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <short value="Assigned Ordinal Value" />
      <definition value="A numeric value that allows the comparison (less than, greater than) or other numerical &#xA;manipulation of a concept (e.g. Adding up components of a score). Scores are usually a whole number, but occasionally decimals are encountered in scores." />
      <comment value="Scores are commonly encountered in various clinical assessment scales. Assigning a value to a concept should generally be done in a formal code system that defines the value, or in an applicable value set for the concept, but some concepts do not have a formal definition (or are not even represented as a concept formally, especially in [Questionnaires](questionnaire.html), &#xA;so this extension is allowed to appear ouside those preferred contexts.  Scores may even be assigned arbitrarily during use (hence, on Coding). The value may be constrained to an integer in some contexts of use. Todo: Scoring algorithms may also be defined directly, but how this is done is not yet defined." />
      <min value="0" />
      <max value="1" />
    </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/ordinalValue" />
    </element>
    <element id="Extension.valueDecimal">
      <path value="Extension.valueDecimal" />
      <type>
        <code value="decimal" />
      </type>
    </element>
  </differential>
</StructureDefinition>