<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="SimpleQuantity" />
  <url value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
  <version value="4.0.1" />
  <name value="SimpleQuantity" />
  <title value="SimpleQuantity" />
  <status value="active" />
  <date value="2019-11-01T09:29:23+11:00" />
  <publisher value="HL7 FHIR Standard" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://hl7.org/fhir" />
    </telecom>
  </contact>
  <description value="A fixed quantity (no comparator)" />
  <fhirVersion value="4.0.1" />
  <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 fixed quantity (no comparator)" />
      <definition value="The comparator is not used on a SimpleQuantity" />
      <constraint>
        <key value="sqty-1" />
        <severity value="error" />
        <human value="The comparator is not used on a SimpleQuantity" />
        <expression value="comparator.empty()" />
        <xpath value="not(exists(f:comparator))" />
        <source value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
      </constraint>
    </element>
    <element id="Quantity.comparator">
      <path value="Quantity.comparator" />
      <definition value="Not allowed to be used in this context" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>