description: Recommendation to document the use of a specific medication as part of the delivery of a computable clinical practice guideline package_name: hl7.fhir.uv.cpg derivation: constraint name: CPGDocumentMedicationTask type: Task elements: code: type: CodeableConcept mustSupport: true pattern: type: CodeableConcept value: coding: - {code: document-medication, system: 'http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type'} index: 0 input: mustSupport: true array: true index: 1 slicing: rules: open discriminator: - {path: type, type: value} min: 0 slices: medicationRequest: match: type: coding: - {code: order-medication, system: 'http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type'} schema: short: Medication to dispense mustSupport: true _required: true index: 2 elements: type: type: CodeableConcept mustSupport: true pattern: type: CodeableConcept value: coding: - {code: order-medication, system: 'http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type'} index: 3 value: mustSupport: true choices: [valueReference] index: 5 valueReference: type: Reference mustSupport: true choiceOf: value refers: ['http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-medicationrequest'] index: 6 output: mustSupport: true array: true index: 7 slicing: rules: open discriminator: - {path: type, type: value} min: 0 slices: medicationStatement: match: type: coding: - {code: document-medication, system: 'http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type'} schema: short: Medication that was documented mustSupport: true index: 8 elements: type: type: CodeableConcept mustSupport: true pattern: type: CodeableConcept value: coding: - {code: document-medication, system: 'http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type'} index: 9 value: mustSupport: true choices: [valueReference] index: 11 valueReference: type: Reference mustSupport: true choiceOf: value refers: ['http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-medicationstatement'] index: 12 package_version: 1.0.0 class: profile kind: resource url: http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-documentmedicationtask base: http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-task version: 1.0.0