PackagesCanonicalsLogsProblems
    Packages
    hl7.cda.us.ccda@3.0.0
    http://hl7.org/cda/us/ccda/StructureDefinition/DeceasedObservation
description: This template represents the observation that a patient has died. It also represents the cause of death, indicated by an entryRelationship type of CAUS. This template allows for more specific representation of data than is available with the use of dischargeDispositionCode.
package_name: hl7.cda.us.ccda
derivation: constraint
name: DeceasedObservation
type: http://hl7.org/cda/stds/core/StructureDefinition/Observation
elements:
  entryRelationship:
    index: 19
    slicing:
      rules: open
      discriminator:
      - {path: observation, type: profile}
      - {path: typeCode, type: value}
      min: null
      slices:
        problemObservation:
          match: {typeCode: CAUS}
          schema:
            index: 20
            elements:
              typeCode:
                pattern: {type: Code, value: CAUS}
                index: 21
              inversionInd:
                pattern: {type: Boolean, value: true}
                index: 22
              observation: {type: 'http://hl7.org/cda/stds/core/StructureDefinition/Observation', index: 23}
            required: [inversionInd, observation]
  value:
    type: http://hl7.org/cda/stds/core/StructureDefinition/CD
    short: Dead
    index: 16
    elements:
      code:
        pattern: {type: Code, value: '419099009'}
        index: 17
      codeSystem:
        short: SNOMED CT
        pattern: {type: String, value: 2.16.840.1.113883.6.96}
        index: 18
    required: [codeSystem, code]
  classCode:
    pattern: {type: Code, value: OBS}
    index: 4
  id: {index: 6}
  code:
    index: 7
    elements:
      code:
        pattern: {type: Code, value: ASSERTION}
        index: 8
      codeSystem:
        pattern: {type: String, value: 2.16.840.1.113883.5.4}
        index: 9
    required: [codeSystem, code]
  moodCode:
    pattern: {type: Code, value: EVN}
    index: 5
  effectiveTime:
    index: 14
    elements:
      low: {index: 15}
    required: [low]
  templateId:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: root, type: value}
      - {path: extension, type: value}
      min: 1
      slices:
        deceased-obs:
          match: {root: 2.16.840.1.113883.10.20.22.4.79, extension: '2015-08-01'}
          schema:
            _required: true
            index: 1
            elements:
              root:
                pattern: {type: String, value: 2.16.840.1.113883.10.20.22.4.79}
                index: 2
              extension:
                pattern: {type: String, value: '2015-08-01'}
                index: 3
            required: [root, extension]
            extensions: {}
  statusCode:
    index: 12
    elements:
      code:
        pattern: {type: Code, value: completed}
        index: 13
    required: [code]
  text:
    short: SHOULD reference the portion of section narrative text corresponding to this entry
    index: 10
    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/DeceasedObservation', severity: error, expression: value.exists() implies value.startsWith('#')}
        index: 11
package_version: 3.0.0
class: logical
kind: logical
url: http://hl7.org/cda/us/ccda/StructureDefinition/DeceasedObservation
base: http://hl7.org/cda/stds/core/StructureDefinition/Observation
version: 3.0.0
required: [id, effectiveTime, value, statusCode, templateId]