Title: |
Colorectal Cancer Screening CDS |
Id: |
ColorectalCancerScreeningCDS |
Version: |
0.1.0 |
Url: |
Colorectal Cancer Screening CDS |
Type: |
system: http://terminology.hl7.org/CodeSystem/library-type
code: logic-library
|
Date: |
2020-11-29 15:54:22-0700 |
Publisher: |
Clinical Quality Framework |
Description: |
Colorectal Cancer Screening CDS
|
Knowledge Capability: |
shareable
computable
publishable
executable
|
Knowledge Representation Level: |
structured
|
Jurisdiction: |
001 |
Topic: |
|
Approval Date: |
2021-03-12 |
Last Review Date: |
2021-03-12 |
Related Artifacts: |
Dependencies
|
Parameters: |
Name | Type | Min | Max | In/Out |
Measurement Period | Period | 0 | 1 | In |
Patient | Patient | 0 | 1 | Out |
Is Recommendation Applicable | boolean | 0 | 1 | Out |
Get Card Summary | string | 0 | 1 | Out |
Rationale | string | 0 | 1 | Out |
Get Card Detail | string | 0 | 1 | Out |
Get Card Indicator | string | 0 | 1 | Out |
|
Data Requirements: |
Type | Profile | MS | Code Filter |
Patient |
http://hl7.org/fhir/StructureDefinition/Patient |
|
|
Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;;; |
code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1011
|
Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;;; |
code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1039
|
Procedure |
http://hl7.org/fhir/StructureDefinition/Procedure |
;; |
code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1019
|
Procedure |
http://hl7.org/fhir/StructureDefinition/Procedure |
;;; |
code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1038
|
Procedure |
http://hl7.org/fhir/StructureDefinition/Procedure |
;;; |
code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1010
|
Procedure |
http://hl7.org/fhir/StructureDefinition/Procedure |
;;; |
code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1020
|
Condition |
http://hl7.org/fhir/StructureDefinition/Condition |
;;; |
code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1001
|
|
Content: text/cql |
library ColorectalCancerScreeningCDS version '0.1.0'
using FHIR version '4.0.1'
include FHIRHelpers version '4.0.1'
include FHIRCommon version '4.0.1' called FC
include ColorectalCancerElements called CCE
// QUESTION: Should this be a single timepoint, or is a period required?
//parameter AsOf DateTime default Now()
/*
NOTE: Introduced Measurement Period as the parameter here for demonstration purposes
so it will run on the current implementations.
*/
parameter "Measurement Period" Interval<DateTime>
default Interval[Now() - 1 year, Now()]
context Patient
define "Is Recommendation Applicable":
AgeInYearsAt(start of "Measurement Period") between 50 and 75
and not CCE."Has Appropriate Colorectal Cancer Screening"
and not CCE."Has Active Malignant Neoplasm"
and not exists (CCE."Total Colectomy Performed")
define "Get Card Summary":
if "Is Recommendation Applicable" then
'Recommend appropriate colorectal cancer screening'
else
'Patient has appropriate colorectal cancer screening'
define "Get Card Detail":
if "Is Recommendation Applicable" then
'Patient meets the inclusion criteria for appropriate colorectal cancer screening, but has ' + Rationale + '.'
else
'Patient has appropriate colorectal cancer screening: ' + Rationale + '.'
define "Rationale":
Coalesce({
'most recent FOBT issued on ' + ToString(date from CCE."Most Recent Fecal Occult Blood Test Result".issued),
'most recent FIT DNA issued on ' + ToString(date from CCE."Most Recent Fecal Immunochemical Test DNA Result".issued),
'most recent CT Colonography performed on ' + ToString(date from start of FC.ToInterval(CCE."Most Recent CT Colonography Performed".performed)),
'most recent Flexible Sigmoidoscopy performed on ' + ToString(date from start of FC.ToInterval(CCE."Most Recent Flexible Sigmoidoscopy Performed".performed)),
'most recent Colonoscopy performed on ' + ToString(date from start of FC.ToInterval(CCE."Most Recent Colonoscopy Performed".performed)),
'no evidence of appropriate screening'
})
define "Get Card Indicator":
if "Is Recommendation Applicable" then
'warning'
else
'info'
|
|
Content: application/elm+xml |
Encoded data (42752 characters)
|
|
Content: application/elm+json |
Encoded data (76252 characters)
|
|