documentmedication-library
type: Library
node role: treeRoot
id:
  v: documentmedication-library
language:
  v: en
text:
  status:
    v: extensions
  div:
    v: Metadata Title Document Medication Library Version 2.0.0 Identifier urn:oid:2.16.840.1.113883.4.642.40.48.28.6 Experimental true Jurisdiction World Steward (Publisher) HL7 International / Clinical Decision Support Steward Contact HL7 International / Clinical Decision Support Description Logic for an example recommendation to document a medication Type logic-library from http://terminology.hl7.org/CodeSystem/library-type Dependency Description: Code System Activity Type Resource: CPG Activity Type Code System Canonical URL: http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs Data Requirement Type: MedicationRequest Profile(s): MedicationRequest Data Requirement Type: MedicationStatement Profile(s): MedicationStatement Data Requirement Type: Task Profile(s): Task Parameters Name Use Card. Type Documentation Patient Out 0..1 Patient Medication Order Out 0..* MedicationRequest Inclusion Criteria Out 0..1 boolean Active or Completed Medication Statement Out 0..* MedicationStatement Medication Statement Not Taken Out 0..* MedicationStatement Document Proposal Out 0..* Task Document Proposal Rejected Out 0..* Task Is Recommendation Applicable Out 0..1 boolean Library Content CQL Content library DocumentMedication using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' codesystem "Activity Type": 'http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs' code "Document medication": 'document-medication' from "Activity Type" context Patient /* Recommendation to document an existing order for a medication */ /* Positive recommendation: If the medication has been ordered but has not been documented Propose documenting the medication Given a proposal, the user can: Accept the proposal Ignore the proposal Reject the proposal without reason Reject the proposal with reason Scenario 1: No event, no request, decision support should propose Scenario 2: No event, active proposal, decision support should not propose Scenario 3: No event, rejected proposal, decision supp…
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability
    l: cqf-knowledgeCapability
  value: Code
    v: shareable
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability
    l: cqf-knowledgeCapability
  value: Code
    v: computable
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability
    l: cqf-knowledgeCapability
  value: Code
    v: publishable
url:
  v: http://hl7.org/fhir/uv/cpg/Library/documentmedication-library
  l: documentmedication-library
identifier:
  system:
    v: urn:ietf:rfc:3986
    l: 3986
  value:
    v: urn:oid:2.16.840.1.113883.4.642.40.48.28.6
version:
  v: 2.0.0
name:
  v: DocumentMedicationLibrary
title:
  v: Document Medication Library
status:
  v: active
experimental:
  v: true
type:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/library-type
      l: library-type
    code:
      v: logic-library
date:
  v: 2026-04-29T15:06:55+00:00
publisher:
  v: HL7 International / Clinical Decision Support
contact:
  name:
    v: HL7 International / Clinical Decision Support
  telecom:
    system:
      v: url
    value:
      v: http://www.hl7.org/Special/committees/dss
description:
  v: Logic for an example recommendation to document a medication
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
      l: m49.htm
    code:
      v: 001
    display:
      v: World
related artifact:
  type:
    v: depends-on
  display:
    v: Code System Activity Type
  resource:
    v: http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs
    l: cpg-activity-type-cs
parameter:
  name:
    v: Patient
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: Patient
parameter:
  name:
    v: Medication Order
  use:
    v: out
  min:
    v: 0
  max:
    v: *
  type:
    v: MedicationRequest
parameter:
  name:
    v: Inclusion Criteria
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Active or Completed Medication Statement
  use:
    v: out
  min:
    v: 0
  max:
    v: *
  type:
    v: MedicationStatement
parameter:
  name:
    v: Medication Statement Not Taken
  use:
    v: out
  min:
    v: 0
  max:
    v: *
  type:
    v: MedicationStatement
parameter:
  name:
    v: Document Proposal
  use:
    v: out
  min:
    v: 0
  max:
    v: *
  type:
    v: Task
parameter:
  name:
    v: Document Proposal Rejected
  use:
    v: out
  min:
    v: 0
  max:
    v: *
  type:
    v: Task
parameter:
  name:
    v: Is Recommendation Applicable
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
data requirement:
  type:
    v: MedicationRequest
  profile:
    v: http://hl7.org/fhir/StructureDefinition/MedicationRequest
    l: MedicationRequest
data requirement:
  type:
    v: MedicationStatement
  profile:
    v: http://hl7.org/fhir/StructureDefinition/MedicationStatement
    l: MedicationStatement
data requirement:
  type:
    v: MedicationStatement
  profile:
    v: http://hl7.org/fhir/StructureDefinition/MedicationStatement
    l: MedicationStatement
data requirement:
  type:
    v: Task
  profile:
    v: http://hl7.org/fhir/StructureDefinition/Task
    l: Task
data requirement:
  type:
    v: Task

content type:
  v: text/cql

content type:
  v: application/elm+xml

content type:
  v: application/elm+json