PackagesCanonicalsLogsProblems
    Packages
    hl7.cda.us.ccda@4.0.0-ballot
    http://hl7.org/cda/us/ccda/StructureDefinition/PlannedCoverage
description: This template represents the insurance coverage intended to cover an act or procedure.
package_name: hl7.cda.us.ccda
derivation: constraint
name: PlannedCoverage
type: http://hl7.org/cda/stds/core/StructureDefinition/Act
elements:
  entryRelationship:
    index: 15
    slicing:
      rules: open
      discriminator:
      - {path: act, type: exists}
      min: 1
      slices:
        entryRelationship1:
          match: {}
          schema:
            _required: true
            index: 16
            elements:
              typeCode:
                pattern: {type: Code, value: COMP}
                index: 17
              act:
                index: 18
                elements:
                  classCode:
                    pattern: {type: Code, value: ACT}
                    index: 19
                  moodCode:
                    pattern: {type: Code, value: INT}
                    index: 20
                  id: {short: These act/identifiers are unique identifiers for the policy or program providing the coverage., index: 21}
                  code:
                    binding: {strength: required, valueSet: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591'}
                    index: 22
                  statusCode:
                    index: 23
                    elements:
                      code:
                        pattern: {type: Code, value: active}
                        index: 24
                    required: [code]
                required: [id, statusCode]
            required: [act]
  classCode:
    pattern: {type: Code, value: ACT}
    index: 4
  author: {type: 'http://hl7.org/cda/stds/core/StructureDefinition/Author', index: 14}
  id: {index: 6}
  code:
    short: Payment sources
    index: 7
    elements:
      code:
        pattern: {type: Code, value: 52556-8}
        index: 8
      codeSystem:
        short: LOINC
        pattern: {type: String, value: 2.16.840.1.113883.6.1}
        index: 9
    required: [codeSystem, code]
  moodCode:
    pattern: {type: Code, value: INT}
    index: 5
  templateId:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: root, type: value}
      - {path: extension, type: value}
      min: 1
      slices:
        planned-coverage:
          match: {root: 2.16.840.1.113883.10.20.22.4.129, extension: '2024-05-01'}
          schema:
            _required: true
            index: 1
            elements:
              root:
                pattern: {type: String, value: 2.16.840.1.113883.10.20.22.4.129}
                index: 2
              extension:
                pattern: {type: String, value: '2024-05-01'}
                index: 3
            required: [root, extension]
            extensions: {}
  statusCode:
    index: 12
    elements:
      code:
        pattern: {type: Code, value: active}
        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/PlannedCoverage', severity: error, expression: value.exists() implies value.startsWith('#')}
        index: 11
package_version: 4.0.0-ballot
class: logical
kind: logical
url: http://hl7.org/cda/us/ccda/StructureDefinition/PlannedCoverage
base: http://hl7.org/cda/stds/core/StructureDefinition/Act
version: 4.0.0-ballot
required: [id, statusCode, templateId, entryRelationship]