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: FollowUpActions

Official URL: http://cancerscreeningcds.github.io/crcsm-cds/Library/FollowUpActions Version: 0.1.0
Draft as of 2025-02-28 Computable Name: FollowUpActions
Id: FollowUpActions
Version: 0.1.0
Url: FollowUpActions
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/DataElements|1.0.0
  • http://cancerscreeningcds.github.io/crcsm-cds/Library/CRCSMCommonFunctions|1.0.0
  • http://cancerscreeningcds.github.io/crcsm-cds/Library/CSMCommonFunctions|1.0.0
  • http://cancerscreeningcds.github.io/crcsm-cds/Library/CDSConnectCommonsforFHIRv401|1.0.0
  • Plan Definition Action Code System
  • Plan Definition Action Reason Code System
  • SNOMED CT (all versions)
  • Logical Observation Identifiers, Names and Codes (LOINC)
  • http://cancerscreeningcds.github.io/crcsm-cds/CodeSystem/colonoscopy-result-observation-code-system
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.11.1020
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.11.1145
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1032.356
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1032.359
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.118.11.1097
Parameters:
NameTypeMinMaxIn/Out
ScreeningHistoryLookbackQuantity01In
PatientPatient01Out
act-repeatScreeningResource01Out
act-FollowUpColonoscopyResource01Out
act-oncologyReferralResource01Out
act-followUpColonoscopistResource01Out
Data Requirements:
TypeProfileMSCode Filter
Patient http://hl7.org/fhir/StructureDefinition/Patient
DiagnosticReport http://hl7.org/fhir/StructureDefinition/DiagnosticReport ;;;;;; code filter:
path: code
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;;;;;;;;; code filter:
path: code
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;;;;;;;;;
Content: text/cql
library FollowUpActions version '1.0.0'

using FHIR version '4.0.1'
include FHIRHelpers  version '4.0.1' called FHIRHelpers
include DataElements version '1.0.0' called DataElements
include CRCSMCommonFunctions version '1.0.0' called CRCSMCommonFunctions

codesystem "ActCode": 'http://cancerscreeningcds.github.io/crcsm-cds/CodeSystem/plan-definition-action-code-system'
codesystem "ReasonCode": 'http://cancerscreeningcds.github.io/crcsm-cds/CodeSystem/plan-definition-action-reason-code-system'
codesystem "SNOMED-CT": 'http://snomed.info/sct'
codesystem "LOINC": 'http://loinc.org'
codesystem "ColonoscopyResultCS": 'http://cancerscreeningcds.github.io/crcsm-cds/CodeSystem/colonoscopy-result-observation-code-system'

// Act Codes
//code "Continue routine screening": 'continueroutinescreening' from "ActCode" display 'Continue routine screening'
//code "Continue routine screening if high-quality test": 'continueroutinescreeninghighqualitytest' from "ActCode" display 'Continue routine screening if high-quality test'
//code "Repeat screening": 'repeatscreening' from "ActCode" display 'Repeat screening'
code "Colorectal Cancer Screening": '268548003' from "SNOMED-CT" display 'Screening for malignant neoplasm of large intestine (procedure)'
//code "Order follow-up colonoscopy": 'orderfollowupcolonoscopy' from "ActCode" display 'Order follow-up colonoscopy'
code "Colonoscopy": '18746-8' from "LOINC" display 'Colonoscopy study'
code "Follow-up endoscopist recommendations": 'endoscopistrecs' from "ActCode" display 'Follow-up with endoscopist for recommendations'
code "Oncologic referral": 'oncreferral' from  "ActCode" display 'Oncologic referral'

// Reason Codes
code "Screening negative": 'negativescreening' from "ReasonCode" display 'Non-colonoscopy colorectal cancer screening negative'
code "Inconclusive non-colonoscopy test result": 'inconclusivescreening' from "ReasonCode" display 'Inconclusive non-colonoscopy screening'
code "Positive or abnormal noncolonoscopy test": 'positiveabnormalscreening' from "ReasonCode" display 'Positive or abnormal non-colonoscopy screening'
code "Negative or normal non-colonoscopy test with high-quality exam": 'negativehighqualityscreening' from "ReasonCode" display 'Negative or normal non-colonoscopy test with high-quality exam'
code "Colorectal cancer finding": 'crcfinding' from ColonoscopyResultCS display 'Colorectal cancer finding'
code "Missing endoscopist recommendation": 'missingrec' from ColonoscopyResultCS display 'Missing endoscopist recommendation for potentially precancerous polyp finding'

context Patient

define "act-repeatScreening":
  CRCSMCommonFunctions.SetFollowupRecommendation(
    "Colorectal Cancer Screening", 
    "Inconclusive non-colonoscopy test result", 
    CRCSMCommonFunctions.SourceDocumentationOther, 
    DataElements.MostRecentColorectalScreeningDate )   

define "act-FollowUpColonoscopy":
  CRCSMCommonFunctions.SetFollowupRecommendation(
    "Colonoscopy", 
    "Positive or abnormal noncolonoscopy test", 
    CRCSMCommonFunctions.SourceDocumentationUSPSTF, 
    DataElements.MostRecentColorectalScreeningDate )   

define "act-oncologyReferral":
  CRCSMCommonFunctions.SetFollowupRecommendation(
    "Oncologic referral", 
    "Colorectal cancer finding", 
    CRCSMCommonFunctions.SourceDocumentationOther, 
    DataElements.MostRecentColorectalScreeningDate )    

define "act-followUpColonoscopist":
  CRCSMCommonFunctions.SetFollowupRecommendation(
    "Follow-up endoscopist recommendations", 
    "Missing endoscopist recommendation", 
    CRCSMCommonFunctions.SourceDocumentationOther, 
    DataElements.MostRecentColorectalScreeningDate )    
Content: application/elm+xml
Encoded data (30292 characters)
Content: application/elm+json
Encoded data (48324 characters)