PackagesCanonicalsLogsProblems
    Packages
    hl7.cda.us.ccda@4.0.0-ballot
    http://hl7.org/cda/us/ccda/StructureDefinition/EncounterActivity
description: This clinical statement describes an interaction between a patient and clinician. Interactions may include in-person encounters, telephone conversations, and email exchanges.
package_name: hl7.cda.us.ccda
derivation: constraint
name: EncounterActivity
type: http://hl7.org/cda/stds/core/StructureDefinition/Encounter
elements:
  entryRelationship:
    index: 21
    slicing:
      rules: open
      discriminator:
      - {path: act, type: profile}
      - {path: observation, type: profile}
      min: null
      slices:
        indication:
          match: {}
          schema:
            array: true
            index: 22
            elements:
              typeCode:
                pattern: {type: Code, value: RSON}
                index: 23
              observation: {type: 'http://hl7.org/cda/stds/core/StructureDefinition/Observation', index: 24}
            required: [observation]
        diagnosis:
          match: {}
          schema:
            short: '𝗨𝗦𝗖𝗗𝗜: Diagnosis'
            array: true
            index: 25
            elements:
              act: {type: 'http://hl7.org/cda/stds/core/StructureDefinition/Act', index: 26}
            required: [act]
        observation:
          match: {}
          schema:
            short: '𝗨𝗦𝗖𝗗𝗜: Interpreter Needed Observation'
            array: true
            index: 27
            elements:
              observation: {type: 'http://hl7.org/cda/stds/core/StructureDefinition/Observation', index: 28}
            required: [observation]
  participant:
    index: 17
    slicing:
      rules: open
      discriminator:
      - {path: participantRole, type: profile}
      - {path: typeCode, type: value}
      min: null
      slices:
        location:
          match: {typeCode: LOC}
          schema:
            short: '𝗨𝗦𝗖𝗗𝗜: Location'
            array: true
            index: 18
            elements:
              typeCode:
                pattern: {type: Code, value: LOC}
                index: 19
              participantRole: {type: 'http://hl7.org/cda/stds/core/StructureDefinition/ParticipantRole', index: 20}
  classCode: {index: 4}
  id: {short: '𝗨𝗦𝗖𝗗𝗜: Identifier', index: 6}
  code:
    short: '𝗨𝗦𝗖𝗗𝗜: Type'
    binding: {strength: preferred, valueSet: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1267.23'}
    constraint:
      should-otext-ref-value: {human: SHOULD contain originalText/reference/@value, source: 'http://hl7.org/cda/us/ccda/StructureDefinition/EncounterActivity', severity: warning, expression: originalText.reference.value.exists()}
    index: 7
    elements:
      originalText:
        short: SHOULD reference the portion of narrative corresponding to this code
        index: 8
        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/EncounterActivity', severity: error, expression: value.exists() implies value.startsWith('#')}
            index: 9
  moodCode:
    pattern: {type: Code, value: EVN}
    index: 5
  effectiveTime: {short: '𝗨𝗦𝗖𝗗𝗜: Time', index: 12}
  sdtcDischargeDispositionCode:
    short: '𝗨𝗦𝗖𝗗𝗜: Disposition'
    binding: {strength: preferred, valueSet: 'http://terminology.hl7.org/ValueSet/v3-USEncounterDischargeDisposition'}
    index: 13
  templateId:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: root, type: value}
      - {path: extension, type: value}
      min: 1
      slices:
        encounter-activity:
          match: {root: 2.16.840.1.113883.10.20.22.4.49, extension: '2015-08-01'}
          schema:
            _required: true
            index: 1
            elements:
              root:
                pattern: {type: String, value: 2.16.840.1.113883.10.20.22.4.49}
                index: 2
              extension:
                pattern: {type: String, value: '2015-08-01'}
                index: 3
            required: [root, extension]
            extensions: {}
  performer:
    index: 14
    elements:
      assignedEntity:
        index: 15
        elements:
          code:
            binding: {strength: preferred, valueSet: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.1066'}
            index: 16
  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/EncounterActivity', 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/EncounterActivity
base: http://hl7.org/cda/stds/core/StructureDefinition/Encounter
version: 4.0.0-ballot
required: [id, effectiveTime, templateId, code]