PackagesCanonicalsLogsProblems
    Packages
    uk.nhsdigital.r4.test@2.8.9-prerelease
    https://fhir.nhs.uk/StructureDefinition/Extension-eRS-ServiceRequest-State
description: null
package_name: uk.nhsdigital.r4.test
derivation: constraint
name: ExtensionNHSDigitaleRSReferralState
type: Extension
elements:
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: 0
      slices:
        state:
          match: {url: state}
          schema:
            index: 1
            elements:
              url:
                pattern: {type: Uri, value: state}
                index: 2
              value:
                choices: [valueCoding]
                index: 4
              valueCoding: {type: Coding, choiceOf: value, index: 5}
              value[x]:
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://fhir.nhs.uk/CodeSystem/eRS-ReferralState'}
                    index: 6
                  code: {index: 7}
                required: [system, code]
            required: [valueCoding, value]
        reason:
          match: {url: reason}
          schema:
            index: 8
            elements:
              url:
                pattern: {type: Uri, value: reason}
                index: 9
              value:
                choices: [valueCoding]
                index: 11
              valueCoding: {type: Coding, choiceOf: value, index: 12}
              value[x]:
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://fhir.nhs.uk/CodeSystem/NHSDigital-AppointmentCancellationReason'}
                    index: 13
                  code: {index: 14}
                required: [system, code]
            required: [valueCoding, value]
        comments:
          match: {url: comments}
          schema:
            index: 15
            elements:
              url:
                pattern: {type: Uri, value: comments}
                index: 16
              value:
                choices: [valueString]
                index: 18
              valueString: {type: string, choiceOf: value, index: 19}
            required: [valueString, value]
        stateResource:
          match: {url: stateResource}
          schema:
            index: 20
            elements:
              url:
                pattern: {type: Uri, value: stateResource}
                index: 21
              value:
                choices: [valueReference]
                index: 23
              valueReference:
                type: Reference
                choiceOf: value
                refers: ['https://fhir.nhs.uk/StructureDefinition/NHSDigital-Appointment', 'https://fhir.nhs.uk/StructureDefinition/NHSDigital-Task']
                index: 24
  url:
    pattern: {type: Uri, value: 'https://fhir.nhs.uk/StructureDefinition/Extension-eRS-ServiceRequest-State'}
    index: 25
  value:
    choices: []
    index: 27
package_version: 2.8.9-prerelease
extensions:
  state:
    url: state
    index: 1
    elements:
      url:
        pattern: {type: Uri, value: state}
        index: 2
      value:
        choices: [valueCoding]
        index: 4
      valueCoding: {type: Coding, choiceOf: value, index: 5}
      value[x]:
        elements:
          system:
            pattern: {type: Uri, value: 'https://fhir.nhs.uk/CodeSystem/eRS-ReferralState'}
            index: 6
          code: {index: 7}
        required: [system, code]
    required: [valueCoding, value]
  reason:
    url: reason
    index: 8
    elements:
      url:
        pattern: {type: Uri, value: reason}
        index: 9
      value:
        choices: [valueCoding]
        index: 11
      valueCoding: {type: Coding, choiceOf: value, index: 12}
      value[x]:
        elements:
          system:
            pattern: {type: Uri, value: 'https://fhir.nhs.uk/CodeSystem/NHSDigital-AppointmentCancellationReason'}
            index: 13
          code: {index: 14}
        required: [system, code]
    required: [valueCoding, value]
  comments:
    url: comments
    index: 15
    elements:
      url:
        pattern: {type: Uri, value: comments}
        index: 16
      value:
        choices: [valueString]
        index: 18
      valueString: {type: string, choiceOf: value, index: 19}
    required: [valueString, value]
  stateResource:
    url: stateResource
    index: 20
    elements:
      url:
        pattern: {type: Uri, value: stateResource}
        index: 21
      value:
        choices: [valueReference]
        index: 23
      valueReference:
        type: Reference
        choiceOf: value
        refers: ['https://fhir.nhs.uk/StructureDefinition/NHSDigital-Appointment', 'https://fhir.nhs.uk/StructureDefinition/NHSDigital-Task']
        index: 24
class: extension
kind: complex-type
url: https://fhir.nhs.uk/StructureDefinition/Extension-eRS-ServiceRequest-State
base: http://hl7.org/fhir/StructureDefinition/Extension
version: null