PackagesCanonicalsLogsProblems
    Packages
    hl7.cda.us.ccda@4.0.0-ballot
    http://hl7.org/cda/us/ccda/StructureDefinition/PriorityPreference
description: This template represents priority preferences chosen by a patient or a care provider. Priority preferences are choices made by care providers or patients or both relative to options for care or treatment (including scheduling, care experience, and meeting of personal health goals), the sharing and disclosure of health information, and the prioritization of concerns and problems.
package_name: hl7.cda.us.ccda
derivation: constraint
name: PriorityPreference
type: http://hl7.org/cda/stds/core/StructureDefinition/Observation
elements:
  value:
    type: http://hl7.org/cda/stds/core/StructureDefinition/CD
    binding: {strength: required, valueSet: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.11.20.9.60'}
    index: 13
  classCode:
    pattern: {type: Code, value: OBS}
    index: 4
  author: {type: 'http://hl7.org/cda/stds/core/StructureDefinition/Author', index: 14}
  id: {index: 6}
  code:
    index: 7
    elements:
      code:
        pattern: {type: Code, value: '225773000'}
        index: 8
      codeSystem:
        pattern: {type: String, value: 2.16.840.1.113883.6.96}
        index: 9
    required: [codeSystem, code]
  moodCode:
    pattern: {type: Code, value: EVN}
    index: 5
  effectiveTime: {index: 12}
  templateId:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: root, type: value}
      min: 1
      slices:
        priority-pref:
          match: {root: 2.16.840.1.113883.10.20.22.4.143}
          schema:
            _required: true
            index: 1
            elements:
              root:
                pattern: {type: String, value: 2.16.840.1.113883.10.20.22.4.143}
                index: 2
              extension: {index: 3}
            required: [root]
            extensions: {}
  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/PriorityPreference', 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/PriorityPreference
base: http://hl7.org/cda/stds/core/StructureDefinition/Observation
version: 4.0.0-ballot
required: [id, value, templateId]