<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="ca-on-ps-profile-quantity" />
  <url value="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ps-profile-quantity" />
  <version value="0.10.0" />
  <name value="QuantityPSON" />
  <title value="Quantity (PS-ON)" />
  <status value="draft" />
  <date value="2024-02-01T19:39:15.322061+00:00" />
  <publisher value="Ontario Health" />
  <description value="This profile represents the constraint applied to the Quantity data type by the PS-ON project to use UCUM as the code system for units. Informed by the constraints of the [Observation-Quantity-UV-IPS profile](http://hl7.org/fhir/uv/ips/StructureDefinition-Quantity-uv-ips.html)." />
  <jurisdiction>
    <coding>
      <system value="http://unstats.un.org/unsd/methods/m49/m49.htm" />
      <code value="124" />
    </coding>
  </jurisdiction>
  <fhirVersion value="4.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">
      <path value="Quantity" />
      <short value="A measured amount using UCUM" />
      <definition value="A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies.&#xD;&#xA;This profile imposes that the code system for units be UCUM." />
    </element>
    <element id="Quantity.system">
      <path value="Quantity.system" />
      <short value="UCUM system for units" />
      <min value="1" />
      <fixedUri value="http://unitsofmeasure.org" />
      <mustSupport value="true" />
    </element>
    <element id="Quantity.code">
      <path value="Quantity.code" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>