PackagesCanonicalsLogsProblems
    Packages
    hl7.cda.us.ccda@4.0.0
    http://hl7.org/cda/us/ccda/StructureDefinition/DischargeDiagnosisSection
description: 'This template represents problems or diagnoses present at the time of discharge which occurred during the hospitalization. This section includes an optional entry to record patient diagnoses specific to this visit. Problems that need ongoing tracking should also be included in the Problem Section.\n\n#### Templates Used\nAlthough open templates may contain any valid CDA content, the following templates are specifically called out by this template:\n\n**Optional Entries**: [HospitalDischargeDiagnosis](StructureDefinition-HospitalDischargeDiagnosis.html)'
package_name: hl7.cda.us.ccda
derivation: constraint
name: DischargeDiagnosisSection
type: http://hl7.org/cda/stds/core/StructureDefinition/Section
elements:
  templateId:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: root, type: value}
      - {path: extension, type: value}
      min: 1
      slices:
        section:
          match: {root: 2.16.840.1.113883.10.20.22.2.24, extension: '2015-08-01'}
          schema:
            _required: true
            index: 1
            elements:
              root:
                pattern: {type: string, value: 2.16.840.1.113883.10.20.22.2.24}
                type: string
                index: 2
              extension:
                pattern: {type: string, value: '2015-08-01'}
                type: string
                index: 3
            required: [extension, root]
            extensions: {}
  code:
    short: Hospital discharge Dx Narrative
    index: 4
    elements:
      code:
        pattern: {type: code, value: 11535-2}
        type: code
        index: 5
      codeSystem:
        pattern: {type: string, value: 2.16.840.1.113883.6.1}
        type: string
        index: 6
      translation:
        index: 7
        slicing:
          rules: open
          discriminator:
          - {path: code, type: value}
          - {path: codeSystem, type: value}
          min: 1
          slices:
            translation1:
              match: {code: 78375-3, codeSystem: 2.16.840.1.113883.6.1}
              schema:
                short: Discharge Diagnosis
                _required: true
                index: 8
                elements:
                  code:
                    pattern: {type: code, value: 78375-3}
                    type: code
                    index: 9
                  codeSystem:
                    short: LOINC
                    pattern: {type: string, value: 2.16.840.1.113883.6.1}
                    type: string
                    index: 10
                required: [code, codeSystem]
    required: [code, codeSystem, translation]
  title: {index: 11}
  text: {index: 12}
  entry:
    index: 13
    slicing:
      rules: open
      discriminator:
      - {path: observation, type: profile}
      - {path: organizer, type: profile}
      min: null
      slices:
        hospitaldischargediagnosis:
          match: {}
          schema:
            index: 14
            elements:
              act: {type: 'http://hl7.org/cda/stds/core/StructureDefinition/Act', index: 15}
            required: [act]
package_version: 4.0.0
class: logical
kind: logical
url: http://hl7.org/cda/us/ccda/StructureDefinition/DischargeDiagnosisSection
base: http://hl7.org/cda/stds/core/StructureDefinition/Section
version: 4.0.0
required: [code, templateId, text, title]