PackagesCanonicalsLogsProblems
    Packages
    rs/nhsdigital.fhir.stu3@1.1.0
    https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1
description: Indicates the specific repeat information of a medication item.
package_name: rs/nhsdigital.fhir.stu3
derivation: constraint
name: Extension-CareConnect-GPC-MedicationRepeatInformation-1
type: Extension
elements:
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        numberOfRepeatPrescriptionsAllowed:
          match: {url: numberOfRepeatPrescriptionsAllowed}
          schema:
            short: Number of repeat prescriptions authorised
            index: 1
            elements:
              url:
                pattern: {type: uri, value: numberOfRepeatPrescriptionsAllowed}
                type: uri
                index: 2
              valueUnsignedInt:
                type: unsignedInt
                short: Number of issues authorised
                index: 3
                slicing:
                  slices:
                    valueUnsignedInt:
                      match: {}
                      schema: {type: unsignedInt, short: Number of issues authorised, _required: true, index: 3}
                      min: 1
            required: [valueUnsignedInt]
        numberOfRepeatPrescriptionsIssued:
          match: {url: numberOfRepeatPrescriptionsIssued}
          schema:
            short: Number of repeat prescriptions issued
            _required: true
            index: 4
            elements:
              url:
                pattern: {type: uri, value: numberOfRepeatPrescriptionsIssued}
                type: uri
                index: 5
              valueUnsignedInt:
                type: unsignedInt
                short: Number of issues issued
                index: 6
                slicing:
                  slices:
                    valueUnsignedInt:
                      match: {}
                      schema: {type: unsignedInt, short: Number of issues issued, index: 6}
        authorisationExpiryDate:
          match: {url: authorisationExpiryDate}
          schema:
            short: Repeat prescription review date
            index: 7
            elements:
              url:
                pattern: {type: uri, value: authorisationExpiryDate}
                type: uri
                index: 8
              valueDateTime:
                type: dateTime
                short: Repeat review date
                index: 9
                slicing:
                  slices:
                    valueDateTime:
                      match: {}
                      schema: {type: dateTime, short: Repeat review date, index: 9}
  url:
    pattern: {type: uri, value: 'https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1'}
    type: uri
    index: 10
  value:
    choices: []
    index: 12
package_version: 1.1.0
extensions:
  numberOfRepeatPrescriptionsAllowed:
    url: numberOfRepeatPrescriptionsAllowed
    short: Number of repeat prescriptions authorised
    index: 1
    elements:
      url:
        pattern: {type: uri, value: numberOfRepeatPrescriptionsAllowed}
        type: uri
        index: 2
      valueUnsignedInt:
        type: unsignedInt
        short: Number of issues authorised
        index: 3
        slicing:
          slices:
            valueUnsignedInt:
              match: {}
              schema: {type: unsignedInt, short: Number of issues authorised, _required: true, index: 3}
              min: 1
    required: [valueUnsignedInt]
  numberOfRepeatPrescriptionsIssued:
    url: numberOfRepeatPrescriptionsIssued
    short: Number of repeat prescriptions issued
    _required: true
    index: 4
    elements:
      url:
        pattern: {type: uri, value: numberOfRepeatPrescriptionsIssued}
        type: uri
        index: 5
      valueUnsignedInt:
        type: unsignedInt
        short: Number of issues issued
        index: 6
        slicing:
          slices:
            valueUnsignedInt:
              match: {}
              schema: {type: unsignedInt, short: Number of issues issued, index: 6}
  authorisationExpiryDate:
    url: authorisationExpiryDate
    short: Repeat prescription review date
    index: 7
    elements:
      url:
        pattern: {type: uri, value: authorisationExpiryDate}
        type: uri
        index: 8
      valueDateTime:
        type: dateTime
        short: Repeat review date
        index: 9
        slicing:
          slices:
            valueDateTime:
              match: {}
              schema: {type: dateTime, short: Repeat review date, index: 9}
class: extension
kind: complex-type
url: https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1
base: http://hl7.org/fhir/StructureDefinition/Extension
version: 1.1.0