<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="logicalmodel-Medicationauthorisation-R4" />
  <url value="http://linkehr.com/fhir/logicalmodel-medicationauthorisation-R4" />
  <identifier>
    <system value="openEHR-CKM" />
    <value value="openEHR-EHR-CLUSTER.medication_authorisation.v0" />
  </identifier>
  <version value="0" />
  <name value="Medicationauthorisation" />
  <title value="Medication authorisation" />
  <status value="draft" />
  <date value="2024-06-18" />
  <publisher value="openEHR" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://www.veratech.es" />
    </telecom>
  </contact>
  <description value="Details of the authorisation of a medicine, vaccine or other therapeutic good." />
  <purpose value="To record details of authorisation of a medication, which may be of the original prescription, or of re-authorisation of a repeat refill." />
  <fhirVersion value="4.0.0" />
  <mapping>
    <identity value="openEHR" />
    <uri value="http://openehr.org" />
    <name value="openEHR Mapping" />
  </mapping>
  <mapping>
    <identity value="openEHR-natural" />
    <uri value="http://openehr.org" />
    <name value="openEHR natural path" />
  </mapping>
  <kind value="logical" />
  <abstract value="false" />
  <type value="StructureDefinition" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Element" />
  <snapshot>
    <element id="Medication_authorisation">
      <path value="Medication_authorisation" />
      <short value="Medication authorisation" />
      <definition value="Details of the authorisation of a medicine, vaccine or other therapeutic good." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Medication_authorisation" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <mustSupport value="true" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Medication_authorisation.Authorisation_type">
      <path value="Medication_authorisation.Authorisation_type" />
      <short value="Authorisation type" />
      <definition value="Whether the medication is only issued once or may re-issued and dispensed 're-filled' after authorisation by the prescriber." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Medication_authorisation.Authorisation_type" />
        <min value="0" />
        <max value="1" />
      </base>
    </element>
    <element id="Medication_authorisation.Authorisation_type.value">
      <path value="Medication_authorisation.Authorisation_type.value" />
      <short value="Authorisation type" />
      <definition value="Whether the medication is only issued once or may re-issued and dispensed 're-filled' after authorisation by the prescriber." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Medication_authorisation.Authorisation_type.value" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Medication_authorisation.Maximum_number_of_refills">
      <path value="Medication_authorisation.Maximum_number_of_refills" />
      <short value="Maximum number of refills" />
      <definition value="The number of times the expressed quantity of medicine, vaccine or other therapeutic good may be refilled or redispensed without a new prescription." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Medication_authorisation.Maximum_number_of_refills" />
        <min value="0" />
        <max value="1" />
      </base>
    </element>
    <element id="Medication_authorisation.Maximum_number_of_refills.value">
      <path value="Medication_authorisation.Maximum_number_of_refills.value" />
      <short value="Maximum number of refills" />
      <definition value="The number of times the expressed quantity of medicine, vaccine or other therapeutic good may be refilled or redispensed without a new prescription." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Medication_authorisation.Maximum_number_of_refills.value" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Quantity" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Medication_authorisation.Number_of_refills_issued">
      <path value="Medication_authorisation.Number_of_refills_issued" />
      <short value="Number of refills issued" />
      <definition value="The number of refills which have been issued or dispensed for this period of authorisation." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Medication_authorisation.Number_of_refills_issued" />
        <min value="0" />
        <max value="1" />
      </base>
    </element>
    <element id="Medication_authorisation.Number_of_refills_issued.value">
      <path value="Medication_authorisation.Number_of_refills_issued.value" />
      <short value="Number of refills issued" />
      <definition value="The number of refills which have been issued or dispensed for this period of authorisation." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Medication_authorisation.Number_of_refills_issued.value" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Quantity" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Medication_authorisation.Number_of_refills_remaining">
      <path value="Medication_authorisation.Number_of_refills_remaining" />
      <short value="Number of refills remaining" />
      <definition value="The number of re-fills or re-issues that remain valid for this authorisation period." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Medication_authorisation.Number_of_refills_remaining" />
        <min value="0" />
        <max value="1" />
      </base>
    </element>
    <element id="Medication_authorisation.Number_of_refills_remaining.value">
      <path value="Medication_authorisation.Number_of_refills_remaining.value" />
      <short value="Number of refills remaining" />
      <definition value="The number of re-fills or re-issues that remain valid for this authorisation period." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Medication_authorisation.Number_of_refills_remaining.value" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Quantity" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Medication_authorisation.Minimum_interval_between_refills">
      <path value="Medication_authorisation.Minimum_interval_between_refills" />
      <short value="Minimum interval between refills" />
      <definition value="The minimum time between repeat supply of the medicine, vaccine or therapeutic good. Note: This is specified by the ordering clinician for a specific reason such as safety or best practice." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Medication_authorisation.Minimum_interval_between_refills" />
        <min value="0" />
        <max value="1" />
      </base>
    </element>
    <element id="Medication_authorisation.Minimum_interval_between_refills.value">
      <path value="Medication_authorisation.Minimum_interval_between_refills.value" />
      <short value="Minimum interval between refills" />
      <definition value="The minimum time between repeat supply of the medicine, vaccine or therapeutic good. Note: This is specified by the ordering clinician for a specific reason such as safety or best practice." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Medication_authorisation.Minimum_interval_between_refills.value" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Duration" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Medication_authorisation.Authorisation_expiry_date">
      <path value="Medication_authorisation.Authorisation_expiry_date" />
      <short value="Authorisation expiry date" />
      <definition value="The repeat supply authorisation has expired after this date." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Medication_authorisation.Authorisation_expiry_date" />
        <min value="0" />
        <max value="1" />
      </base>
    </element>
    <element id="Medication_authorisation.Authorisation_expiry_date.value">
      <path value="Medication_authorisation.Authorisation_expiry_date.value" />
      <short value="Authorisation expiry date" />
      <definition value="The repeat supply authorisation has expired after this date." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Medication_authorisation.Authorisation_expiry_date.value" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="dateTime" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Medication_authorisation.Prescriber_endorsement">
      <path value="Medication_authorisation.Prescriber_endorsement" />
      <short value="Prescriber endorsement" />
      <definition value="An endorsement by the prescriber that the medication may be supplied under a specific contractual arrangement." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Medication_authorisation.Prescriber_endorsement" />
        <min value="0" />
        <max value="*" />
      </base>
    </element>
    <element id="Medication_authorisation.Prescriber_endorsement.value">
      <path value="Medication_authorisation.Prescriber_endorsement.value" />
      <short value="Prescriber endorsement" />
      <definition value="An endorsement by the prescriber that the medication may be supplied under a specific contractual arrangement." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Medication_authorisation.Prescriber_endorsement.value" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
  </snapshot>
</StructureDefinition>