<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="shr-core-Statistic" />
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>
        <b>SHR Statistic Profile</b>
      </p>
      <p>A quantity that represents a statistic, e.g. maximum, minimum, mean, median, etc.</p>
      <p>
        <b>SHR Mapping Summary</b>
      </p>
      <p>
        <pre>shr.core.Statistic maps to Quantity:
  decimal maps to value
  Units.Coding.code maps to code
  Units.Coding.CodeSystem maps to system
  Units.Coding.DisplayText maps to unit
  Comparator maps to comparator
</pre>
      </p>
    </div>
  </text>
  <url value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-Statistic" />
  <identifier>
    <system value="http://standardhealthrecord.org" />
    <value value="shr.core.Statistic" />
  </identifier>
  <version value="0.0.1" />
  <name value="SHR Statistic Profile" />
  <status value="draft" />
  <date value="2017-12-20" />
  <publisher value="The MITRE Corporation: Standard Health Record Collaborative" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://standardhealthrecord.org" />
    </telecom>
  </contact>
  <description value="A quantity that represents a statistic, e.g. maximum, minimum, mean, median, etc." />
  <purpose value="Need to able to capture all sorts of measured values, even if the measured value are not precisely quantified. Values include exact measures such as 3.51g, customary units such as 3 tablets, and currencies such as $100.32USD." />
  <fhirVersion value="3.0.1" />
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <kind value="complex-type" />
  <abstract value="false" />
  <type value="Quantity" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Quantity" />
  <derivation value="constraint" />
  <differential>
    <element id="Quantity:shr-core-Statistic">
      <path value="Quantity" />
      <short value="SHR Statistic Profile" />
      <definition value="A quantity that represents a statistic, e.g. maximum, minimum, mean, median, etc." />
    </element>
    <element id="Quantity:shr-core-Statistic.extension:statistictype">
      <path value="Quantity.extension" />
      <sliceName value="statistictype" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <definition value="The type of statistic that is represented by the value." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-StatisticType-extension" />
      </type>
    </element>
    <element id="Quantity:shr-core-Statistic.value">
      <path value="Quantity.value" />
      <min value="1" />
      <max value="1" />
    </element>
  </differential>
</StructureDefinition>