PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.extensions.r4b@5.3.0-ballot
    http://hl7.org/fhir/StructureDefinition/relative-date
description: Specifies that a date is relative to some event. The event happens [Duration] after [Event].
package_name: hl7.fhir.uv.extensions.r4b
derivation: constraint
name: RelativeDateCriteria
type: Extension
elements:
  extension:
    type: Extension
    short: Specific event that the date is relative to
    index: 0
    slicing:
      slices:
        targetReference:
          match: {}
          schema:
            type: Extension
            short: Specific event that the date is relative to
            _required: true
            index: 0
            extensions: {}
            elements:
              extension: {index: 1}
              url:
                type: uri
                pattern: {type: Uri, value: targetReference}
                index: 2
              value:
                choices: [valueReference]
                index: 4
              valueReference: {type: Reference, choiceOf: value, index: 5}
            required: [valueReference, value]
        targetCode:
          match: {}
          schema:
            short: Kind of event that the date is relative to
            type: Extension
            _required: true
            index: 6
            extensions: {}
            elements:
              extension: {index: 7}
              url:
                type: uri
                pattern: {type: Uri, value: targetCode}
                index: 8
              value:
                choices: [valueCodeableConcept]
                index: 10
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 11}
            required: [value, valueCodeableConcept]
        targetPath:
          match: {}
          schema:
            short: Relative to which element on the event
            type: Extension
            index: 12
            extensions: {}
            elements:
              extension: {index: 13}
              url:
                type: uri
                pattern: {type: Uri, value: targetPath}
                index: 14
              value:
                choices: [valueString]
                index: 16
              valueString: {type: string, choiceOf: value, index: 17}
            required: [valueString, value]
        relationship:
          match: {}
          schema:
            short: before-start | before | before-end | concurrent-with-start | concurrent | concurrent-with-end | after-start | after | after-end
            type: Extension
            index: 18
            extensions: {}
            elements:
              extension: {index: 19}
              url:
                type: uri
                pattern: {type: Uri, value: relationship}
                index: 20
              value:
                choices: [valueCode]
                index: 22
              valueCode: {type: code, choiceOf: value, index: 23}
            required: [valueCode, value]
        offset:
          match: {}
          schema:
            short: Duration before or after the event
            type: Extension
            _required: true
            index: 24
            extensions: {}
            elements:
              extension: {index: 25}
              url:
                type: uri
                pattern: {type: Uri, value: offset}
                index: 26
              value:
                choices: [valueDuration, valueRange]
                index: 28
              valueDuration: {type: Duration, choiceOf: value, index: 29}
              valueRange: {type: Range, choiceOf: value, index: 30}
            required: [valueRange, value, valueDuration]
  url:
    pattern: {type: Uri, value: 'http://hl7.org/fhir/StructureDefinition/relative-date'}
    index: 31
  value:
    choices: []
    index: 33
package_version: 5.3.0-ballot
extensions:
  targetReference:
    url: null
    type: Extension
    short: Specific event that the date is relative to
    _required: true
    index: 0
    extensions: {}
    elements:
      extension: {index: 1}
      url:
        type: uri
        pattern: {type: Uri, value: targetReference}
        index: 2
      value:
        choices: [valueReference]
        index: 4
      valueReference: {type: Reference, choiceOf: value, index: 5}
    required: [valueReference, value]
  targetCode:
    url: null
    short: Kind of event that the date is relative to
    type: Extension
    _required: true
    index: 6
    extensions: {}
    elements:
      extension: {index: 7}
      url:
        type: uri
        pattern: {type: Uri, value: targetCode}
        index: 8
      value:
        choices: [valueCodeableConcept]
        index: 10
      valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 11}
    required: [value, valueCodeableConcept]
  targetPath:
    url: null
    short: Relative to which element on the event
    type: Extension
    index: 12
    extensions: {}
    elements:
      extension: {index: 13}
      url:
        type: uri
        pattern: {type: Uri, value: targetPath}
        index: 14
      value:
        choices: [valueString]
        index: 16
      valueString: {type: string, choiceOf: value, index: 17}
    required: [valueString, value]
  relationship:
    url: null
    short: before-start | before | before-end | concurrent-with-start | concurrent | concurrent-with-end | after-start | after | after-end
    type: Extension
    index: 18
    extensions: {}
    elements:
      extension: {index: 19}
      url:
        type: uri
        pattern: {type: Uri, value: relationship}
        index: 20
      value:
        choices: [valueCode]
        index: 22
      valueCode: {type: code, choiceOf: value, index: 23}
    required: [valueCode, value]
  offset:
    url: null
    short: Duration before or after the event
    type: Extension
    _required: true
    index: 24
    extensions: {}
    elements:
      extension: {index: 25}
      url:
        type: uri
        pattern: {type: Uri, value: offset}
        index: 26
      value:
        choices: [valueDuration, valueRange]
        index: 28
      valueDuration: {type: Duration, choiceOf: value, index: 29}
      valueRange: {type: Range, choiceOf: value, index: 30}
    required: [valueRange, value, valueDuration]
class: extension
kind: complex-type
url: http://hl7.org/fhir/StructureDefinition/relative-date
base: http://hl7.org/fhir/StructureDefinition/Extension
version: 5.3.0-ballot
required: [extension]