PackagesCanonicalsLogsProblems
    Packages
    rs/hl7.cda.us.ccda@4.0.0
    http://hl7.org/cda/us/ccda/StructureDefinition/CommentActivity
description: Comments are free text data that cannot otherwise be recorded using data elements already defined by this specification. They are not to be used to record information that can be recorded elsewhere. For example, a free text description of the severity of an allergic reaction would not be recorded in a comment.
package_name: rs/hl7.cda.us.ccda
derivation: constraint
name: CommentActivity
type: http://hl7.org/cda/stds/core/StructureDefinition/Act
elements:
  templateId:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: root, type: value}
      min: 1
      slices:
        comment-activity:
          match: {root: 2.16.840.1.113883.10.20.22.4.64}
          schema:
            _required: true
            index: 1
            elements:
              root:
                pattern: {type: string, value: 2.16.840.1.113883.10.20.22.4.64}
                type: string
                index: 2
              extension: {index: 3}
            required: [root]
            extensions: {}
  classCode:
    pattern: {type: code, value: ACT}
    type: code
    index: 4
  moodCode:
    pattern: {type: code, value: EVN}
    type: code
    index: 5
  code:
    index: 6
    elements:
      code:
        pattern: {type: code, value: 48767-8}
        type: code
        index: 7
      codeSystem:
        pattern: {type: string, value: 2.16.840.1.113883.6.1}
        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/CommentActivity', severity: error, expression: value.exists() implies value.startsWith('#')}
        index: 10
        elements:
          value: {index: 11}
        required: [value]
    required: [reference]
  author: {type: 'http://hl7.org/cda/stds/core/StructureDefinition/Author', index: 12}
package_version: 4.0.0
class: logical
kind: logical
url: http://hl7.org/cda/us/ccda/StructureDefinition/CommentActivity
base: http://hl7.org/cda/stds/core/StructureDefinition/Act
version: 4.0.0
required: [templateId, text]