<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="shr-medication-NumberOfRefillsAllowed-extension" />
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>
        <b>SHR NumberOfRefillsAllowed Extension</b>
      </p>
      <p>The maximum number of times the dispense can be repeated. For medication dispense, this integer does NOT include the original order dispense. This means that if an order indicates dispense 30 tablets plus 3 repeats, then the order can be dispensed a total of 4 times and the patient can receive a total of 120 tablets.</p>
    </div>
  </text>
  <url value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-medication-NumberOfRefillsAllowed-extension" />
  <identifier>
    <system value="http://standardhealthrecord.org" />
    <value value="shr.medication.NumberOfRefillsAllowed" />
  </identifier>
  <version value="0.0.1" />
  <name value="SHR NumberOfRefillsAllowed Extension" />
  <title value="SHR NumberOfRefillsAllowed Extension" />
  <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="The maximum number of times the dispense can be repeated. For medication dispense, this integer does NOT include the original order dispense. This means that if an order indicates dispense 30 tablets plus 3 repeats, then the order can be dispensed a total of 4 times and the patient can receive a total of 120 tablets." />
  <fhirVersion value="3.0.1" />
  <kind value="complex-type" />
  <abstract value="false" />
  <contextType value="resource" />
  <context value="*" />
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension:numberofrefillsallowed">
      <path value="Extension" />
      <short value="SHR NumberOfRefillsAllowed Extension" />
      <definition value="The maximum number of times the dispense can be repeated. For medication dispense, this integer does NOT include the original order dispense. This means that if an order indicates dispense 30 tablets plus 3 repeats, then the order can be dispensed a total of 4 times and the patient can receive a total of 120 tablets." />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Extension:numberofrefillsallowed.extension:extension">
      <path value="Extension.extension" />
      <sliceName value="extension" />
      <max value="0" />
    </element>
    <element id="Extension:numberofrefillsallowed.url">
      <path value="Extension.url" />
      <type>
        <code value="uri" />
      </type>
      <fixedUri value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-medication-NumberOfRefillsAllowed-extension" />
    </element>
    <element id="Extension:numberofrefillsallowed.valuePositiveInt">
      <path value="Extension.valuePositiveInt" />
      <min value="1" />
      <type>
        <code value="positiveInt" />
      </type>
    </element>
  </differential>
</StructureDefinition>