PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.tools.r5@0.4.0
    http://hl7.org/fhir/tools/StructureDefinition/type-specifier
description: In some logical models, the type of content at one location depends on the value of some other element, and the type is otherwise not explicit in the instance. In such cases, the type of the element is assigned an abstract ancestor type, and this extension specifies how to determine what type is actually used
package_name: hl7.fhir.uv.tools.r5
derivation: constraint
name: TypeSpecifier
type: Extension
elements:
  extension:
    array: true
    min: 2
    max: 2
    index: 0
    slicing:
      rules: closed
      description: Extensions are sliced by url
      discriminator:
      - {path: url, type: value}
      min: 2
      max: 2
      slices:
        condition:
          match: {url: condition}
          schema:
            type: Extension
            short: Condition for this type (FHIRPath)
            _required: true
            index: 1
            extensions: {}
            elements:
              extension: {index: 2}
              url:
                type: uri
                pattern: {type: Uri, value: condition}
                index: 3
              value:
                choices: [valueString]
                index: 5
              valueString: {type: string, choiceOf: value, index: 6}
            required: [valueString, value]
        type:
          match: {url: type}
          schema:
            type: Extension
            short: The type (uri - usually full URI of logical model type_
            _required: true
            index: 7
            extensions: {}
            elements:
              extension: {index: 8}
              url:
                type: uri
                pattern: {type: Uri, value: type}
                index: 9
              value:
                choices: [valueCode]
                index: 11
              valueCode: {type: code, choiceOf: value, index: 12}
            required: [valueCode, value]
  url:
    pattern: {type: Uri, value: 'http://hl7.org/fhir/tools/StructureDefinition/type-specifier'}
    index: 13
  value:
    choices: []
    index: 15
package_version: 0.4.0
extensions:
  condition:
    url: condition
    type: Extension
    short: Condition for this type (FHIRPath)
    _required: true
    index: 1
    extensions: {}
    elements:
      extension: {index: 2}
      url:
        type: uri
        pattern: {type: Uri, value: condition}
        index: 3
      value:
        choices: [valueString]
        index: 5
      valueString: {type: string, choiceOf: value, index: 6}
    required: [valueString, value]
  type:
    url: type
    type: Extension
    short: The type (uri - usually full URI of logical model type_
    _required: true
    index: 7
    extensions: {}
    elements:
      extension: {index: 8}
      url:
        type: uri
        pattern: {type: Uri, value: type}
        index: 9
      value:
        choices: [valueCode]
        index: 11
      valueCode: {type: code, choiceOf: value, index: 12}
    required: [valueCode, value]
class: extension
kind: complex-type
url: http://hl7.org/fhir/tools/StructureDefinition/type-specifier
base: http://hl7.org/fhir/StructureDefinition/Extension
version: 0.4.0