{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2017-08-25T14:06:04.032+00:00"
  },
  "url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-MedicationRepeatInformation-1",
  "version": "0.0.1",
  "name": "Extension-CareConnect-MedicationRepeatInformation-1",
  "status": "draft",
  "date": "2017-07-17T13:01:26.8429479+00:00",
  "publisher": "HL7 UK",
  "description": "Indicates the specific repeat information of a medication item.",
  "copyright": "Copyright © 2016 HL7 UK\r\n\r\nLicensed 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\r\n\r\nhttp://www.apache.org/licenses/LICENSE-2.0\r\n\r\nUnless 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.\r\n\r\nHL7® FHIR® standard Copyright © 2011+ HL7\r\n\r\nThe HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at\r\n\r\nhttps://www.hl7.org/fhir/license.html",
  "fhirVersion": "3.0.1",
  "kind": "complex-type",
  "abstract": false,
  "contextType": "resource",
  "context": [
    "MedicationStatement"
  ],
  "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."
      },
      {
        "path": "Extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Extension.extension:numberOfRepeatsAllowed",
        "path": "Extension.extension",
        "sliceName": "numberOfRepeatsAllowed",
        "short": "Number of repeats authorised",
        "definition": "Number of repeats authorised.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Extension.extension:numberOfRepeatsAllowed.url",
        "path": "Extension.extension.url",
        "fixedUri": "numberOfRepeatsAllowed"
      },
      {
        "id": "Extension.extension:numberOfRepeatsAllowed.value[x]:valuePositiveInt",
        "path": "Extension.extension.valuePositiveInt",
        "sliceName": "valuePositiveInt",
        "short": "Number of issues authorised",
        "definition": "Number of issues authorised.",
        "min": 1,
        "type": [
          {
            "code": "positiveInt"
          }
        ]
      },
      {
        "id": "Extension.extension:numberOfRepeatsIssued",
        "path": "Extension.extension",
        "sliceName": "numberOfRepeatsIssued",
        "short": "Number of repeats issued",
        "definition": "Number of repeats issued.",
        "max": "1"
      },
      {
        "id": "Extension.extension:numberOfRepeatsIssued.url",
        "path": "Extension.extension.url",
        "fixedUri": "numberOfRepeatsIssued"
      },
      {
        "id": "Extension.extension:numberOfRepeatsIssued.value[x]:valuePositiveInt",
        "path": "Extension.extension.valuePositiveInt",
        "sliceName": "valuePositiveInt",
        "short": "Number of issues issued",
        "definition": "Number of issues issued.",
        "type": [
          {
            "code": "positiveInt"
          }
        ]
      },
      {
        "id": "Extension.extension:expectedSupplyDuration",
        "path": "Extension.extension",
        "sliceName": "expectedSupplyDuration",
        "short": "Repeat expected supply duration",
        "definition": "Repeat expected supply duration.",
        "max": "1"
      },
      {
        "id": "Extension.extension:expectedSupplyDuration.url",
        "path": "Extension.extension.url",
        "fixedUri": "expectedSupplyDuration"
      },
      {
        "id": "Extension.extension:expectedSupplyDuration.value[x]:valueQuantity",
        "path": "Extension.extension.valueQuantity",
        "sliceName": "valueQuantity",
        "short": "Repeat expected supply duration",
        "definition": "Repeat expected supply duration.",
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "Extension.extension:reviewDate",
        "path": "Extension.extension",
        "sliceName": "reviewDate",
        "short": "Repeat review date",
        "definition": "Repeat review date.",
        "max": "1"
      },
      {
        "id": "Extension.extension:reviewDate.url",
        "path": "Extension.extension.url",
        "fixedUri": "reviewDate"
      },
      {
        "id": "Extension.extension:reviewDate.value[x]:valueDateTime",
        "path": "Extension.extension.valueDateTime",
        "sliceName": "valueDateTime",
        "short": "Repeat review date",
        "definition": "Repeat review date.",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-MedicationRepeatInformation-1"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "max": "0"
      }
    ]
  }
}