PackagesCanonicalsLogsProblems
    Packages
    hl7.cda.us.ccda@4.0.0-ballot
    http://hl7.org/cda/us/ccda/StructureDefinition/PatientReferralAct
description: This template represents the type of referral (e.g., for dental care, to a specialist, for aging problems) and represents whether the referral is for full care or shared care. It may contain a reference to another act in the document instance representing the clinical reason for the referral (e.g., problem, concern, procedure).
package_name: hl7.cda.us.ccda
derivation: constraint
name: PatientReferralAct
type: http://hl7.org/cda/stds/core/StructureDefinition/Act
elements:
  entryRelationship:
    short: The following entryRelationship represents a reference to another act in the document instance representing the clinical reason for the referral (e.g., problem, concern, procedure).
    index: 20
    slicing:
      rules: open
      discriminator:
      - {path: observation, type: profile}
      min: null
      slices:
        entryRelationship1:
          match: {}
          schema:
            short: The following entryRelationship represents whether the referral is for full or shared care.
            array: true
            index: 21
            elements:
              typeCode:
                pattern: {type: Code, value: SUBJ}
                index: 22
              observation:
                constraint:
                  should-priorityCode: {human: SHOULD contain priorityCode, source: 'http://hl7.org/cda/us/ccda/StructureDefinition/PatientReferralAct', severity: warning, expression: priorityCode.exists()}
                index: 23
                elements:
                  classCode:
                    pattern: {type: Code, value: OBS}
                    index: 24
                  moodCode:
                    pattern: {type: Code, value: RQO}
                    index: 25
                  code:
                    index: 26
                    elements:
                      code:
                        pattern: {type: Code, value: ASSERTION}
                        index: 27
                      codeSystem:
                        pattern: {type: String, value: 2.16.840.1.113883.5.4}
                        index: 28
                    required: [codeSystem, code]
                  statusCode:
                    index: 29
                    elements:
                      code:
                        pattern: {type: Code, value: completed}
                        index: 30
                    required: [code]
                  priorityCode:
                    binding: {strength: preferred, valueSet: 'http://terminology.hl7.org/ValueSet/v3-ActPriority'}
                    index: 31
                  value:
                    type: http://hl7.org/cda/stds/core/StructureDefinition/CD
                    binding: {strength: preferred, valueSet: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.11.20.9.61'}
                    index: 32
                required: [value, statusCode]
            required: [observation]
        indication:
          match: {}
          schema:
            array: true
            index: 33
            elements:
              typeCode:
                pattern: {type: Code, value: RSON}
                index: 34
              observation: {type: 'http://hl7.org/cda/stds/core/StructureDefinition/Observation', index: 35}
            required: [observation]
  priorityCode: {index: 14}
  participant:
    index: 16
    elements:
      typeCode: {index: 17}
      participantRole:
        index: 18
        elements:
          code:
            binding: {strength: preferred, valueSet: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.1066'}
            index: 19
  classCode:
    pattern: {type: Code, value: PCPR}
    index: 4
  author: {type: 'http://hl7.org/cda/stds/core/StructureDefinition/Author', index: 15}
  id: {short: 'In the case of a Consultation Note where this referral is being fulfilled by this consultation, this id would be referenced in the inFullfilmentOf/order/id of the Consultation Note.', index: 6}
  code:
    binding: {strength: required, valueSet: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.11.20.9.56'}
    index: 7
  moodCode:
    binding: {strength: required, valueSet: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.11.20.9.66'}
    index: 5
  effectiveTime: {short: The effectiveTime represents the time when the future referral is intended to take place., index: 13}
  templateId:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: root, type: value}
      min: 1
      slices:
        patient-referral-act:
          match: {root: 2.16.840.1.113883.10.20.22.4.140}
          schema:
            _required: true
            index: 1
            elements:
              root:
                pattern: {type: String, value: 2.16.840.1.113883.10.20.22.4.140}
                index: 2
              extension: {index: 3}
            required: [root]
            extensions: {}
  statusCode:
    index: 10
    elements:
      nullFlavor: {index: 11}
      code:
        binding: {strength: required, valueSet: 'http://terminology.hl7.org/ValueSet/v3-ActStatus'}
        index: 12
    required: [code]
  text:
    short: SHOULD reference the portion of section narrative text corresponding to this entry
    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/PatientReferralAct', severity: error, expression: value.exists() implies value.startsWith('#')}
        index: 9
package_version: 4.0.0-ballot
class: logical
kind: logical
url: http://hl7.org/cda/us/ccda/StructureDefinition/PatientReferralAct
base: http://hl7.org/cda/stds/core/StructureDefinition/Act
version: 4.0.0-ballot
required: [id, effectiveTime, statusCode, templateId]