PackagesCanonicalsLogsProblems
    Packages
    nhsdigital.fhir.stu3@1.3.0
    https://fhir.nhs.uk/STU3/StructureDefinition/Extension-RARecord-RemovalReason-1
description: Information that describes the decision to remove an item within a Reasonable Adjustment Flag or to remove the entire Flag.
package_name: nhsdigital.fhir.stu3
derivation: constraint
name: Extension-RARecord-RemovalReason-1
type: Extension
elements:
  valueBase64Binary: {type: base64Binary, choiceOf: value, index: 15}
  valueAge: {type: Age, choiceOf: value, index: 32}
  valueTiming: {type: Timing, choiceOf: value, index: 51}
  valueCode: {type: code, choiceOf: value, index: 17}
  valueReference: {type: Reference, choiceOf: value, index: 48}
  valueUri: {type: uri, choiceOf: value, index: 30}
  valueTime: {type: time, choiceOf: value, index: 28}
  valueDecimal: {type: decimal, choiceOf: value, index: 20}
  valueMarkdown: {type: markdown, choiceOf: value, index: 24}
  valueIdentifier: {type: Identifier, choiceOf: value, index: 42}
  valueQuantity: {type: Quantity, choiceOf: value, index: 45}
  value:
    choices: [valueBase64Binary, valueBoolean, valueCode, valueDate, valueDateTime, valueDecimal, valueId, valueInstant, valueInteger, valueMarkdown, valueOid, valuePositiveInt, valueString, valueTime, valueUnsignedInt, valueUri, valueAddress, valueAge, valueAnnotation, valueAttachment, valueCodeableConcept, valueCoding, valueContactPoint, valueCount, valueDistance, valueDuration, valueHumanName, valueIdentifier, valueMoney, valuePeriod, valueQuantity, valueRange, valueRatio, valueReference, valueSampledData, valueSignature, valueTiming]
    index: 14
  valueCount: {type: Count, choiceOf: value, index: 38}
  valueString: {type: string, choiceOf: value, index: 27}
  valueRatio: {type: Ratio, choiceOf: value, index: 47}
  valueBoolean: {type: boolean, choiceOf: value, index: 16}
  valueInstant: {type: instant, choiceOf: value, index: 22}
  valueDateTime: {type: dateTime, choiceOf: value, index: 19}
  valueDate: {type: date, choiceOf: value, index: 18}
  valueDuration: {type: Duration, choiceOf: value, index: 40}
  valueMoney: {type: Money, choiceOf: value, index: 43}
  valueCoding: {type: Coding, choiceOf: value, index: 36}
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        removalReason:
          match: {url: removalReason}
          schema:
            short: Coded Removal Reason
            _required: true
            index: 1
            elements:
              url:
                pattern: {type: Uri, value: removalReason}
                index: 2
              valueCodeableConcept:
                type: CodeableConcept
                index: 3
                slicing:
                  slices:
                    valueCodeableConcept:
                      match: {}
                      schema:
                        type: CodeableConcept
                        _required: true
                        index: 3
                        elements:
                          coding:
                            elements:
                              system: {index: 4}
                              version: {index: 5}
                              code: {index: 6}
                              display: {index: 7}
                              userSelected: {index: 8}
                            required: [display, system, code]
            required: [valueCodeableConcept]
        supportingComment:
          match: {url: supportingComment}
          schema:
            short: Supporting commentary regarding removal of RA or RA item
            _required: true
            index: 9
            elements:
              url:
                pattern: {type: Uri, value: supportingComment}
                index: 10
              valueString:
                type: string
                index: 11
                slicing:
                  slices:
                    valueString:
                      match: {}
                      schema: {type: string, index: 11}
  valueSampledData: {type: SampledData, choiceOf: value, index: 49}
  valueContactPoint: {type: ContactPoint, choiceOf: value, index: 37}
  url:
    pattern: {type: Uri, value: 'https://fhir.nhs.uk/STU3/StructureDefinition/Extension-RARecord-RemovalReason-1'}
    index: 12
  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 35}
  valueAnnotation: {type: Annotation, choiceOf: value, index: 33}
  valuePeriod: {type: Period, choiceOf: value, index: 44}
  valueDistance: {type: Distance, choiceOf: value, index: 39}
  valueRange: {type: Range, choiceOf: value, index: 46}
  valueSignature: {type: Signature, choiceOf: value, index: 50}
  valueInteger: {type: integer, choiceOf: value, index: 23}
  valueHumanName: {type: HumanName, choiceOf: value, index: 41}
  valueUnsignedInt: {type: unsignedInt, choiceOf: value, index: 29}
  valueAttachment: {type: Attachment, choiceOf: value, index: 34}
  valueOid: {type: oid, choiceOf: value, index: 25}
  valueAddress: {type: Address, choiceOf: value, index: 31}
  valuePositiveInt: {type: positiveInt, choiceOf: value, index: 26}
  valueId: {type: id, choiceOf: value, index: 21}
package_version: 1.3.0
extensions:
  removalReason:
    url: removalReason
    short: Coded Removal Reason
    _required: true
    index: 1
    elements:
      url:
        pattern: {type: Uri, value: removalReason}
        index: 2
      valueCodeableConcept:
        type: CodeableConcept
        index: 3
        slicing:
          slices:
            valueCodeableConcept:
              match: {}
              schema:
                type: CodeableConcept
                _required: true
                index: 3
                elements:
                  coding:
                    elements:
                      system: {index: 4}
                      version: {index: 5}
                      code: {index: 6}
                      display: {index: 7}
                      userSelected: {index: 8}
                    required: [display, system, code]
    required: [valueCodeableConcept]
  supportingComment:
    url: supportingComment
    short: Supporting commentary regarding removal of RA or RA item
    _required: true
    index: 9
    elements:
      url:
        pattern: {type: Uri, value: supportingComment}
        index: 10
      valueString:
        type: string
        index: 11
        slicing:
          slices:
            valueString:
              match: {}
              schema: {type: string, index: 11}
class: extension
kind: complex-type
url: https://fhir.nhs.uk/STU3/StructureDefinition/Extension-RARecord-RemovalReason-1
base: http://hl7.org/fhir/StructureDefinition/Extension
version: 1.2.0