<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="dispense-number" />
  <url value="http://hl7.org.au/fhir/StructureDefinition/dispense-number" />
  <version value="1.1.0" />
  <name value="DispenseNumber" />
  <title value="Number of this Dispense" />
  <status value="draft" />
  <date value="2018-10-03" />
  <publisher value="Health Level Seven Australia (Medications WG)" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://hl7.org.au" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="This extension applies to the MedicationDispense resource and the value indicates the dispense number or sequence number that has been reached for a therapeutic good prescribed with repeats. It has the value 1 when there are no repeats. The value increments by one each time a dispense act is successfully completed." />
  <fhirVersion value="3.0.1" />
  <kind value="complex-type" />
  <abstract value="false" />
  <contextType value="resource" />
  <context value="MedicationDispense" />
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <short value="Number of this dispense" />
      <definition value="This extension applies to the MedicationDispense resource and the value indicates the dispense number or sequence number that has been reached for a therapeutic good prescribed with repeats. " />
      <comment value="It has the value 1 when there are no repeats. The value increments by one each time a dispense act is successfully completed. " />
      <max value="1" />
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <fixedUri value="http://hl7.org.au/fhir/StructureDefinition/dispense-number" />
    </element>
    <element id="Extension.value[x]:valueInteger">
      <path value="Extension.valueInteger" />
      <sliceName value="valueInteger" />
      <short value="Dispense Number" />
      <min value="1" />
      <type>
        <code value="integer" />
      </type>
    </element>
  </differential>
</StructureDefinition>