PackagesCanonicalsLogsProblems
    Packages
    rs/hl7.fhir.core@3.5.0
    http://hl7.org/fhir/StructureDefinition/cqf-relativeDateTime
description: A date/time value that is determined based on a duration offset from a target event.
package_name: rs/hl7.fhir.core
derivation: constraint
name: relativeDateTime
type: Extension
elements:
  extension:
    type: Extension
    short: Relative to what event
    index: 0
    slicing:
      slices:
        target:
          match: {}
          schema:
            type: Extension
            short: Relative to what event
            _required: true
            index: 0
            extensions: {}
            elements:
              extension: {index: 1}
              url:
                type: uri
                pattern: {type: uri, value: target}
                index: 2
              valueReference:
                type: Reference
                refers: ['http://hl7.org/fhir/StructureDefinition/Resource']
                index: 3
        targetPath:
          match: {}
          schema:
            short: Relative to which element on the event
            type: Extension
            _required: true
            index: 4
            extensions: {}
            elements:
              extension: {index: 5}
              url:
                type: uri
                pattern: {type: uri, value: targetPath}
                index: 6
              valueString: {type: string, index: 7}
        relationship:
          match: {}
          schema:
            type: Extension
            short: before-start | before | before-end | concurrent-with-start | concurrent | concurrent-with-end | after-start | after | after-end
            _required: true
            index: 8
            extensions: {}
            elements:
              extension: {index: 9}
              url:
                type: uri
                pattern: {type: uri, value: relationship}
                index: 10
              valueCode:
                type: code
                binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/action-relationship-type', bindingName: ActionRelationshipType}
                index: 11
        offset:
          match: {}
          schema:
            type: Extension
            short: How long
            _required: true
            index: 12
            extensions: {}
            elements:
              extension: {index: 13}
              url:
                type: uri
                pattern: {type: uri, value: offset}
                index: 14
              value:
                choices: [valueDuration, valueRange]
                index: 16
              valueDuration: {type: Duration, choiceOf: value, index: 17}
              valueRange: {type: Range, choiceOf: value, index: 18}
            required: [value, valueDuration, valueRange]
  url:
    type: uri
    pattern: {type: uri, value: 'http://hl7.org/fhir/StructureDefinition/cqf-relativeDateTime'}
    index: 19
  value:
    choices: []
    index: 21
package_version: 3.5.0
extensions:
  target:
    url: null
    type: Extension
    short: Relative to what event
    _required: true
    index: 0
    extensions: {}
    elements:
      extension: {index: 1}
      url:
        type: uri
        pattern: {type: uri, value: target}
        index: 2
      valueReference:
        type: Reference
        refers: ['http://hl7.org/fhir/StructureDefinition/Resource']
        index: 3
  targetPath:
    url: null
    short: Relative to which element on the event
    type: Extension
    _required: true
    index: 4
    extensions: {}
    elements:
      extension: {index: 5}
      url:
        type: uri
        pattern: {type: uri, value: targetPath}
        index: 6
      valueString: {type: string, index: 7}
  relationship:
    url: null
    type: Extension
    short: before-start | before | before-end | concurrent-with-start | concurrent | concurrent-with-end | after-start | after | after-end
    _required: true
    index: 8
    extensions: {}
    elements:
      extension: {index: 9}
      url:
        type: uri
        pattern: {type: uri, value: relationship}
        index: 10
      valueCode:
        type: code
        binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/action-relationship-type', bindingName: ActionRelationshipType}
        index: 11
  offset:
    url: null
    type: Extension
    short: How long
    _required: true
    index: 12
    extensions: {}
    elements:
      extension: {index: 13}
      url:
        type: uri
        pattern: {type: uri, value: offset}
        index: 14
      value:
        choices: [valueDuration, valueRange]
        index: 16
      valueDuration: {type: Duration, choiceOf: value, index: 17}
      valueRange: {type: Range, choiceOf: value, index: 18}
    required: [value, valueDuration, valueRange]
class: extension
kind: complex-type
url: http://hl7.org/fhir/StructureDefinition/cqf-relativeDateTime
base: http://hl7.org/fhir/StructureDefinition/Extension
version: null
required: [extension]