description: Definition of an activity to enroll or unenroll a patient in a strategy or pathway as part of a computable clinical practice guideline package_name: hl7.fhir.uv.cpg derivation: constraint name: CPGEnrollmentActivity type: ActivityDefinition elements: extension: index: 0 slicing: rules: open ordered: false discriminator: - {path: url, type: value} min: null slices: enrollIn: match: {url: null} schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-enrollIn', index: 1} min: 0 max: 1 modifierExtension: index: 2 slicing: rules: open ordered: false discriminator: - {path: url, type: value} min: null slices: isUnenrollment: match: {url: null} schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-isUnenrollment', index: 3} min: 0 max: 1 kind: pattern: {type: Code, value: Task} index: 4 profile: short: At least a CPG Enrollment Task pattern: {type: Canonical, value: 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-enrollmenttask'} index: 5 code: pattern: type: CodeableConcept value: coding: - {code: enrollment, system: 'http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs'} index: 6 intent: pattern: {type: Code, value: proposal} mustSupport: true index: 7 doNotPerform: {index: 8} package_version: 2.0.0 extensions: enrollIn: {url: 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-enrollIn', min: 0, max: 1, type: Extension, mustSupport: true, index: 1} class: profile kind: resource url: http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-enrollmentactivity base: http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-computableactivity version: 2.0.0 required: [profile, intent, doNotPerform]