PackagesCanonicalsLogsProblems
    Packages
    hl7.cda.us.ccda@4.0.0
    http://hl7.org/cda/us/ccda/StructureDefinition/CareExperiencePreference
description: This Care Experience Preference template represents a person's care preferences for their care and treatment. Examples include, but are not limited to religious preferences, dislikes and fears, preferred place for birth, preferred pharmacy, and thoughts and feelings to be shared. This templates does not represent actual order, but holds observations about wishes. These observations may inform the placement of future orders. While observation.code is encoded to support system queries, the answers represented at observation.value are likely to be text. Precondition.Criterion is recommended to represent the situations when a person would prefer the stated care experiences, such as during childbirth or interventional procedures.\nThis template may be used directly in any section, such as Care Plan Document Sections, Social History, or Advance Directives, and may be used inside any entry such as Procedure or Medication Activity.
package_name: hl7.cda.us.ccda
derivation: constraint
name: CareExperiencePreference
type: http://hl7.org/cda/stds/core/StructureDefinition/Observation
elements:
  sdtcPrecondition2:
    constraint:
      should-criterion: {human: SHOULD contain criterion, source: 'http://hl7.org/cda/us/ccda/StructureDefinition/CareExperiencePreference', severity: warning, expression: criterion.exists()}
    index: 16
    elements:
      criterion: {index: 17}
  value:
    short: Most of the time, the value will be a string representing the person's words.
    choices: [valueED, valueCD]
    index: 13
  classCode:
    pattern: {type: code, value: OBS}
    type: code
    index: 4
  valueED: {type: 'http://hl7.org/cda/stds/core/StructureDefinition/ED', short: 'Most of the time, the value will be a string representing the person''s words.', choiceOf: value, index: 14}
  id: {index: 6}
  code:
    short: Care experience preference
    index: 7
    elements:
      code:
        pattern: {type: code, value: 95541-9}
        type: code
        index: 8
      codeSystem:
        short: LOINC
        pattern: {type: string, value: 2.16.840.1.113883.6.1}
        type: string
        index: 9
    required: [code, codeSystem]
  moodCode:
    pattern: {type: code, value: INT}
    type: code
    index: 5
  valueCD: {type: 'http://hl7.org/cda/stds/core/StructureDefinition/CD', short: 'Most of the time, the value will be a string representing the person''s words.', choiceOf: value, index: 15}
  templateId:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: root, type: value}
      - {path: extension, type: value}
      min: 1
      slices:
        care-experience-pref:
          match: {root: 2.16.840.1.113883.10.20.22.4.509, extension: '2024-05-01'}
          schema:
            _required: true
            index: 1
            elements:
              root:
                pattern: {type: string, value: 2.16.840.1.113883.10.20.22.4.509}
                type: string
                index: 2
              extension:
                pattern: {type: string, value: '2024-05-01'}
                type: string
                index: 3
            required: [extension, 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/CareExperiencePreference', severity: error, expression: value.exists() implies value.startsWith('#')}
        index: 11
package_version: 4.0.0
class: logical
kind: logical
url: http://hl7.org/cda/us/ccda/StructureDefinition/CareExperiencePreference
base: http://hl7.org/cda/stds/core/StructureDefinition/Observation
version: 4.0.0
required: [id, templateId, value, valueCD, valueED]