PackagesCanonicalsLogsProblems
    Packages
    hl7.cda.us.ccda@4.0.0
    http://hl7.org/cda/us/ccda/StructureDefinition/AgeRangeObservation
description: 'This Age Range Observation captures an estimated age range when the subject''s exact age is unknown. It is used in cases where only an approximate age, expressed as a range within specific age units (e.g., years), is available. For example, a person might report, \"My father was between 50 and 55 years old when he developed Parkinson''s disease.\" '
package_name: hl7.cda.us.ccda
derivation: constraint
name: AgeRangeObservation
type: http://hl7.org/cda/stds/core/StructureDefinition/Observation
elements:
  templateId:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: root, type: value}
      min: 1
      slices:
        age-obs:
          match: {root: 2.16.840.1.113883.10.20.22.4.31}
          schema:
            _required: true
            index: 1
            elements:
              root:
                pattern: {type: string, value: 2.16.840.1.113883.10.20.22.4.31}
                type: string
                index: 2
              extension: {index: 3}
            required: [root]
            extensions: {}
  classCode:
    pattern: {type: code, value: OBS}
    type: code
    index: 4
  moodCode:
    pattern: {type: code, value: EVN}
    type: code
    index: 5
  code:
    short: Age at onset of clinical finding
    index: 6
    elements:
      code:
        pattern: {type: code, value: '445518008'}
        type: code
        index: 7
      codeSystem:
        short: SNOMED CT
        pattern: {type: string, value: 2.16.840.1.113883.6.96}
        type: string
        index: 8
    required: [code, codeSystem]
  text:
    short: SHOULD reference the portion of section narrative text corresponding to this entry
    index: 9
    elements:
      reference:
        constraint:
          value-starts-octothorpe: {human: 'If reference/@value is present, it SHALL begin with a ''#'' and SHALL point to its corresponding narrative', source: 'http://hl7.org/cda/us/ccda/StructureDefinition/AgeRangeObservation', severity: error, expression: value.exists() implies value.startsWith('#')}
        index: 10
  statusCode:
    index: 11
    elements:
      code:
        pattern: {type: code, value: completed}
        type: code
        index: 12
    required: [code]
  value:
    type: http://hl7.org/cda/stds/core/StructureDefinition/IVL-PQ
    short: Indicates the age range during which the event or observation occured
    index: 13
    elements:
      low:
        index: 14
        elements:
          unit:
            binding: {strength: required, valueSet: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.11.20.9.21'}
            index: 15
        required: [unit]
      high:
        index: 16
        elements:
          unit:
            binding: {strength: required, valueSet: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.11.20.9.21'}
            index: 17
        required: [unit]
    required: [low]
package_version: 4.0.0
class: logical
kind: logical
url: http://hl7.org/cda/us/ccda/StructureDefinition/AgeRangeObservation
base: http://hl7.org/cda/stds/core/StructureDefinition/Observation
version: 4.0.0
required: [statusCode, templateId, value]