| 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: |
| Name | Type | Min | Max | In/Out |
| Measurement Period | Period | 0 | 1 | In |
| Patient | Patient | 0 | 1 | Out |
| encounter-end | boolean | 0 | 1 | Out |
| ckr-is-encounter-reportable | boolean | 0 | 1 | Out |
|
| Data Requirements: |
| Type | Profile | MS | Code 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)
|
|