<StructureDefinition xmlns="http://hl7.org/fhir">
  <meta>
    <lastUpdated value="2023-08-04T11:51:32.3446755+00:00" />
  </meta>
  <url value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-MedicationRepeatInformation-1" />
  <version value="1.2.0" />
  <name value="Extension-CareConnect-MedicationRepeatInformation-1" />
  <status value="draft" />
  <date value="2019-11-22" />
  <publisher value="HL7 UK" />
  <contact>
    <name value="INTEROPen" />
    <telecom>
      <system value="email" />
      <value value="admin@interopen.org" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="Indicates the specific repeat information of a medication item." />
  <purpose value="CURATED BY INTEROPen see: http://www.interopen.org/careconnect-curation-methodology/" />
  <copyright value="Copyright © 2019 HL7 UK&#xD;&#xA;&#xD;&#xA;Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); you may not use this file except in compliance with the License. You may obtain a copy of the License at&#xD;&#xA;&#xD;&#xA;http://www.apache.org/licenses/LICENSE-2.0&#xD;&#xA;&#xD;&#xA;Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.&#xD;&#xA;&#xD;&#xA;HL7® FHIR® standard Copyright © 2011+ HL7&#xD;&#xA;&#xD;&#xA;The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at&#xD;&#xA;&#xD;&#xA;https://www.hl7.org/fhir/license.html" />
  <fhirVersion value="3.0.2" />
  <kind value="complex-type" />
  <abstract value="false" />
  <contextType value="resource" />
  <context value="MedicationRequest" />
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <short value="Medication repeat information" />
      <definition value="Medication repeat information." />
      <max value="1" />
    </element>
    <element id="Extension.extension">
      <path value="Extension.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="Extension.extension:numberOfRepeatPrescriptionsAllowed">
      <path value="Extension.extension" />
      <sliceName value="numberOfRepeatPrescriptionsAllowed" />
      <short value="Number of repeat prescriptions authorised" />
      <definition value="Number of repeat prescriptions authorised." />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Extension.extension:numberOfRepeatPrescriptionsAllowed.url">
      <path value="Extension.extension.url" />
      <fixedUri value="numberOfRepeatPrescriptionsAllowed" />
    </element>
    <element id="Extension.extension:numberOfRepeatPrescriptionsAllowed.value[x]:valueUnsignedInt">
      <path value="Extension.extension.valueUnsignedInt" />
      <sliceName value="valueUnsignedInt" />
      <short value="Number of issues authorised" />
      <definition value="Number of issues authorised." />
      <min value="1" />
      <type>
        <code value="unsignedInt" />
      </type>
    </element>
    <element id="Extension.extension:numberOfRepeatPrescriptionsIssued">
      <path value="Extension.extension" />
      <sliceName value="numberOfRepeatPrescriptionsIssued" />
      <short value="Number of repeat prescriptions issued" />
      <definition value="Number of repeat prescriptions issued." />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Extension.extension:numberOfRepeatPrescriptionsIssued.url">
      <path value="Extension.extension.url" />
      <fixedUri value="numberOfRepeatPrescriptionsIssued" />
    </element>
    <element id="Extension.extension:numberOfRepeatPrescriptionsIssued.value[x]:valueUnsignedInt">
      <path value="Extension.extension.valueUnsignedInt" />
      <sliceName value="valueUnsignedInt" />
      <short value="Number of issues issued" />
      <definition value="Number of issues issued." />
      <type>
        <code value="unsignedInt" />
      </type>
    </element>
    <element id="Extension.extension:authorisationExpiryDate">
      <path value="Extension.extension" />
      <sliceName value="authorisationExpiryDate" />
      <short value="Repeat prescription review date" />
      <definition value="Repeat prescription review date." />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Extension.extension:authorisationExpiryDate.url">
      <path value="Extension.extension.url" />
      <fixedUri value="authorisationExpiryDate" />
    </element>
    <element id="Extension.extension:authorisationExpiryDate.value[x]:valueDateTime">
      <path value="Extension.extension.valueDateTime" />
      <sliceName value="valueDateTime" />
      <short value="Repeat review date" />
      <definition value="Repeat review date." />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <fixedUri value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-MedicationRepeatInformation-1" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>