Preventive Care Guidelines IG
1.0.0 - CI Build

Preventive Care Guidelines IG - Local Development build (v1.0.0). See the Directory of published versions

Library:

Related Artifacts

depends-onFHIR model informationhttp://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1
depends-onLibrary ScreeningProstateCancerScreening (version 1.0.0)
depends-onLibrary SummaryProstateCancerSummary (version 1.0.0)
depends-onLibrary C3FCDSConnectCommons (version 1.0.0)
depends-onLibrary PCCPreventiveCareConcepts (version 1.0.0)
depends-onLibrary FHIRHelpershttp://hl7.org/fhir/Library/FHIRHelpers|4.0.1
depends-onLibrary PCSProstateCancerScreening (version 1.0.0)
depends-onLibrary DataPreventiveCareData (version 1.0.0)
depends-onValue set Prostate Specific Antigen TestProstate Specific Antigen Test

Parameters

Patientout01Patient
Age Between 40 and 70out01boolean
Needs Prostate Cancer Screeningout01boolean
Needs Prostate Cancer Screening Summaryout01string
Needs Prostate Cancer Screening Detailout01string
Needs Prostate Cancer Screening Indicatorout01string

Data Requirements

Type: Patient (Patient)
Type: Observation (Observation)
FilterValue
codeIn ValueSet http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.2.215

Contents

text/cql

// # Introduction

// CDS Hooks logic for use with CQF Ruler

library PreventiveCareHooks version '1.0.0'

// # Data model #

using FHIR version '4.0.1'

// # Referenced libraries #

include ProstateCancerScreening version '1.0.0' called Screening
include ProstateCancerSummary version '1.0.0' called Summary

// # CDS logic #

context Patient

/*
 * Expressions for CDS Hook cards.
 */

// Used to trigger presentation of recommendations
define "Age Between 40 and 70":
  AgeInYears() between 40 and 70

define "Needs Prostate Cancer Screening":
  "Age Between 40 and 70" and
  (Screening."No PSA test results"
    or (Screening."Last PSA value is high" and not Screening."Has PSA within one year")
    or not Screening."Has PSA within two years"
  )

define "Needs Prostate Cancer Screening Summary":
  'Prostate Cancer Screening'

define "Needs Prostate Cancer Screening Detail":
  Summary."MI PSA Date 1" + ' ' + Summary."PSA value 1"

define "Needs Prostate Cancer Screening Indicator":
  if Screening."Last PSA value is high" then 'critical'
  else 'warning'

Content not shown - (application/elm+xml, size = 12Kb)