Chronic Disease Surveillance
0.1.0 - CI Build International flag

Chronic Disease Surveillance, published by Clinical Quality Framework. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/aphl-chronic-ig/ and changes regularly. See the Directory of published versions

Library: DepressionScreeningandFollowUpTrigger

Official URL: http://fhir.org/guides/cqf/aphl/chronic-ds/Library/DepressionScreeningandFollowUpTrigger Version: 0.1.0
Draft as of 2025-12-18 Computable Name: DepressionScreeningandFollowUpTrigger
Id: DepressionScreeningandFollowUpTrigger
Version: 0.1.0
Url: DepressionScreeningandFollowUpTrigger
Status: draft
Type:

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

code: logic-library

Date: 2025-12-18 18:12:52+0000
Publisher: Clinical Quality Framework
Jurisdiction: 001
Related Artifacts:

Dependencies

  • http://fhir.org/guides/cqf/aphl/chronic-ds/Library/FHIRHelpers|4.1.000
  • http://loinc.org
Parameters:
NameTypeMinMaxIn/Out
Measurement PeriodPeriod01In
PatientPatient01Out
encounter-endboolean01Out
ckr-is-encounter-reportableboolean01Out
Data Requirements:
TypeProfileMSCode Filter
Patient http://hl7.org/fhir/StructureDefinition/Patient
Encounter http://hl7.org/fhir/StructureDefinition/Encounter
Observation http://hl7.org/fhir/StructureDefinition/Observation ; code filter:
path: code

system: http://loinc.org

code: 73831-0

display: Adolescent Depression Screening Assessment

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

system: http://loinc.org

code: 73832-8

display: Adult Depression Screening Assessment

Content: text/cql
library DepressionScreeningandFollowUpTrigger

using FHIR version '4.0.1'

include FHIRHelpers version '4.1.000'

codesystem "LOINC": 'http://loinc.org'

code "Adolescent Depression Screening Assessment": '73831-0' from "LOINC" display 'Adolescent Depression Screening Assessment'
code "Adult Depression Screening Assessment": '73832-8' from "LOINC" display 'Adult Depression Screening Assessment'

parameter "Measurement Period" Interval<DateTime> default Interval[@2025-01-01T00:00:00.0-06:00, @2025-12-31T23:59:59.999-06:00]

context Patient

define "encounter-end":
  exists([Encounter])

//TODO: Need to get more info from APHL to verify this
define "ckr-is-encounter-reportable":
  exists([Observation: "Adolescent Depression Screening Assessment"])
    or exists([Observation: "Adult Depression Screening Assessment"])
Content: application/elm+xml
Encoded data (14200 characters)
Content: application/elm+json
Encoded data (26360 characters)