Colorectal Cancer Screening and Management (CRCSM) Clinical Decision Support (CDS) Implementation Guide
0.1.0 - ci-build

Colorectal Cancer Screening and Management (CRCSM) Clinical Decision Support (CDS) Implementation Guide - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Library: ScreeningIncomplete

Official URL: http://cancerscreeningcds.github.io/crcsm-cds/Library/ScreeningIncomplete Version: 0.1.0
Draft as of 2025-02-28 Computable Name: ScreeningIncomplete
Id: ScreeningIncomplete
Version: 0.1.0
Url: ScreeningIncomplete
Status: draft
Type:

system: http://terminology.hl7.org/CodeSystem/library-type

code: logic-library

Date: 2025-02-28 21:24:30+0000
Publisher: MITRE
Related Artifacts:

Dependencies

  • http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1
  • http://cancerscreeningcds.github.io/crcsm-cds/Library/FHIRHelpers|4.0.1
  • http://cancerscreeningcds.github.io/crcsm-cds/Library/ScreeningIncompleteEvents|1.0.0
  • http://cancerscreeningcds.github.io/crcsm-cds/Library/DataElements|1.0.0
  • http://cancerscreeningcds.github.io/crcsm-cds/Library/ScreeningEligible|1.0.0
  • Logical Observation Identifiers, Names and Codes (LOINC)
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1032.361
Parameters:
NameTypeMinMaxIn/Out
PatientPatient01Out
IncompleteScreeningOrdersServiceRequest0*Out
IncompleteScreeningProceduresProcedure0*Out
flow-ScreeningIncompleteboolean01Out
Initial Populationboolean01Out
Denominatorboolean01Out
Denominator Exclusionboolean01Out
Numeratorboolean01Out
Data Requirements:
TypeProfileMSCode Filter
Patient http://hl7.org/fhir/StructureDefinition/Patient
ServiceRequest http://hl7.org/fhir/StructureDefinition/ServiceRequest ;; code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1032.361
ServiceRequest http://hl7.org/fhir/StructureDefinition/ServiceRequest ;;; code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1032.361 code filter:
path: status

code: active

Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code

system: http://loinc.org

code: 30525-0

display: Age

code filter:
path: value.unit

code: years

Content: text/cql
library ScreeningIncomplete version '1.0.0'

using FHIR version '4.0.1'
include FHIRHelpers  version '4.0.1' called FHIRHelpers

include ScreeningIncompleteEvents version '1.0.0' called Events
include DataElements version '1.0.0' called DataElements
include ScreeningEligible version '1.0.0'

context Patient

define "flow-ScreeningIncomplete":
  exists IncompleteScreeningOrders
    or exists IncompleteScreeningProcedures
//    or exists IncompleteScreeningPathology

define IncompleteScreeningOrders:
  Events."eve-pendingorders"  

define IncompleteScreeningProcedures:
  Events."eve-pendingprocedures"

//define IncompleteScreeningPathology:
//  Events."eve-pendingpathology" 

//------------------------------------------------------------------------------
// MEASURE
//------------------------------------------------------------------------------  

define "Initial Population":
  ScreeningEligible.IsIncludedAndNotExcluded

define "Denominator":
	"Initial Population"

define "Denominator Exclusion":
  ScreeningEligible.IsNotScreeningEligible

define "Numerator":
  "flow-ScreeningIncomplete"  
Content: application/elm+xml
Encoded data (12932 characters)
Content: application/elm+json
Encoded data (20744 characters)