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-09-25 Computable Name: DepressionScreeningandFollowUpTrigger
Metadata
Version 0.1.0
Status Draft
Jurisdiction 001 from http://unstats.un.org/unsd/methods/m49/m49.htm
Steward (Publisher) Clinical Quality Framework
Type logic-library from http://terminology.hl7.org/CodeSystem/library-type
Parameter Name: Measurement Period
Use: In
Min Cardinality: 0
Max Cardinality: 1
Type: Period
Parameter Name: Patient
Use: Out
Min Cardinality: 0
Max Cardinality: 1
Type: Patient
Parameter Name: encounter-end
Use: Out
Min Cardinality: 0
Max Cardinality: 1
Type: boolean
Parameter Name: ckr-is-encounter-reportable
Use: Out
Min Cardinality: 0
Max Cardinality: 1
Type: boolean
Data Requirement Type: Patient
Profile(s): Patient
Data Requirement Type: Encounter
Profile(s): Encounter
Data Requirement Type: Observation
Profile(s): Observation
Must Support Elements: code
Code Filter(s):
Path: code
Code(s): LOINC 73831-0: Adolescent Depression Screening Assessment
Data Requirement Type: Observation
Profile(s): Observation
Must Support Elements: code
Code Filter(s):
Path: code
Code(s): LOINC 73832-8: Adult Depression Screening Assessment
Library Content
CQL Content
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"])
ELM XML Content
Encoded data (14200 characters)
ELM JSON Content
Encoded data (26360 characters)
Generated using version 0.5.1-cibuild of the sample-content-ig Liquid templates