PackagesCanonicalsLogsProblems
    Packages
    hl7.cda.us.ccda@3.0.0-ballot
    http://hl7.org/cda/us/ccda/StructureDefinition/Instruction
description: The Instruction template can be used in several ways, such as to record patient instructions within a Medication Activity or to record fill instructions within a supply order. The template's moodCode can only be INT. If an instruction was already given, the Procedure Activity Procedure template (instead of this template) should be used to represent the already occurred instruction. The act/code defines the type of instruction. Though not defined in this template, a Vaccine Information Statement (VIS) document could be referenced through act/reference/externalDocument, and patient awareness of the instructions can be represented with the generic participant and the participant/awarenessCode.
package_name: hl7.cda.us.ccda
derivation: constraint
name: Instruction
type: http://hl7.org/cda/stds/core/StructureDefinition/Act
elements:
  templateId:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: root, type: value}
      - {path: extension, type: value}
      min: 1
      slices:
        instruction:
          match: {root: 2.16.840.1.113883.10.20.22.4.20, extension: '2014-06-09'}
          schema:
            _required: true
            index: 1
            elements:
              root:
                pattern: {type: String, value: 2.16.840.1.113883.10.20.22.4.20}
                index: 2
              extension:
                pattern: {type: String, value: '2014-06-09'}
                index: 3
            required: [root, extension]
            extensions: {}
  classCode:
    pattern: {type: Code, value: ACT}
    index: 4
  moodCode:
    pattern: {type: Code, value: INT}
    index: 5
  code:
    binding: {strength: preferred, valueSet: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.11.20.9.34'}
    index: 6
  text:
    short: SHOULD reference the portion of section narrative text corresponding to this entry
    index: 7
    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/Instruction', severity: error, expression: value.exists() implies value.startsWith('#')}
        index: 8
  statusCode:
    index: 9
    elements:
      code:
        pattern: {type: Code, value: completed}
        index: 10
    required: [code]
package_version: 3.0.0-ballot
class: logical
kind: logical
url: http://hl7.org/cda/us/ccda/StructureDefinition/Instruction
base: http://hl7.org/cda/stds/core/StructureDefinition/Act
version: 3.0.0-ballot
required: [statusCode, templateId]