/*
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 DecisionToScreenEvents version '1.0.0'
using FHIR version '4.0.1'
include FHIRHelpers version '4.0.1' called FHIRHelpers
include CDSConnectCommonsforFHIRv401 version '1.0.0' called C3F
include DataElements version '1.0.0' called DataElements
//------------------------------------------------------------------------------
// CODE SYSTEMS, VALUE SETS, AND CODES
//------------------------------------------------------------------------------
codesystem "LOCAL": 'http://cancerscreeningcds.github.io/bcsm-cds/CodeSystem/screening-observation-code-system'
//------------------------------------------------------------------------------
// PARAMETERS
//------------------------------------------------------------------------------
parameter ObservationLookbackPeriod default 14 days
parameter SymptomaticLookBack default 14 days
context Patient
define "eve-AgeOver74":
AgeInYears() > 74
define "eve-LifeExp":
DataElements."de-lifeexp"
define "eve-lactating":
Lactating
define Lactating:
if DataElements.MostRecentLactatingObservation is not null
then FHIRHelpers.ToBoolean(DataElements.MostRecentLactatingObservation.value as boolean)
else false
|