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