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-on | FHIR model information | `http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1`
depends-on | Library Screening | ProstateCancerScreening (version 1.0.0)
depends-on | Library Summary | ProstateCancerSummary (version 1.0.0)
depends-on | Library C3F | CDSConnectCommons (version 1.0.0)
depends-on | Library PCC | PreventiveCareConcepts (version 1.0.0)
depends-on | Library FHIRHelpers | `http://hl7.org/fhir/Library/FHIRHelpers|4.0.1`
depends-on | Library PCS | ProstateCancerScreening (version 1.0.0)
depends-on | Library Data | PreventiveCareData (version 1.0.0)
depends-on | Value set Prostate Specific Antigen Test | Prostate Specific Antigen Test

## Parameters

Patient | out | 0 | 1 | Patient
Age Between 40 and 70 | out | 0 | 1 | boolean
Needs Prostate Cancer Screening | out | 0 | 1 | boolean
Needs Prostate Cancer Screening Summary | out | 0 | 1 | string
Needs Prostate Cancer Screening Detail | out | 0 | 1 | string
Needs Prostate Cancer Screening Indicator | out | 0 | 1 | string

## Data Requirements

Type: Patient (Patient)

Type: Observation (Observation)
Filter | Value
code | In 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)