PackagesCanonicalsLogsProblems
    Packages
    hl7.cda.us.ccda@4.0.0-ballot
    http://hl7.org/cda/us/ccda/StructureDefinition/PastMedicalHistory
description: This section contains a record of the patient's past complaints, problems, and diagnoses. It contains data from the patient's past up to the patient's current complaint or reason for seeking medical care.
package_name: hl7.cda.us.ccda
derivation: constraint
name: PastMedicalHistory
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.20, extension: '2015-08-01'}
          schema:
            _required: true
            index: 1
            elements:
              root:
                pattern: {type: String, value: 2.16.840.1.113883.10.20.22.2.20}
                index: 2
              extension:
                pattern: {type: String, value: '2015-08-01'}
                index: 3
            required: [root, extension]
            extensions: {}
  code:
    short: History of Past illness Narrative
    index: 4
    elements:
      code:
        pattern: {type: Code, value: 11348-0}
        index: 5
      codeSystem:
        pattern: {type: String, value: 2.16.840.1.113883.6.1}
        index: 6
    required: [codeSystem, code]
  title: {index: 7}
  text: {index: 8}
  entry:
    index: 9
    slicing:
      rules: open
      discriminator:
      - {path: observation, type: profile}
      min: null
      slices:
        problem:
          match: {}
          schema:
            array: true
            index: 10
            elements:
              observation:
                type: http://hl7.org/cda/stds/core/StructureDefinition/Observation
                short: Should contain an effectiveTime/high or and/or a Problem Status with value 73425007 (Inactive), 413322009 (Problem resolved), or 277022003 (Remission phase).
                index: 11
                elements:
                  effectiveTime:
                    constraint:
                      should-high: {human: SHOULD contain high, source: 'http://hl7.org/cda/us/ccda/StructureDefinition/PastMedicalHistory', severity: warning, expression: high.exists()}
                    index: 12
            required: [observation]
package_version: 4.0.0-ballot
class: logical
kind: logical
url: http://hl7.org/cda/us/ccda/StructureDefinition/PastMedicalHistory
base: http://hl7.org/cda/stds/core/StructureDefinition/Section
version: 4.0.0-ballot
required: [text, title, templateId, code]