| Id: |
DetermineNextDueDate |
| Version: |
0.1.0 |
| Url: |
DetermineNextDueDate |
| 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/DetermineNextDueDateEvents|1.0.0
http://cancerscreeningcds.github.io/crcsm-cds/Library/DetermineNextDueDateActions|1.0.0
http://cancerscreeningcds.github.io/crcsm-cds/Library/DataElements|1.0.0
http://cancerscreeningcds.github.io/crcsm-cds/Library/CSMCommonFunctions|1.0.0
http://cancerscreeningcds.github.io/crcsm-cds/Library/CRCSMCommonFunctions|1.0.0
http://cancerscreeningcds.github.io/crcsm-cds/Library/CDSConnectCommonsforFHIRv401|1.0.0
- Logical Observation Identifiers, Names and Codes (LOINC)
- SNOMED CT (all versions)
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: |
| Name | Type | Min | Max | In/Out |
| ScreeningHistoryLookback | Quantity | 0 | 1 | In |
| Patient | Patient | 0 | 1 | Out |
| flow-DetermineNextDueDate | dateTime | 0 | 1 | Out |
|
| Data Requirements: |
| Type | Profile | MS | Code 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 DetermineNextDueDate version '1.0.0'
using FHIR version '4.0.1'
include FHIRHelpers version '4.0.1' called FHIRHelpers
include DetermineNextDueDateEvents version '1.0.0' called Events
include DetermineNextDueDateActions version '1.0.0' called Actions
include DataElements version '1.0.0' called DataElements
context Patient
//------------------------------------------------------------------------------
// Determine whether each action/event exists
//------------------------------------------------------------------------------
//TODO: refactor DetermineNextDueDate from a path to a function and corresponding expressions directly in the USPSTFAverageRisk logic path
define "flow-DetermineNextDueDate":
case
when Events."eve-lastTestColonoscopy" then Actions."act-ColonoscopyEvery10"
when Events."eve-lastTestFOBT" then Actions."act-FOBTEveryYear"
when Events."eve-lastTestSDNA" then Actions."act-sDNAFITEvery1to3"
when Events."eve-lastTestCTcolonography" then Actions."act-CTColonographyEvery5"
when Events."eve-lastTestFlexSig" then Actions."act-FlexSigEvery5"
else null
end
|
|
| Content: application/elm+xml |
Encoded data (14636 characters)
|
|
| Content: application/elm+json |
Encoded data (24544 characters)
|
|