{
  "resourceType": "StructureDefinition",
  "id": "Extension-UKCore-MedicationRepeatInformation",
  "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation",
  "version": "2.1.0",
  "name": "ExtensionUKCoreMedicationRepeatInformation",
  "title": "Extension UK Core Medication Repeat Information",
  "status": "active",
  "date": "2021-09-10",
  "publisher": "HL7 UK",
  "contact": [
    {
      "name": "HL7 UK",
      "telecom": [
        {
          "system": "email",
          "value": "secretariat@hl7.org.uk",
          "use": "work",
          "rank": 1
        }
      ]
    },
    {
      "name": "NHS Digital",
      "telecom": [
        {
          "system": "email",
          "value": "interoperabilityteam@nhs.net",
          "use": "work",
          "rank": 2
        }
      ]
    }
  ],
  "description": "The specific repeat information of a medication item.",
  "purpose": "This extension extends the MedicationRequest resource to support the exchange of repeat medications, which is currently not supported by the FHIR standard.",
  "copyright": "Copyright © 2021+ HL7 UK Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at  http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" 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. HL7® FHIR® standard Copyright © 2011+ HL7 The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at  https://www.hl7.org/fhir/license.html.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "MedicationRequest"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "Medication repeat information",
        "definition": "Medication repeat information.",
        "max": "1"
      },
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Extension.extension:numberOfPrescriptionsIssued",
        "path": "Extension.extension",
        "sliceName": "numberOfPrescriptionsIssued",
        "short": "Number of prescriptions issued",
        "definition": "Number of prescriptions issued.",
        "max": "1"
      },
      {
        "id": "Extension.extension:numberOfPrescriptionsIssued.url",
        "path": "Extension.extension.url",
        "fixedUri": "numberOfPrescriptionsIssued"
      },
      {
        "id": "Extension.extension:numberOfPrescriptionsIssued.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "Number of prescriptions issued",
        "definition": "Number of prescriptions issued.",
        "min": 1,
        "type": [
          {
            "code": "unsignedInt"
          }
        ]
      },
      {
        "id": "Extension.extension:authorisationExpiryDate",
        "path": "Extension.extension",
        "sliceName": "authorisationExpiryDate",
        "short": "Repeat prescription review date",
        "definition": "Repeat prescription review date.",
        "max": "1"
      },
      {
        "id": "Extension.extension:authorisationExpiryDate.url",
        "path": "Extension.extension.url",
        "fixedUri": "authorisationExpiryDate"
      },
      {
        "id": "Extension.extension:authorisationExpiryDate.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "Repeat prescription review date",
        "definition": "Repeat prescription review date.",
        "min": 1,
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "max": "0"
      }
    ]
  }
}