Breast Cancer Screening and Management (BCSM) Clinical Decision Support (CDS) Implementation Guide
1.0.0 - ci-build

Breast Cancer Screening and Management (BCSM) Clinical Decision Support (CDS) Implementation Guide - Local Development build (v1.0.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Library: High Risk Exclusions Events

Official URL: http://cancerscreeningcds.github.io/bcsm-cds/Library/HighRiskExclusionsEvents Version: 1.0.0
Draft as of 2025-02-28 Computable Name: HighRiskExclusionsEvents
Title: High Risk Exclusions Events
Id: HighRiskExclusionsEvents
Version: 1.0.0
Url: High Risk Exclusions Events
Status: draft
Type:

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

code: logic-library

Date: 2025-02-28 23:16:14+0000
Publisher: MITRE
Related Artifacts:

Dependencies

Parameters:
NameTypeMinMaxIn/Out
encounterstring01In
ObservationLookbackPeriodQuantity01In
PatientPatient01Out
eve-geneticriskboolean01Out
eve-chestxrtboolean01Out
eve-hxbreastcaboolean01Out
eve-hxbreastcawithin5yboolean01Out
eve-atypicalbxboolean01Out
eve-nolifetimeriskboolean01Out
eve-highlifetimeriskboolean01Out
eve-acsgeneticriskboolean01Out
Data Requirements:
TypeProfileMSCode Filter
Patient http://hl7.org/fhir/StructureDefinition/Patient
Condition http://hl7.org/fhir/StructureDefinition/Condition ;;; code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1032.383
Condition http://hl7.org/fhir/StructureDefinition/Condition ;;;; code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1032.367
Condition http://hl7.org/fhir/StructureDefinition/Condition ;;;; code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1032.383 code filter:
path: clinicalStatus
Condition http://hl7.org/fhir/StructureDefinition/Condition ;;;; code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1032.367 code filter:
path: clinicalStatus code filter:
path: clinicalStatus code filter:
path: clinicalStatus
Condition http://hl7.org/fhir/StructureDefinition/Condition ;;; code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1032.392
Condition http://hl7.org/fhir/StructureDefinition/Condition ;;; code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1032.379
Condition http://hl7.org/fhir/StructureDefinition/Condition ;;; code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1032.380
Condition http://hl7.org/fhir/StructureDefinition/Condition ;;; code filter:
path: code

system: http://snomed.info/sct

code: 428850001

display: Li-Fraumeni syndrome (disorder)

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

system: http://snomed.info/sct

code: 58037000

display: Cowden syndrome (disorder)

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

system: http://snomed.info/sct

code: 234138005

display: Bannayan syndrome (disorder)

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

system: http://cancerscreeningcds.github.io/bcsm-cds/CodeSystem/screening-observation-code-system

code: hxbreastcawithin5y

display: Breast cancer within 5 years

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

system: http://loinc.org

code: 66110-8

display: Breast Pathology biopsy report

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

system: http://cancerscreeningcds.github.io/bcsm-cds/CodeSystem/plan-definition-action-code-system

code: lifetimeriskassessment

display: Lifetime risk assessment

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

system: http://cancerscreeningcds.github.io/bcsm-cds/CodeSystem/screening-observation-code-system

code: hxbreastcawithin5y

display: Breast cancer within 5 years

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

system: http://loinc.org

code: 66110-8

display: Breast Pathology biopsy report

Content: text/cql
/*  
  Author: CMS Alliance to Modernize Healthcare, operated by THE MITRE Corporation.

  (C) 2024 The MITRE Corporation. All Rights Reserved. 
  Approved for Public Release: 24-2711. 
  Distribution Unlimited.

  Unless otherwise noted, this work is available under an Apache 2.0 license. 
  It was produced by the MITRE Corporation for the Division of Cancer Prevention 
  and Control, Centers for Disease Control and Prevention in accordance with the 
  Statement of Work, contract number 75FCMC18D0047, task order number 75D30123F17931.
*/

library HighRiskExclusionsEvents 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 CSMCommonFunctions version '1.0.0' called Common
include CDSConnectCommonsforFHIRv401 version '1.0.0' called C3F

codesystem "LOCAL": 'http://cancerscreeningcds.github.io/bcsm-cds/CodeSystem/screening-observation-code-system'

parameter encounter String default null
parameter ObservationLookbackPeriod default 14 days

context Patient

define "eve-geneticrisk":
  DataElements."de-geneticrisk"

define "eve-chestxrt":
  DataElements."de-chestxrtage10to30"

define "eve-hxbreastca":
  exists DataElements."de-hxbreastca"

define "eve-hxbreastcawithin5y":
  DataElements."de-hxbreastcawithin5y"

define "eve-atypicalbx":
  DataElements."de-atypicalbx"

define "eve-nolifetimerisk":
  DataElements."MostRecentLifetimeRiskAssessment" is null or
  DataElements."MostRecentAtypicalBiopsyDate" after Common.ObservationDate(DataElements."MostRecentLifetimeRiskAssessment")

define "eve-highlifetimerisk":
  DataElements."de-highlifetimerisk"

define "eve-acsgeneticrisk":
  DataElements."de-acsgeneticrisk"       

Content: application/elm+xml
Encoded data (19528 characters)
Content: application/elm+json
Encoded data (32228 characters)