CMS Draft FHIR Measures
2024.1.0 - CI Build

CMS Draft FHIR Measures, published by cqframework. This guide is not an authorized publication; it is the continuous build for version 2024.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/dqm-content-cms-2024/ and changes regularly. See the Directory of published versions

: Preventive Care and Screening: Screening for Depression and Follow-Up PlanFHIR - TTL Representation

Draft as of 2026-03-13

Raw ttl | Download

@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <https://loinc.org/rdf/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:Measure ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "PCSDepressionScreenAndFollowUpFHIR"] ; # 
  fhir:meta [
    ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm>     ] [
fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/publishable-measure-cqfm"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/publishable-measure-cqfm>     ] [
fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/executable-measure-cqfm"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/executable-measure-cqfm>     ] )
  ] ; # 
  fhir:text [
fhir:status [ fhir:v "extensions" ] ;
fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n  <table class=\"narrative-table\">\n    <tbody>\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Metadata</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Title</th>\n\n\n\n<td class=\"content-container\">Preventive Care and Screening: Screening for Depression and Follow-Up PlanFHIR</td>\n\n\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Version</th>\n\n\n\n<td class=\"content-container\">0.2.000</td>\n\n\n</tr>\n\n\n  \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Short Name</th>\n\n\n\n<td class=\"content-container\">CMS2FHIR</td>\n\n\n</tr>\n\n\n\n  \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">GUID (Version Independent)</th>\n\n\n\n<td class=\"content-container\">urn:uuid:deb30835-dbec-4f11-aab0-3a282040e37c</td>\n\n\n</tr>\n\n\n\n  \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">GUID (Version Specific)</th>\n\n\n\n<td class=\"content-container\">urn:uuid:7cb8ac66-85c4-489b-aa4a-af861d69c9a5</td>\n\n\n</tr>\n\n\n\n  \n    \n    \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">CMS Identifier</th>\n\n\n\n<td class=\"content-container\">2FHIR</td>\n\n\n</tr>\n\n  \n\n\n\n\n  \n    \n    \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Effective Period</th>\n\n\n\n<td class=\"content-container\">2025-01-01 through 2025-12-31</td>\n\n\n</tr>\n\n  \n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Status</th>\n\n\n\n<td class=\"content-container\">Draft</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Steward (Publisher)</th>\n\n\n\n<td class=\"content-container\">Centers for Medicare &amp;amp; Medicaid Services (CMS)</td>\n\n\n</tr>\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Developer</th>\n\n\n\n<td class=\"content-container\">Mathematica</td>\n\n\n</tr>\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\"><div><p>Percentage of patients aged 12 years and older screened for depression on the date of the encounter or up to 14 days prior to the date of the encounter using an age-appropriate standardized depression screening tool AND if positive a follow-up plan is documented on the date of or up to two days after the date of the qualifying encounter.</p>\n</div></td>\n\n\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Copyright</th>\n\n\n\n<td class=\"content-container\"><div><p>Limited proprietary coding is contained in the measure specifications for convenience. Users of the proprietary code sets should obtain all necessary licenses from the owners of these code sets.   CPT(R) contained in the Measure specifications is copyright 2004-2023 American Medical Association. LOINC(R) is copyright 2004-2023 Regenstrief Institute, Inc. This material contains SNOMED Clinical Terms(R) (SNOMED CT[R]) copyright 2004-2023 International Health Terminology Standards Development Organization. ICD-10 is copyright 2023 World Health Organization. All Rights Reserved.</p>\n</div></td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Disclaimer</th>\n\n\n\n<td class=\"content-container\"><div><p>These performance measures are not clinical guidelines and do not establish a standard of medical care, and have not been tested for all potential applications.  THE MEASURES AND SPECIFICATIONS ARE PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND.  Due to technical limitations, registered trademarks are indicated by (R) or [R] and unregistered trademarks are indicated by (TM) or [TM].</p>\n</div></td>\n\n\n</tr>\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Measure Scoring</th>\n\n\n\n<td class=\"content-container\">Proportion\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Rationale</th>\n\n\n\n<td class=\"content-container\"><div><p>Depression affects more than two hundred sixty million people across the world and is a leading cause of disability, with a variety of depressive disorders that are independent risk factors for chronic diseases, such as cardiovascular disease and diabetes, lending screening for depression as paramount to identify depressive disorders that can affect the most vulnerable populations (Costantini et al., 2021). Results from a 2018 U.S. survey indicated that 14.4 percent of adolescents (3.5 million adolescents) had a major depressive episode (MDE) in the past year, with nine percent of adolescents (2.4 million adolescents) having one MDE with severe impairment (Substance Abuse and Mental Health Services Administration, 2019). The odds of a diagnosis of depression are believed to be 2.6 times greater for children and adolescents exposed to trauma as compared to those unexposed or less exposed (Vibhakar et al., 2019). Children and teens with major depressive disorder (MDD) have been found to have difficulty carrying out their daily activities, relating to others, growing up healthy, and are at an increased risk of suicide (Siu on behalf of the U.S. Preventive Services Task Force [USPSTF], 2016).   The same 2018 study indicated that 7.2 percent of adults aged 18 or older (17.7 million adults) had at least one MDE with 4.7 percent of adults (11.5 million adults) having one MDE with severe impairment in the past year (Substance Abuse and Mental Health Services Administration, 2019). Moreover, it is estimated 22.9 percent of adult patients with chronic pain (2.2 million adults) were diagnosed with comorbid depression from 2011 to 2015, with an upward trend of prevalence among Black Americans, patients aged 65 to 84 years old, Medicare and Medicaid insured patients, and patients from zip code areas with low annual household incomes (Orhurhu et al., 2019).   Depression and other mood disorders, such as bipolar disorder and anxiety disorders, especially during the perinatal period, can have devastating effects on women, infants, and families (American College of Obstetricians and Gynecologists, 2018). It's estimated that the global prevalence of antenatal (or perinatal) depression ranges from 15 to 65 percent, with current or previous exposure to abuse and violence, lack of social support, and family history of mental disorders being risk factors. Depressive symptoms measured during pregnancy have been shown to influence the quality of the postpartum mother-infant relationship (Hazell Raine et al., 2020). Additionally, the risk of low birth weight and preterm birth is higher among infants born from depressed mothers (Dadi, Miller, Bisetegn, and Mwanri, 2020).  Negative outcomes associated with depression make it crucial to screen in order to identify and treat depression in its early stages. Multiple social costs of depression have been identified, such as reduced educational achievements, poor financial success and role performance, higher amount of days out of role, and increased risk of job loss (Costantini et al., 2021). Depression also imposes significant economic burden through direct and indirect costs, supporting the need for regular depression screening. \"In the United States, an estimated $22.8 billion was spent on depression treatment in 2009, and lost productivity cost an additional estimated $23 billion in 2011\" (Siu and USPSTF, 2016, p. 383-384).   Numerous studies have found significant disparities in depression prevalence and treatment among racial/ethnic minorities. One study revealed that Indigenous adults are at a high risk for posttraumatic stress disorder, depression, suicide, substance use disorder, and concurrent behavioral health disorders secondary to these initial health problems (Ka’apu and Burnette, 2019). Additionally, though rates of depression are lower among Blacks and Hispanics than among whites, depression among Blacks and Hispanics is likely to be more recurrent. Furthermore, 48 percent of whites receive mental health services, compared to just 31 percent of Blacks and Hispanics, and 22 percent of Asians (American Psychiatric Association, 2017). Asian Americans and Black Americans are also significantly more likely to utilize emergency rooms for depression treatment, which contributes to inconsistent follow-up care (Lee et al., 2014).   While primary care providers (PCPs) serve as the first line of defense in the detection of depression, studies show that PCPs fail to recognize up to 46 percent of depressed patients (Borner et al., 2010). \"In nationally representative U.S. surveys, about eight percent of adolescents reported having major depression in the past year. Only 36 percent to 44 percent of children and adolescents with depression receive treatment, suggesting that a majority of depressed youth are undiagnosed and untreated\" (Siu on behalf of USPSTF, 2016). Furthermore, evidence supports that screening for depression in pregnant and postpartum women is of moderate net benefit, and treatment options for positive depression screening should be available for patients twelve and older including pregnant and postpartum women.   This measure seeks to align with USPSTF clinical guideline recommendations as well as the Healthy People 2030 recommendation to increase the proportion of adolescents and adults who are screened for depression and if positive, receive appropriate treatment (U.S. Preventive Services Task Force, 2016).  For patients depression, rescreening has been shown to be an effective tool for measuring response to therapy, therefore influencing appropriate care adjustments in the treatment of depression (Anderson et al., 2002). Chen et al. noted that when patients were re-administered a screening tool after at least eight weeks after starting treatment, their \"score gave primary care physicians a clear idea about the nature of patients' depressive symptoms and gave both the patient and the physician an indication of treatment progress\" (Chen et al., 2006).</p>\n</div></td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Clinical Recommendation Statement</th>\n\n\n\n<td class=\"content-container\"><div><p>Adolescent Recommendation (12-18 years): \"The USPSTF recommends screening for MDD in adolescents aged 12 to 18 years. Screening should be implemented with adequate systems in place to ensure accurate diagnosis, effective treatment, and appropriate follow-up (B recommendation)\" (Siu on behalf of USPSTF, 2016).  Adult Recommendation (18 years and older): \"The USPSTF recommends screening for depression in the general adult population, including pregnant and postpartum women. Screening should be implemented with adequate systems in place to ensure accurate diagnosis, effective treatment, and appropriate follow-up (B recommendation)\" (Siu and USPSTF, 2016).  “The USPSTF recommends that clinicians provide or refer pregnant and postpartum persons who are at increased risk of perinatal depression to counseling interventions (B recommendation)” (U.S. Preventive Services Task Force, 2019).   The American College of Obstetricians and Gynecologists (ACOG) provides the following recommendation: \"All obstetrician–gynecologists and other obstetric care providers should complete a full assessment of mood and emotional well-being (including screening for postpartum depression and anxiety with a validated instrument) during the comprehensive postpartum visit for each patient\" (American College of Obstetricians and Gynecologists, 2018).   The Institute for Clinical Systems Improvement (ICSI) health care guideline, Adult Depression in Primary Care, provides the following recommendations: 1. \"Clinicians should routinely screen all adults for depression using a standardized instrument.\" 2. \"Clinicians should establish and maintain follow-up with patients.\" 3. \"Clinicians should screen and monitor depression in pregnant and post-partum women\" (Trangle et al., 2016).</p>\n</div></td>\n\n\n</tr>\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Guidance (Usage)</th>\n\n\n\n<td class=\"content-container\">The intent of the measure is to screen all patients for depression except those with a diagnosis of bipolar disorder. Patients who have ever been diagnosed with bipolar disorder prior to the qualifying encounter will be excluded from the measure regardless of whether the diagnosis is active or not.  A depression screen is completed on the date of the encounter or up to 14 calendar days prior to the date of the encounter using an age-appropriate standardized depression screening tool AND if positive, a follow-up plan must be documented on the date of or up to two calendar days after the date of the encounter, such as referral to a provider for additional evaluation, pharmacological interventions, or other interventions for the treatment of depression. An example to illustrate the follow-up plan documentation timing: if the encounter is on a Monday from 3-4 pm (day 0) and the patient screens positive, the clinician has through anytime on Wednesday (day 2) to complete follow-up plan documentation.  This measure does not require documentation of a specific score, just whether results of the normalized and validated depression screening tool used are considered positive or negative. Each standardized screening tool provides guidance on whether a particular score is considered positive for depression.    This eCQM is a patient-based measure. Depression screening is required once per measurement period, not at all encounters.  Screening Tools:  -  An age-appropriate, standardized, and validated depression screening tool must be used for numerator compliance.  -  The name of the age-appropriate standardized depression screening tool utilized must be documented in the medical record.  -  The depression screening must be reviewed and addressed by the provider, filing the code, on the date of the encounter. Positive pre-screening results indicating a patient is at high risk for self-harm should receive more urgent intervention as determined by the provider practice.  -  The screening should occur during a qualifying encounter or up to 14 calendar days prior to the date of the qualifying encounter.  -  The measure assesses the most recent depression screening completed either during the qualifying encounter or within the 14 calendar days prior to that encounter. Therefore, a clinician would not be able to complete another screening at the time of the encounter to count towards a follow-up, because that would serve as the most recent screening. In order to satisfy the follow-up requirement for a patient screening positively, the eligible clinician would need to provide one of the aforementioned follow-up actions, which does not include use of a standardized depression screening tool.  Follow-Up Plan: The follow-up plan MUST still be provided for and discussed with the patient during the qualifying encounter used to evaluate the numerator. However, documentation of the follow-up plan can occur up to two calendar days after the qualifying encounter, in accordance with the policies of an eligible clinician or provider’s practice or health system. All services should be documented during, or as soon as practicable, after the qualifying encounter in order to maintain an accurate medical record.  The follow-up plan must be related to a positive depression screening, for example: \"Patient referred for psychiatric evaluation due to positive depression screening.\"  Examples of a follow-up plan include but are not limited to:   -  Referral to a provider or program for further evaluation for depression, for example, referral to a psychiatrist, psychiatric nurse practitioner, psychologist, clinical social worker, mental health counselor, or other mental health service such as family or group therapy, support group, depression management program, or other service for treatment of depression  -  Other interventions designed to treat depression such as behavioral health evaluation, psychotherapy, pharmacological interventions, or additional treatment options  Should a patient screen positive for depression, a clinician should: -  Only order pharmacological intervention when appropriate and after sufficient diagnostic evaluation. However, for the purposes of this measure, additional screening and assessment during the qualifying encounter will not qualify as a follow-up plan. -  Opt to complete a suicide risk assessment when appropriate and based on individual patient characteristics. However, for the purposes of this measure, a suicide risk assessment or an additional screening using a standardized tool will not qualify as a follow-up plan.  This FHIR-based measure has been derived from the QDM-based measure: CMS2v14. Please refer to the HL7 QI-Core Implementation Guide (https://hl7.org/fhir/us/qicore/STU4.1.1/) for more information on QI-Core and mapping recommendations from QDM to QI-Core 4.1.1 (https://hl7.org/fhir/us/qicore/STU4.1.1/qdm-to-qicore.html).</td>\n\n\n</tr>\n\n\n\n  \n  \n  \n    \n    <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Group (Rate) (ID: 64ef8dd856d636294b157c6f)</th>\n\n\n</tr>\n  \n  \n    \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Summary</th>\n\n\n\n<td class=\"content-container\">Percentage of patients aged 12 years and older screened for depression on the date of the encounter or up to 14 days prior to the date of the encounter using an age-appropriate standardized depression screening tool AND if positive a follow-up plan is documented on the date of or up to two days after the date of the qualifying encounter.</td>\n\n\n</tr>\n\n  \n  \n  \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Basis</th>\n\n\n\n<td class=\"content-container\">boolean</td>\n\n\n</tr>\n\n\n\n  \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Scoring</th>\n\n\n\n<td class=\"content-container\">\n    Proportion\n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n  \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Improvement Notation</th>\n\n\n\n<td class=\"content-container\">\n    increase\n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Type</th>\n\n\n\n<td class=\"content-container\">\n    Process\n\n\n</td>\n\n\n</tr>\n\n\n\n  \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Rate Aggregation</th>\n\n\n\n<td class=\"content-container\">None</td>\n\n\n</tr>\n\n\n\n  \n  \n\n    \n      \n        \n  \n    \n    \n    <tr>\n      \n        \n\n<th scope=\"row\" class=\"row-header\">Initial Population</th>\n\n\n      \n      <td class=\"content-container\">\n        \n        <em>ID</em>: 34AE0037-E4E3-443E-B7A7-ACE09BF46826\n        <br/>\n        \n        \n          <em>Description</em>:\n          <p style=\"white-space: pre-line\" class=\"tab-one\">All patients aged 12 years and older at the beginning of the measurement period with at least one qualifying encounter during the measurement period</p>\n        \n        \n          \n            \n              \n              <em>Criteria</em>: <a href=\"#64ef8dd856d636294b157c6f-34AE0037-E4E3-443E-B7A7-ACE09BF46826\">Initial Population</a> \n            \n          \n          \n        \n        \n        \n      </td>\n    </tr>\n  \n\n      \n    \n\n    \n      \n        \n  \n    \n    \n    <tr>\n      \n        \n\n<th scope=\"row\" class=\"row-header\">Denominator</th>\n\n\n      \n      <td class=\"content-container\">\n        \n        <em>ID</em>: 13152749-0C35-476A-89F2-5C579BD9BE4A\n        <br/>\n        \n        \n          <em>Description</em>:\n          <p style=\"white-space: pre-line\" class=\"tab-one\">Equals Initial Population</p>\n        \n        \n          \n            \n              \n              <em>Criteria</em>: <a href=\"#64ef8dd856d636294b157c6f-13152749-0C35-476A-89F2-5C579BD9BE4A\">Denominator</a> \n            \n          \n          \n        \n        \n        \n      </td>\n    </tr>\n  \n\n      \n    \n\n    \n      \n        \n  \n    \n    \n    <tr>\n      \n        \n\n<th scope=\"row\" class=\"row-header\">Denominator Exclusion</th>\n\n\n      \n      <td class=\"content-container\">\n        \n        <em>ID</em>: 5001B9F9-5ECE-4E40-9B3C-46161FA366F9\n        <br/>\n        \n        \n          <em>Description</em>:\n          <p style=\"white-space: pre-line\" class=\"tab-one\">Patients who have ever been diagnosed with bipolar disorder at any time prior to the qualifying encounter</p>\n        \n        \n          \n            \n              \n              <em>Criteria</em>: <a href=\"#64ef8dd856d636294b157c6f-5001B9F9-5ECE-4E40-9B3C-46161FA366F9\">Denominator Exclusions</a> \n            \n          \n          \n        \n        \n        \n      </td>\n    </tr>\n  \n\n      \n    \n\n    \n      \n        \n  \n    \n    \n    <tr>\n      \n        \n\n<th scope=\"row\" class=\"row-header\">Denominator Exception</th>\n\n\n      \n      <td class=\"content-container\">\n        \n        <em>ID</em>: 0411DA66-4881-4FC9-B4CE-73973320F1DC\n        <br/>\n        \n        \n          <em>Description</em>:\n          <p style=\"white-space: pre-line\" class=\"tab-one\">Patient Reason(s) Patient refuses to participate in or complete the depression screening OR Medical Reason(s)  Documentation of medical reason for not screening patient for depression (e.g., cognitive, functional, or motivational limitations that may impact accuracy of results; patient is in an urgent or emergent situation where time is of the essence and to delay treatment would jeopardize the patient's health status)</p>\n        \n        \n          \n            \n              \n              <em>Criteria</em>: <a href=\"#64ef8dd856d636294b157c6f-0411DA66-4881-4FC9-B4CE-73973320F1DC\">Denominator Exceptions</a> \n            \n          \n          \n        \n        \n        \n      </td>\n    </tr>\n  \n\n      \n    \n\n    \n      \n        \n  \n    \n    \n    <tr>\n      \n        \n\n<th scope=\"row\" class=\"row-header\">Numerator</th>\n\n\n      \n      <td class=\"content-container\">\n        \n        <em>ID</em>: BFE91CA3-DC28-49B0-AD42-97D6808E7689\n        <br/>\n        \n        \n          <em>Description</em>:\n          <p style=\"white-space: pre-line\" class=\"tab-one\">Patients screened for depression on the date of the encounter or up to 14 days prior to the date of the encounter using an age-appropriate standardized tool AND if positive, a follow-up plan is documented on the date of or up to two days after the date of the qualifying encounter</p>\n        \n        \n          \n            \n              \n              <em>Criteria</em>: <a href=\"#64ef8dd856d636294b157c6f-BFE91CA3-DC28-49B0-AD42-97D6808E7689\">Numerator</a> \n            \n          \n          \n        \n        \n        \n      </td>\n    </tr>\n  \n\n      \n    \n\n    \n      \n    \n\n  \n\n\n  \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n  <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Supplemental Data Elements</th>\n\n\n</tr>\n\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n  <td class=\"content-container\">\n    \n      <em>ID</em>: sde-ethnicity\n      \n      <br/>\n      \n    \n    \n      \n        \n          <em>Usage Code</em>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}\">Supplemental Data</span>\n        \n        <br/>\n      \n    \n    \n      <em>Description</em>: SDE Ethnicity\n    \n    \n      \n        <br/>\n        \n          \n          <em>Logic Definition</em>: <a href=\"#pcsdepressionscreenandfollowupfhir-sde-ethnicity\">SDE Ethnicity</a> \n        \n      \n    \n  </td>\n</tr>\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n  <td class=\"content-container\">\n    \n      <em>ID</em>: sde-payer\n      \n      <br/>\n      \n    \n    \n      \n        \n          <em>Usage Code</em>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}\">Supplemental Data</span>\n        \n        <br/>\n      \n    \n    \n      <em>Description</em>: SDE Payer\n    \n    \n      \n        <br/>\n        \n          \n          <em>Logic Definition</em>: <a href=\"#pcsdepressionscreenandfollowupfhir-sde-payer\">SDE Payer</a> \n        \n      \n    \n  </td>\n</tr>\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n  <td class=\"content-container\">\n    \n      <em>ID</em>: sde-race\n      \n      <br/>\n      \n    \n    \n      \n        \n          <em>Usage Code</em>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}\">Supplemental Data</span>\n        \n        <br/>\n      \n    \n    \n      <em>Description</em>: SDE Race\n    \n    \n      \n        <br/>\n        \n          \n          <em>Logic Definition</em>: <a href=\"#pcsdepressionscreenandfollowupfhir-sde-race\">SDE Race</a> \n        \n      \n    \n  </td>\n</tr>\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n  <td class=\"content-container\">\n    \n      <em>ID</em>: sde-sex\n      \n      <br/>\n      \n    \n    \n      \n        \n          <em>Usage Code</em>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}\">Supplemental Data</span>\n        \n        <br/>\n      \n    \n    \n      <em>Description</em>: SDE Sex\n    \n    \n      \n        <br/>\n        \n          \n          <em>Logic Definition</em>: <a href=\"#pcsdepressionscreenandfollowupfhir-sde-sex\">SDE Sex</a> \n        \n      \n    \n  </td>\n</tr>\n\n\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Logic</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Primary Library</th>\n\n\n\n<td class=\"content-container\"><a href=\"Library-PCSDepressionScreenAndFollowUpFHIR.html\">PCSDepressionScreenAndFollowUpFHIR</a></td>\n\n\n</tr>\n\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Contents</th>\n  <td class=\"content-container\">\n    <em><a href=\"#population-criteria\">Population Criteria</a></em>\n    <br/>\n    <em><a href=\"#definitions\">Logic Definitions</a></em>\n    <br/>\n    <em><a href=\"#terminology\">Terminology</a></em>\n    <br/>\n    <em><a href=\"#dependencies\">Dependencies</a></em>\n    <br/>\n    <em><a href=\"#data-requirements\">Data Requirements</a></em>\n    <br/>\n    <em><a href=\"#parameters\">Parameters</a></em>\n    <br/>\n  </td>\n</tr>\n\n\n  <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"population-criteria\"> </a>Population Criteria</th>\n\n\n</tr>\n  \n  \n  \n\n  \n  \n  \n    \n    <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Group (Rate) (ID: 64ef8dd856d636294b157c6f)</th>\n\n\n</tr>\n  \n  \n  \n  \n\n    \n      \n          \n    \n      \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n            \n              \n            \n            \n            \n            <tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    \n    Initial Population\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      \n      <a name=\"64ef8dd856d636294b157c6f-34AE0037-E4E3-443E-B7A7-ACE09BF46826\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Initial Population\":\n  \"Patient Age 12 Years or Older at Start of Measurement Period\"\n    and exists ( \"Qualifying Encounter During Measurement Period\" )</code></pre>\n    \n      \n      <a href=\"#pcsdepressionscreenandfollowupfhir-initial-population\"><em>Definition</em></a>\n    \n  </td>\n\n</tr>\n\n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n      \n    \n  \n\n      \n    \n\n    \n      \n          \n    \n      \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n            \n              \n            \n            \n            \n            <tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    \n    Denominator\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      \n      <a name=\"64ef8dd856d636294b157c6f-13152749-0C35-476A-89F2-5C579BD9BE4A\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator\":\n  \"Initial Population\"</code></pre>\n    \n      \n      <a href=\"#pcsdepressionscreenandfollowupfhir-denominator\"><em>Definition</em></a>\n    \n  </td>\n\n</tr>\n\n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n      \n    \n  \n\n      \n    \n\n    \n      \n          \n    \n      \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n            \n              \n            \n            \n            \n            <tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    \n    Denominator Exclusion\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      \n      <a name=\"64ef8dd856d636294b157c6f-5001B9F9-5ECE-4E40-9B3C-46161FA366F9\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator Exclusions\":\n  exists \"History of Bipolar Diagnosis Before Qualifying Encounter\"</code></pre>\n    \n      \n      <a href=\"#pcsdepressionscreenandfollowupfhir-denominator-exclusions\"><em>Definition</em></a>\n    \n  </td>\n\n</tr>\n\n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n      \n    \n  \n\n      \n    \n\n    \n      \n          \n    \n      \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n            \n              \n            \n            \n            \n            <tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    \n    Denominator Exception\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      \n      <a name=\"64ef8dd856d636294b157c6f-0411DA66-4881-4FC9-B4CE-73973320F1DC\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator Exceptions\":\n  ( exists \"Medical or Patient Reason for Not Screening Adolescent for Depression\"\n      and not \"Has Adolescent Depression Screening\"\n  )\n    or ( exists \"Medical or Patient Reason for Not Screening Adult for Depression\"\n        and not \"Has Adult Depression Screening\"\n    )</code></pre>\n    \n      \n      <a href=\"#pcsdepressionscreenandfollowupfhir-denominator-exceptions\"><em>Definition</em></a>\n    \n  </td>\n\n</tr>\n\n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n      \n    \n  \n\n      \n    \n\n    \n      \n          \n    \n      \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n            \n              \n            \n            \n            \n            <tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    \n    Numerator\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      \n      <a name=\"64ef8dd856d636294b157c6f-BFE91CA3-DC28-49B0-AD42-97D6808E7689\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Numerator\":\n  ( \"Patient Age 12 to 16 Years at Start of Measurement Period\"\n      and ( \"Has Most Recent Adolescent Screening Negative\"\n          or exists \"Most Recent Adolescent Depression Screening Positive and Follow Up Provided\"\n      )\n  )\n    or ( \"Patient Age 17 Years at Start of Measurement Period\"\n        and ( \"Has Most Recent Adolescent Screening Negative\"\n            or exists \"Most Recent Adolescent Depression Screening Positive and Follow Up Provided\"\n            or \"Has Most Recent Adult Screening Negative\"\n            or exists \"Most Recent Adult Depression Screening Positive and Follow Up Provided\"\n        )\n    )\n    or ( \"Patient Age 18 Years or Older at Start of Measurement Period\"\n        and ( \"Has Most Recent Adult Screening Negative\"\n            or exists \"Most Recent Adult Depression Screening Positive and Follow Up Provided\"\n        )\n    )</code></pre>\n    \n      \n      <a href=\"#pcsdepressionscreenandfollowupfhir-numerator\"><em>Definition</em></a>\n    \n  </td>\n\n</tr>\n\n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n      \n    \n  \n\n      \n    \n\n    \n      \n    \n\n  \n\n\n  \n\n\n  \n\n  \n  \n\n\n  <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"definitions\"> </a>Logic Definitions</th>\n\n\n</tr>\n  \n  \n          \n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> SupplementalDataElements</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"supplementaldataelements-sde-sex\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Sex\":\n  case\n    when Patient.gender = 'male' then \"M\"\n    when Patient.gender = 'female' then \"F\"\n    else null\n  end</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> SupplementalDataElements</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"supplementaldataelements-sde-payer\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Payer\":\n  [Coverage: type in \"Payer Type\"] Payer\n    return {\n      code: Payer.type,\n      period: Payer.period\n    }</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> SupplementalDataElements</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"supplementaldataelements-sde-ethnicity\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Ethnicity\":\n  Patient.ethnicity E\n    return Tuple {\n      codes: { E.ombCategory } union E.detailed,\n      display: E.text\n    }</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> SupplementalDataElements</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"supplementaldataelements-sde-race\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Race\":\n  Patient.race R\n    return Tuple {\n      codes: R.ombCategory union R.detailed,\n      display: R.text\n    }</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n\n        \n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PCSDepressionScreenAndFollowUpFHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pcsdepressionscreenandfollowupfhir-sde-sex\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Sex\":\n  SDE.\"SDE Sex\"</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PCSDepressionScreenAndFollowUpFHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pcsdepressionscreenandfollowupfhir-patient-age-12-to-16-years-at-start-of-measurement-period\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Patient Age 12 to 16 Years at Start of Measurement Period\":\n  AgeInYearsAt(date from start of \"Measurement Period\") in Interval[12, 16]</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PCSDepressionScreenAndFollowUpFHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pcsdepressionscreenandfollowupfhir-qualifying-encounter-during-measurement-period\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Qualifying Encounter During Measurement Period\":\n  ( [Encounter: \"Encounter to Screen for Depression\"]\n    union [Encounter: \"Physical Therapy Evaluation\"]\n    union [Encounter: \"Telephone Visits\"] ) QualifyingEncounter\n    where QualifyingEncounter.period during day of \"Measurement Period\"\n      and QualifyingEncounter.status = 'finished'</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PCSDepressionScreenAndFollowUpFHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pcsdepressionscreenandfollowupfhir-most-recent-adolescent-depression-screening\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Most Recent Adolescent Depression Screening\":\n  Last([Observation: \"Adolescent depression screening assessment\"] AdolescentDepressionScreening\n      with \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n        such that AdolescentDepressionScreening.effective.toInterval() 14 days or less on or before day of start of QualifyingEncounter.period\n          and AdolescentDepressionScreening.value is not null\n          and AdolescentDepressionScreening.status = 'final'\n      sort by start of effective.toInterval()\n  )</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PCSDepressionScreenAndFollowUpFHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pcsdepressionscreenandfollowupfhir-has-most-recent-adolescent-screening-negative\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Has Most Recent Adolescent Screening Negative\":\n  ( \"Most Recent Adolescent Depression Screening\" AdolescentScreen\n      where AdolescentScreen.value ~ \"Depression screening negative (finding)\"\n  ) is not null</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PCSDepressionScreenAndFollowUpFHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pcsdepressionscreenandfollowupfhir-follow-up-intervention-for-positive-adolescent-depression-screening\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Follow Up Intervention for Positive Adolescent Depression Screening\":\n  ( ( [MedicationRequest: \"Adolescent Depression Medications\"] AdolescentMed\n        where AdolescentMed.status in { 'active', 'completed' }\n          and AdolescentMed.intent = 'order'\n    )\n      union ( [ServiceRequest: \"Referral for Adolescent Depression\"] AdolescentReferral\n          where AdolescentReferral.status in { 'active', 'completed' }\n      )\n      union ( [Procedure: \"Follow Up for Adolescent Depression\"] AdolescentFollowUp\n          where AdolescentFollowUp.status = 'completed'\n      )\n  )</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PCSDepressionScreenAndFollowUpFHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pcsdepressionscreenandfollowupfhir-most-recent-adolescent-depression-screening-positive-and-follow-up-provided\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Most Recent Adolescent Depression Screening Positive and Follow Up Provided\":\n  from\n    \"Most Recent Adolescent Depression Screening\" LastAdolescentScreen,\n    \"Follow Up Intervention for Positive Adolescent Depression Screening\" FollowUpPositiveAdolescentScreen,\n    \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n    where LastAdolescentScreen.effective.toInterval ( ) starts 14 days or less on or before day of start of QualifyingEncounter.period\n      and LastAdolescentScreen.value ~ \"Depression screening positive (finding)\"\n      and ( start of FollowUpPositiveAdolescentScreen.performed.toInterval ( ) during QualifyingEncounter.period\n          or FollowUpPositiveAdolescentScreen.authoredOn 2 days or less on or after day of end of QualifyingEncounter.period\n      )\n      and ( Coalesce(start of FollowUpPositiveAdolescentScreen.performed.toInterval(), FollowUpPositiveAdolescentScreen.authoredOn) during day of \"Measurement Period\" )</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PCSDepressionScreenAndFollowUpFHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pcsdepressionscreenandfollowupfhir-patient-age-17-years-at-start-of-measurement-period\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Patient Age 17 Years at Start of Measurement Period\":\n  AgeInYearsAt(date from start of \"Measurement Period\") = 17</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PCSDepressionScreenAndFollowUpFHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pcsdepressionscreenandfollowupfhir-most-recent-adult-depression-screening\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Most Recent Adult Depression Screening\":\n  Last([Observation: \"Adult depression screening assessment\"] AdultDepressionScreening\n      with \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n        such that AdultDepressionScreening.effective.toInterval() 14 days or less on or before day of start of QualifyingEncounter.period\n          and AdultDepressionScreening.value is not null\n          and AdultDepressionScreening.status = 'final'\n      sort by start of effective.toInterval()\n  )</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PCSDepressionScreenAndFollowUpFHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pcsdepressionscreenandfollowupfhir-has-most-recent-adult-screening-negative\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Has Most Recent Adult Screening Negative\":\n  ( \"Most Recent Adult Depression Screening\" AdultScreen\n      where AdultScreen.value ~ \"Depression screening negative (finding)\"\n  ) is not null</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PCSDepressionScreenAndFollowUpFHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pcsdepressionscreenandfollowupfhir-follow-up-intervention-for-positive-adult-depression-screening\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Follow Up Intervention for Positive Adult Depression Screening\":\n  ( ( [MedicationRequest: \"Adult Depression Medications\"] AdultMed\n        where AdultMed.status in { 'active', 'completed' }\n          and AdultMed.intent = 'order'\n    )\n      union ( [ServiceRequest: \"Referral for Adult Depression\"] AdultReferral\n          where AdultReferral.status in { 'active', 'completed' }\n      )\n      union ( [Procedure: \"Follow Up for Adult Depression\"] AdultFollowUp\n          where AdultFollowUp.status = 'completed'\n      )\n  )</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PCSDepressionScreenAndFollowUpFHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pcsdepressionscreenandfollowupfhir-most-recent-adult-depression-screening-positive-and-follow-up-provided\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Most Recent Adult Depression Screening Positive and Follow Up Provided\":\n  from\n    \"Most Recent Adult Depression Screening\" LastAdultScreen,\n    \"Follow Up Intervention for Positive Adult Depression Screening\" FollowUpPositiveAdultScreen,\n    \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n    where LastAdultScreen.effective.toInterval ( ) starts 14 days or less on or before day of start of QualifyingEncounter.period\n      and LastAdultScreen.value ~ \"Depression screening positive (finding)\"\n      and ( start of FollowUpPositiveAdultScreen.performed.toInterval ( ) during QualifyingEncounter.period\n          or FollowUpPositiveAdultScreen.authoredOn 2 days or less on or after day of end of QualifyingEncounter.period\n      )\n      and ( Coalesce(start of FollowUpPositiveAdultScreen.performed.toInterval(), FollowUpPositiveAdultScreen.authoredOn) during day of \"Measurement Period\" )</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PCSDepressionScreenAndFollowUpFHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pcsdepressionscreenandfollowupfhir-patient-age-18-years-or-older-at-start-of-measurement-period\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Patient Age 18 Years or Older at Start of Measurement Period\":\n  AgeInYearsAt(date from start of \"Measurement Period\") &gt;= 18</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PCSDepressionScreenAndFollowUpFHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pcsdepressionscreenandfollowupfhir-numerator\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Numerator\":\n  ( \"Patient Age 12 to 16 Years at Start of Measurement Period\"\n      and ( \"Has Most Recent Adolescent Screening Negative\"\n          or exists \"Most Recent Adolescent Depression Screening Positive and Follow Up Provided\"\n      )\n  )\n    or ( \"Patient Age 17 Years at Start of Measurement Period\"\n        and ( \"Has Most Recent Adolescent Screening Negative\"\n            or exists \"Most Recent Adolescent Depression Screening Positive and Follow Up Provided\"\n            or \"Has Most Recent Adult Screening Negative\"\n            or exists \"Most Recent Adult Depression Screening Positive and Follow Up Provided\"\n        )\n    )\n    or ( \"Patient Age 18 Years or Older at Start of Measurement Period\"\n        and ( \"Has Most Recent Adult Screening Negative\"\n            or exists \"Most Recent Adult Depression Screening Positive and Follow Up Provided\"\n        )\n    )</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PCSDepressionScreenAndFollowUpFHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pcsdepressionscreenandfollowupfhir-patient-age-12-years-or-older-at-start-of-measurement-period\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Patient Age 12 Years or Older at Start of Measurement Period\":\n  AgeInYearsAt(date from start of \"Measurement Period\") &gt;= 12</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PCSDepressionScreenAndFollowUpFHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pcsdepressionscreenandfollowupfhir-initial-population\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Initial Population\":\n  \"Patient Age 12 Years or Older at Start of Measurement Period\"\n    and exists ( \"Qualifying Encounter During Measurement Period\" )</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PCSDepressionScreenAndFollowUpFHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pcsdepressionscreenandfollowupfhir-denominator\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator\":\n  \"Initial Population\"</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PCSDepressionScreenAndFollowUpFHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pcsdepressionscreenandfollowupfhir-sde-payer\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Payer\":\n  SDE.\"SDE Payer\"</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PCSDepressionScreenAndFollowUpFHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pcsdepressionscreenandfollowupfhir-sde-ethnicity\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Ethnicity\":\n  SDE.\"SDE Ethnicity\"</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PCSDepressionScreenAndFollowUpFHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pcsdepressionscreenandfollowupfhir-history-of-bipolar-diagnosis-before-qualifying-encounter\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"History of Bipolar Diagnosis Before Qualifying Encounter\":\n  [Condition: \"Bipolar Disorder\"] BipolarDiagnosis\n    with \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n      such that ( BipolarDiagnosis.isProblemListItem ( )\n          or BipolarDiagnosis.isHealthConcern ( )\n      )\n        and BipolarDiagnosis.prevalenceInterval ( ) starts before QualifyingEncounter.period</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PCSDepressionScreenAndFollowUpFHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pcsdepressionscreenandfollowupfhir-denominator-exclusions\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator Exclusions\":\n  exists \"History of Bipolar Diagnosis Before Qualifying Encounter\"</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PCSDepressionScreenAndFollowUpFHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pcsdepressionscreenandfollowupfhir-sde-race\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Race\":\n  SDE.\"SDE Race\"</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PCSDepressionScreenAndFollowUpFHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pcsdepressionscreenandfollowupfhir-medical-or-patient-reason-for-not-screening-adolescent-for-depression\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Medical or Patient Reason for Not Screening Adolescent for Depression\":\n  [ObservationNotDone: code ~ \"Adolescent depression screening assessment\"] NoAdolescentScreen\n    with \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n      such that NoAdolescentScreen.issued during QualifyingEncounter.period\n    where ( NoAdolescentScreen.notDoneReason ~ \"Depression screening declined (situation)\"\n        or NoAdolescentScreen.notDoneReason in \"Medical Reason\"\n    )\n      and NoAdolescentScreen.status = 'cancelled'</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PCSDepressionScreenAndFollowUpFHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pcsdepressionscreenandfollowupfhir-has-adolescent-depression-screening\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Has Adolescent Depression Screening\":\n  exists ( [Observation: \"Adolescent depression screening assessment\"] AdolescentScreening\n      with \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n        such that AdolescentScreening.effective.toInterval ( ) 14 days or less on or before day of start of QualifyingEncounter.period\n          and AdolescentScreening.value is not null\n          and AdolescentScreening.status = 'final'\n  )</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PCSDepressionScreenAndFollowUpFHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pcsdepressionscreenandfollowupfhir-medical-or-patient-reason-for-not-screening-adult-for-depression\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Medical or Patient Reason for Not Screening Adult for Depression\":\n  [ObservationNotDone: code ~ \"Adult depression screening assessment\"] NoAdultScreen\n    with \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n      such that NoAdultScreen.issued during QualifyingEncounter.period\n    where ( NoAdultScreen.notDoneReason ~ \"Depression screening declined (situation)\"\n        or NoAdultScreen.notDoneReason in \"Medical Reason\"\n    )\n      and NoAdultScreen.status = 'cancelled'</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PCSDepressionScreenAndFollowUpFHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pcsdepressionscreenandfollowupfhir-has-adult-depression-screening\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Has Adult Depression Screening\":\n  exists ( [Observation: \"Adult depression screening assessment\"] AdultScreening\n      with \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n        such that AdultScreening.effective.toInterval ( ) 14 days or less on or before day of start of QualifyingEncounter.period\n          and AdultScreening.value is not null\n          and AdultScreening.status = 'final'\n  )</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PCSDepressionScreenAndFollowUpFHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pcsdepressionscreenandfollowupfhir-denominator-exceptions\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator Exceptions\":\n  ( exists \"Medical or Patient Reason for Not Screening Adolescent for Depression\"\n      and not \"Has Adolescent Depression Screening\"\n  )\n    or ( exists \"Medical or Patient Reason for Not Screening Adult for Depression\"\n        and not \"Has Adult Depression Screening\"\n    )</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n\n        \n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-tointerval\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period)\nvalue to a CQL DateTime Interval\n@comment: If the start value of the given period is unspecified, the starting\nboundary of the resulting interval will be open (meaning the start of the interval\nis unknown, as opposed to interpreted as the beginning of time).\n*/\ndefine function ToInterval(period FHIR.Period):\n    if period is null then\n        null\n    else\n        if period.\"start\" is null then\n            Interval(period.\"start\".value, period.\"end\".value]\n        else\n            Interval[period.\"start\".value, period.\"end\".value]</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-tostring\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value uri): value.value</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-tocode\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code.\n*/\ndefine function ToCode(coding FHIR.Coding):\n    if coding is null then\n        null\n    else\n        System.Code {\n          code: coding.code.value,\n          system: coding.system.value,\n          version: coding.version.value,\n          display: coding.display.value\n        }</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-toconcept\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.\n*/\ndefine function ToConcept(concept FHIR.CodeableConcept):\n    if concept is null then\n        null\n    else\n        System.Concept {\n            codes: concept.coding C return ToCode(C),\n            display: concept.text.value\n        }</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n\n        \n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> QICoreCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"qicorecommon-isproblemlistitem\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Returns true if the given condition is a problem list item.\n*/\ndefine fluent function isProblemListItem(condition Condition):\n  exists (condition.category C\n    where C ~ \"problem-list-item\"\n  )</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> QICoreCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"qicorecommon-ishealthconcern\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Returns true if the given condition is a health concern\n*/\ndefine fluent function isHealthConcern(condition Condition):\n  exists (condition.category C\n    where C ~ \"health-concern\"\n  )</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> QICoreCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"qicorecommon-prevalenceinterval\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Returns an interval representing the normalized prevalence period of a given Condition.\n@comment: Uses the ToInterval and ToAbatementInterval functions to determine the widest potential interval from\nonset to abatement as specified in the given Condition. If the condition is active, or has an abatement date the resulting \ninterval will have a closed ending boundary. Otherwise, the resulting interval will have an open ending boundary.\n*/\ndefine fluent function prevalenceInterval(condition Condition):\nif condition.clinicalStatus ~ \"active\"\n  or condition.clinicalStatus ~ \"recurrence\"\n  or condition.clinicalStatus ~ \"relapse\" then\n  Interval[start of condition.onset.toInterval(), end of condition.abatementInterval()]\nelse\n    (end of condition.abatementInterval()) abatementDate\n    return if abatementDate is null then\n      Interval[start of condition.onset.toInterval(), abatementDate)\n    else\n      Interval[start of condition.onset.toInterval(), abatementDate]</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> QICoreCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"qicorecommon-abatementinterval\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Returns an interval representing the normalized abatement of a given Condition.\n@comment: If the abatement element of the Condition is represented as a DateTime, the result\nis an interval beginning and ending on that DateTime.\nIf the abatement is represented as a Quantity, the quantity is expected to be a calendar-duration and is interpreted as the age of the patient. The\nresult is an interval from the date the patient turned that age to immediately before one year later.\nIf the abatement is represented as a Quantity Interval, the quantities are expected to be calendar-durations and are interpreted as an age range during\nwhich the abatement occurred. The result is an interval from the date the patient turned the starting age of the quantity interval, and ending immediately\nbefore one year later than the date the patient turned the ending age of the quantity interval.\n*/\ndefine fluent function abatementInterval(condition Condition):\n	if condition.abatement is DateTime then\n	  Interval[condition.abatement as DateTime, condition.abatement as DateTime]\n	else if condition.abatement is Quantity then\n		Interval[Patient.birthDate + (condition.abatement as Quantity),\n			Patient.birthDate + (condition.abatement as Quantity) + 1 year)\n	else if condition.abatement is Interval&lt;Quantity&gt; then\n	  Interval[Patient.birthDate + (condition.abatement.low as Quantity),\n		  Patient.birthDate + (condition.abatement.high as Quantity) + 1 year)\n	else if condition.abatement is Interval&lt;DateTime&gt; then\n	  Interval[condition.abatement.low, condition.abatement.high)\n	else null as Interval&lt;DateTime&gt;</code></pre>\n  </td>\n\n</tr>\n\n\n\n\n\n  \n  \n\n\n  <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"terminology\"> </a>Terminology</th>\n\n\n</tr>\n  \n  \n  \n\n \n\n \n\n \n\n \n\n\n<tr>\n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Code System</th>\n\n\n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Code system AdministrativeGender\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"http://hl7.org/fhir/R4/codesystem-administrative-gender.html\">AdministrativeGender</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/administrative-gender</tt>\n    \n  </td>\n</tr>\n \n\n\n<tr>\n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Code System</th>\n\n\n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Code system LOINC\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"http://terminology.hl7.org/5.5.0/CodeSystem-v3-loinc.html\">Logical Observation Identifiers, Names and Codes (LOINC)</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://loinc.org</tt>\n    \n  </td>\n</tr>\n \n\n\n<tr>\n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Code System</th>\n\n\n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Code system SNOMEDCT\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"http://hl7.org/fhir/R4/codesystem-snomedct.html\">SNOMED CT (all versions)</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://snomed.info/sct</tt>\n    \n  </td>\n</tr>\n \n\n\n<tr>\n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Code System</th>\n\n\n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Code system ConditionCategory\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"http://terminology.hl7.org/5.5.0/CodeSystem-condition-category.html\">Condition Category Codes</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-category</tt>\n    \n  </td>\n</tr>\n \n\n\n<tr>\n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Code System</th>\n\n\n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Code system USCoreConditionCategoryExtensionCodes\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"http://hl7.org/fhir/us/core/STU3.1.1/CodeSystem-condition-category.html\">US Core Condition Category Extension Codes</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/us/core/CodeSystem/condition-category</tt>\n    \n  </td>\n</tr>\n \n\n\n<tr>\n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Code System</th>\n\n\n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Code system ConditionClinicalStatusCodes\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"http://terminology.hl7.org/5.5.0/CodeSystem-condition-clinical.html\">Condition Clinical Status Codes</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-clinical</tt>\n    \n  </td>\n</tr>\n \n\n\n<tr>\n  \n  \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Value set Encounter to Screen for Depression\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.600.1916/expansion\">Encounter to Screen for Depression</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1916</tt>\n    \n  </td>\n</tr>\n \n\n\n<tr>\n  \n  \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Value set Physical Therapy Evaluation\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1022/expansion\">Physical Therapy Evaluation</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1022</tt>\n    \n  </td>\n</tr>\n \n\n\n<tr>\n  \n  \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Value set Telephone Visits\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1080/expansion\">Telephone Visits</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080</tt>\n    \n  </td>\n</tr>\n \n\n\n<tr>\n  \n  \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Value set Adolescent Depression Medications\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1567/expansion\">Adolescent Depression Medications</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1567</tt>\n    \n  </td>\n</tr>\n \n\n\n<tr>\n  \n  \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Value set Referral for Adolescent Depression\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1570/expansion\">Referral for Adolescent Depression</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1570</tt>\n    \n  </td>\n</tr>\n \n\n\n<tr>\n  \n  \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Value set Follow Up for Adolescent Depression\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1569/expansion\">Follow Up for Adolescent Depression</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1569</tt>\n    \n  </td>\n</tr>\n \n\n\n<tr>\n  \n  \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Value set Adult Depression Medications\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1566/expansion\">Adult Depression Medications</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1566</tt>\n    \n  </td>\n</tr>\n \n\n\n<tr>\n  \n  \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Value set Referral for Adult Depression\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1571/expansion\">Referral for Adult Depression</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1571</tt>\n    \n  </td>\n</tr>\n \n\n\n<tr>\n  \n  \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Value set Follow Up for Adult Depression\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1568/expansion\">Follow Up for Adult Depression</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1568</tt>\n    \n  </td>\n</tr>\n \n\n\n<tr>\n  \n  \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Value set Payer Type\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.114222.4.11.3591/expansion\">Payer</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591</tt>\n    \n  </td>\n</tr>\n \n\n\n<tr>\n  \n  \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Value set Bipolar Disorder\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.67.1.101.1.128/expansion\">Bipolar Disorder</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.67.1.101.1.128</tt>\n    \n  </td>\n</tr>\n \n\n\n<tr>\n  \n  \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Value set Medical Reason\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1007/expansion\">Medical Reason</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1007</tt>\n    \n  </td>\n</tr>\n \n\n\n  \n  <tr>\n    <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n    <td class=\"content-container\">\n      \n        <em>Display</em>: Male\n        <br/>\n      \n      <em>Code</em>: M\n      <br/>\n      <em>System</em>: <tt>http://hl7.org/fhir/administrative-gender</tt>\n    </td>\n  </tr>\n\n  <tr>\n    <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n    <td class=\"content-container\">\n      \n        <em>Display</em>: Female\n        <br/>\n      \n      <em>Code</em>: F\n      <br/>\n      <em>System</em>: <tt>http://hl7.org/fhir/administrative-gender</tt>\n    </td>\n  </tr>\n\n  <tr>\n    <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n    <td class=\"content-container\">\n      \n        <em>Display</em>: Adolescent depression screening assessment\n        <br/>\n      \n      <em>Code</em>: 73831-0\n      <br/>\n      <em>System</em>: <tt>http://loinc.org</tt>\n    </td>\n  </tr>\n\n  <tr>\n    <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n    <td class=\"content-container\">\n      \n        <em>Display</em>: Depression screening negative (finding)\n        <br/>\n      \n      <em>Code</em>: 428171000124102\n      <br/>\n      <em>System</em>: <tt>http://snomed.info/sct</tt>\n    </td>\n  </tr>\n\n  <tr>\n    <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n    <td class=\"content-container\">\n      \n        <em>Display</em>: Depression screening positive (finding)\n        <br/>\n      \n      <em>Code</em>: 428181000124104\n      <br/>\n      <em>System</em>: <tt>http://snomed.info/sct</tt>\n    </td>\n  </tr>\n\n  <tr>\n    <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n    <td class=\"content-container\">\n      \n        <em>Display</em>: Adult depression screening assessment\n        <br/>\n      \n      <em>Code</em>: 73832-8\n      <br/>\n      <em>System</em>: <tt>http://loinc.org</tt>\n    </td>\n  </tr>\n\n  <tr>\n    <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n    <td class=\"content-container\">\n      \n        <em>Display</em>: Problem List Item\n        <br/>\n      \n      <em>Code</em>: problem-list-item\n      <br/>\n      <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-category</tt>\n    </td>\n  </tr>\n\n  <tr>\n    <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n    <td class=\"content-container\">\n      \n        <em>Display</em>: Health Concern\n        <br/>\n      \n      <em>Code</em>: health-concern\n      <br/>\n      <em>System</em>: <tt>http://hl7.org/fhir/us/core/CodeSystem/condition-category</tt>\n    </td>\n  </tr>\n\n  <tr>\n    <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n    <td class=\"content-container\">\n      \n        <em>Display</em>: Active\n        <br/>\n      \n      <em>Code</em>: active\n      <br/>\n      <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-clinical</tt>\n    </td>\n  </tr>\n\n  <tr>\n    <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n    <td class=\"content-container\">\n      \n        <em>Display</em>: Recurrence\n        <br/>\n      \n      <em>Code</em>: recurrence\n      <br/>\n      <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-clinical</tt>\n    </td>\n  </tr>\n\n  <tr>\n    <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n    <td class=\"content-container\">\n      \n        <em>Display</em>: Relapse\n        <br/>\n      \n      <em>Code</em>: relapse\n      <br/>\n      <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-clinical</tt>\n    </td>\n  </tr>\n\n  <tr>\n    <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n    <td class=\"content-container\">\n      \n        <em>Display</em>: Depression screening declined (situation)\n        <br/>\n      \n      <em>Code</em>: 720834000\n      <br/>\n      <em>System</em>: <tt>http://snomed.info/sct</tt>\n    </td>\n  </tr>\n\n  \n  \n\n\n  <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"dependencies\"> </a>Dependencies</th>\n\n\n</tr>\n  \n  \n  \n\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n  <td class=\"content-container\">\n    \n    <em>Description</em>: QICore model information\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/4.1.1/Library-QICore-ModelInfo.html\">http://hl7.org/fhir/us/qicore/Library/QICore-ModelInfo|4.1.1</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/us/qicore/Library/QICore-ModelInfo|4.1.1</tt>\n    \n  </td>\n</tr>\n \n\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n  <td class=\"content-container\">\n    \n    <em>Description</em>: Library SDE\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"Library-SupplementalDataElements.html\">SupplementalDataElementsversion: null3.5.000)</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>https://madie.cms.gov/Library/SupplementalDataElements|3.5.000</tt>\n    \n  </td>\n</tr>\n \n\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n  <td class=\"content-container\">\n    \n    <em>Description</em>: Library FHIRHelpers\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"Library-FHIRHelpers.html\">FHIRHelpersversion: null4.4.000)</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>https://madie.cms.gov/Library/FHIRHelpers|4.4.000</tt>\n    \n  </td>\n</tr>\n \n\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n  <td class=\"content-container\">\n    \n    <em>Description</em>: Library QICoreCommon\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"Library-QICoreCommon.html\">QICoreCommonversion: null2.1.000)</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>https://madie.cms.gov/Library/QICoreCommon|2.1.000</tt>\n    \n  </td>\n</tr>\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n\n  \n  \n\n\n\n\n\n\n  <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"data-requirements\"> </a>Data Requirements</th>\n\n\n</tr>\n  \n  \n  \n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Patient\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-patient.html\">QICorePatient</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: ethnicity, race\n    <br/>\n   \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Encounter\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-encounter.html\">QICoreEncounter</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: type, period, status, status.value\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: type</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.600.1916/expansion\">Encounter to Screen for Depression</a>\n    <br/> \n  \n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Encounter\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-encounter.html\">QICoreEncounter</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: type, period, status, status.value\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: type</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1022/expansion\">Physical Therapy Evaluation</a>\n    <br/> \n  \n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Encounter\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-encounter.html\">QICoreEncounter</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: type, period, status, status.value\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: type</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1080/expansion\">Telephone Visits</a>\n    <br/> \n  \n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Observation\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-observation.html\">QICoreObservation</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, effective, value, status, status.value\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: code</span>\n    <br/>\n  \n  \n  \n  \n    <span class=\"tab-one\"><em>Code(s)</em>: \n    \n      \n      <a href=\"https://loinc.org/73831-0\">LOINC: 73831-0</a> (Adolescent depression screening assessment)\n      \n    \n    </span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>Path</em>: status.value</span>\n    <br/>\n  \n  \n  \n  \n    <span class=\"tab-one\"><em>Code(s)</em>: \n    \n      \n      [not stated]: final (final)\n      \n    \n    </span>\n    <br/>\n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Observation\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-observation.html\">QICoreObservation</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, effective, value, status, status.value\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: code</span>\n    <br/>\n  \n  \n  \n  \n    <span class=\"tab-one\"><em>Code(s)</em>: \n    \n      \n      <a href=\"https://loinc.org/73832-8\">LOINC: 73832-8</a> (Adult depression screening assessment)\n      \n    \n    </span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>Path</em>: status.value</span>\n    <br/>\n  \n  \n  \n  \n    <span class=\"tab-one\"><em>Code(s)</em>: \n    \n      \n      [not stated]: final (final)\n      \n    \n    </span>\n    <br/>\n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Medication\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-medication.html\">QICoreMedication</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: id.value, code\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: code</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1567/expansion\">Adolescent Depression Medications</a>\n    <br/> \n  \n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Medication\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-medication.html\">QICoreMedication</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: id.value, code\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: code</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1566/expansion\">Adult Depression Medications</a>\n    <br/> \n  \n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: MedicationRequest\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-medicationrequest.html\">QICoreMedicationRequest</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: medication, status, status.value, intent, intent.value\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: medication</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1567/expansion\">Adolescent Depression Medications</a>\n    <br/> \n  \n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: MedicationRequest\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-medicationrequest.html\">QICoreMedicationRequest</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: medication.reference.value, status, status.value, intent, intent.value\n    <br/>\n   \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: MedicationRequest\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-medicationrequest.html\">QICoreMedicationRequest</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: medication, status, status.value, intent, intent.value\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: medication</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1566/expansion\">Adult Depression Medications</a>\n    <br/> \n  \n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: ServiceRequest\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-servicerequest.html\">QICoreServiceRequest</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, status, status.value\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: code</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1570/expansion\">Referral for Adolescent Depression</a>\n    <br/> \n  \n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: ServiceRequest\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-servicerequest.html\">QICoreServiceRequest</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, status, status.value\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: code</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1571/expansion\">Referral for Adult Depression</a>\n    <br/> \n  \n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Procedure\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-procedure.html\">QICoreProcedure</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, status, status.value\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: code</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1569/expansion\">Follow Up for Adolescent Depression</a>\n    <br/> \n  \n  \n  \n  \n    <span class=\"tab-one\"><em>Path</em>: status.value</span>\n    <br/>\n  \n  \n  \n  \n    <span class=\"tab-one\"><em>Code(s)</em>: \n    \n      \n      [not stated]: completed (completed)\n      \n    \n    </span>\n    <br/>\n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Procedure\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-procedure.html\">QICoreProcedure</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, status, status.value\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: code</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1568/expansion\">Follow Up for Adult Depression</a>\n    <br/> \n  \n  \n  \n  \n    <span class=\"tab-one\"><em>Path</em>: status.value</span>\n    <br/>\n  \n  \n  \n  \n    <span class=\"tab-one\"><em>Code(s)</em>: \n    \n      \n      [not stated]: completed (completed)\n      \n    \n    </span>\n    <br/>\n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Coverage\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-coverage.html\">QICoreCoverage</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: type, period\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: type</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.114222.4.11.3591/expansion\">Payer</a>\n    <br/> \n  \n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Condition\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-condition.html\">QICoreCondition</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: code</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.67.1.101.1.128/expansion\">Bipolar Disorder</a>\n    <br/> \n  \n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Observation\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-observationnotdone.html\">QICoreObservationNotDone</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, issued, issued.value, extension, status, status.value\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: code</span>\n    <br/>\n  \n  \n  \n  \n    <span class=\"tab-one\"><em>Code(s)</em>: \n    \n      \n      <a href=\"https://loinc.org/73831-0\">LOINC: 73831-0</a> (Adolescent depression screening assessment)\n      \n    \n    </span>\n    <br/>\n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Observation\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-observationnotdone.html\">QICoreObservationNotDone</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, issued, issued.value, extension, status, status.value\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: code</span>\n    <br/>\n  \n  \n  \n  \n    <span class=\"tab-one\"><em>Code(s)</em>: \n    \n      \n      <a href=\"https://loinc.org/73832-8\">LOINC: 73832-8</a> (Adult depression screening assessment)\n      \n    \n    </span>\n    <br/>\n  \n  \n   \n  </td>\n</tr>\n\n  \n  \n\n\n  <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"parameters\"> </a>Parameters</th>\n\n\n</tr>\n  \n  \n  <tr>\n  \n\n<th scope=\"row\" class=\"row-header\"/>\n\n\n  <td class=\"content-container\">\n    <table>\n      <thead>\n        <tr>\n          <td><em>Name</em></td>\n          <td><em>Use</em></td>\n          <td><em>Card.</em></td>\n          <td><em>Type</em></td>\n          <td><em>Documentation</em></td>\n        </tr>\n      </thead>\n      <tbody>\n      \n        <tr>\n          <td>Measurement Period</td>\n          <td>In</td>\n          <td>0..1</td>\n          <td>Period</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>SDE Sex</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>Coding</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Numerator</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>boolean</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Denominator</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>boolean</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>SDE Payer</td>\n          <td>Out</td>\n          <td>0..*</td>\n          <td>Resource</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Initial Population</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>boolean</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>SDE Ethnicity</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>Resource</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Denominator Exclusions</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>boolean</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>SDE Race</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>Resource</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Denominator Exceptions</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>boolean</td>\n          <td/>\n        </tr>\n      \n      </tbody>\n    </table>\n  </td>\n</tr>\n\n  \n  \n\n<tr>\n  <th colspan=\"2\" scope=\"row\" class=\"row-header\">Generated using version 0.5.4-cibuild of the sample-content-ig Liquid templates</th>\n</tr>\n\n    </tbody>\n  </table>\n</div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:contained ( [
a fhir:Library ;
fhir:id [ fhir:v "effective-data-requirements" ] ;
    ( fhir:extension [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode>       ] ;
fhir:value [
a fhir:Coding ;
fhir:system [
fhir:v "http://hl7.org/fhir/administrative-gender"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/administrative-gender>         ] ;
fhir:code [ fhir:v "M" ] ;
fhir:display [ fhir:v "Male" ]       ]     ] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode>       ] ;
fhir:value [
a fhir:Coding ;
fhir:system [
fhir:v "http://hl7.org/fhir/administrative-gender"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/administrative-gender>         ] ;
fhir:code [ fhir:v "F" ] ;
fhir:display [ fhir:v "Female" ]       ]     ] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode>       ] ;
fhir:value [
a fhir:Coding, loinc:73831-0 ;
fhir:system [
fhir:v "http://loinc.org"^^xsd:anyURI ;
fhir:l <http://loinc.org>         ] ;
fhir:code [ fhir:v "73831-0" ] ;
fhir:display [ fhir:v "Adolescent depression screening assessment" ]       ]     ] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode>       ] ;
fhir:value [
a fhir:Coding, sct:428171000124102 ;
fhir:system [
fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
fhir:l <http://snomed.info/sct>         ] ;
fhir:code [ fhir:v "428171000124102" ] ;
fhir:display [ fhir:v "Depression screening negative (finding)" ]       ]     ] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode>       ] ;
fhir:value [
a fhir:Coding, sct:428181000124104 ;
fhir:system [
fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
fhir:l <http://snomed.info/sct>         ] ;
fhir:code [ fhir:v "428181000124104" ] ;
fhir:display [ fhir:v "Depression screening positive (finding)" ]       ]     ] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode>       ] ;
fhir:value [
a fhir:Coding, loinc:73832-8 ;
fhir:system [
fhir:v "http://loinc.org"^^xsd:anyURI ;
fhir:l <http://loinc.org>         ] ;
fhir:code [ fhir:v "73832-8" ] ;
fhir:display [ fhir:v "Adult depression screening assessment" ]       ]     ] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode>       ] ;
fhir:value [
a fhir:Coding ;
fhir:system [
fhir:v "http://terminology.hl7.org/CodeSystem/condition-category"^^xsd:anyURI ;
fhir:l <http://terminology.hl7.org/CodeSystem/condition-category>         ] ;
fhir:code [ fhir:v "problem-list-item" ] ;
fhir:display [ fhir:v "Problem List Item" ]       ]     ] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode>       ] ;
fhir:value [
a fhir:Coding ;
fhir:system [
fhir:v "http://hl7.org/fhir/us/core/CodeSystem/condition-category"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/core/CodeSystem/condition-category>         ] ;
fhir:code [ fhir:v "health-concern" ] ;
fhir:display [ fhir:v "Health Concern" ]       ]     ] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode>       ] ;
fhir:value [
a fhir:Coding ;
fhir:system [
fhir:v "http://terminology.hl7.org/CodeSystem/condition-clinical"^^xsd:anyURI ;
fhir:l <http://terminology.hl7.org/CodeSystem/condition-clinical>         ] ;
fhir:code [ fhir:v "active" ] ;
fhir:display [ fhir:v "Active" ]       ]     ] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode>       ] ;
fhir:value [
a fhir:Coding ;
fhir:system [
fhir:v "http://terminology.hl7.org/CodeSystem/condition-clinical"^^xsd:anyURI ;
fhir:l <http://terminology.hl7.org/CodeSystem/condition-clinical>         ] ;
fhir:code [ fhir:v "recurrence" ] ;
fhir:display [ fhir:v "Recurrence" ]       ]     ] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode>       ] ;
fhir:value [
a fhir:Coding ;
fhir:system [
fhir:v "http://terminology.hl7.org/CodeSystem/condition-clinical"^^xsd:anyURI ;
fhir:l <http://terminology.hl7.org/CodeSystem/condition-clinical>         ] ;
fhir:code [ fhir:v "relapse" ] ;
fhir:display [ fhir:v "Relapse" ]       ]     ] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode>       ] ;
fhir:value [
a fhir:Coding, sct:720834000 ;
fhir:system [
fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
fhir:l <http://snomed.info/sct>         ] ;
fhir:code [ fhir:v "720834000" ] ;
fhir:display [ fhir:v "Depression screening declined (situation)" ]       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "SupplementalDataElements"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "SDE Sex"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"SDE Sex\":\n  case\n    when Patient.gender = 'male' then \"M\"\n    when Patient.gender = 'female' then \"F\"\n    else null\n  end"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 0         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "PCSDepressionScreenAndFollowUpFHIR"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "SDE Sex"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"SDE Sex\":\n  SDE.\"SDE Sex\""         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 1         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "PCSDepressionScreenAndFollowUpFHIR"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "Patient Age 12 to 16 Years at Start of Measurement Period"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"Patient Age 12 to 16 Years at Start of Measurement Period\":\n  AgeInYearsAt(date from start of \"Measurement Period\") in Interval[12, 16]"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 2         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "PCSDepressionScreenAndFollowUpFHIR"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "Qualifying Encounter During Measurement Period"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"Qualifying Encounter During Measurement Period\":\n  ( [Encounter: \"Encounter to Screen for Depression\"]\n    union [Encounter: \"Physical Therapy Evaluation\"]\n    union [Encounter: \"Telephone Visits\"] ) QualifyingEncounter\n    where QualifyingEncounter.period during day of \"Measurement Period\"\n      and QualifyingEncounter.status = 'finished'"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 3         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "PCSDepressionScreenAndFollowUpFHIR"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "Most Recent Adolescent Depression Screening"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"Most Recent Adolescent Depression Screening\":\n  Last([Observation: \"Adolescent depression screening assessment\"] AdolescentDepressionScreening\n      with \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n        such that AdolescentDepressionScreening.effective.toInterval() 14 days or less on or before day of start of QualifyingEncounter.period\n          and AdolescentDepressionScreening.value is not null\n          and AdolescentDepressionScreening.status = 'final'\n      sort by start of effective.toInterval()\n  )"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 4         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "PCSDepressionScreenAndFollowUpFHIR"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "Has Most Recent Adolescent Screening Negative"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"Has Most Recent Adolescent Screening Negative\":\n  ( \"Most Recent Adolescent Depression Screening\" AdolescentScreen\n      where AdolescentScreen.value ~ \"Depression screening negative (finding)\"\n  ) is not null"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 5         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "PCSDepressionScreenAndFollowUpFHIR"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "Follow Up Intervention for Positive Adolescent Depression Screening"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"Follow Up Intervention for Positive Adolescent Depression Screening\":\n  ( ( [MedicationRequest: \"Adolescent Depression Medications\"] AdolescentMed\n        where AdolescentMed.status in { 'active', 'completed' }\n          and AdolescentMed.intent = 'order'\n    )\n      union ( [ServiceRequest: \"Referral for Adolescent Depression\"] AdolescentReferral\n          where AdolescentReferral.status in { 'active', 'completed' }\n      )\n      union ( [Procedure: \"Follow Up for Adolescent Depression\"] AdolescentFollowUp\n          where AdolescentFollowUp.status = 'completed'\n      )\n  )"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 6         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "PCSDepressionScreenAndFollowUpFHIR"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "Most Recent Adolescent Depression Screening Positive and Follow Up Provided"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"Most Recent Adolescent Depression Screening Positive and Follow Up Provided\":\n  from\n    \"Most Recent Adolescent Depression Screening\" LastAdolescentScreen,\n    \"Follow Up Intervention for Positive Adolescent Depression Screening\" FollowUpPositiveAdolescentScreen,\n    \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n    where LastAdolescentScreen.effective.toInterval ( ) starts 14 days or less on or before day of start of QualifyingEncounter.period\n      and LastAdolescentScreen.value ~ \"Depression screening positive (finding)\"\n      and ( start of FollowUpPositiveAdolescentScreen.performed.toInterval ( ) during QualifyingEncounter.period\n          or FollowUpPositiveAdolescentScreen.authoredOn 2 days or less on or after day of end of QualifyingEncounter.period\n      )\n      and ( Coalesce(start of FollowUpPositiveAdolescentScreen.performed.toInterval(), FollowUpPositiveAdolescentScreen.authoredOn) during day of \"Measurement Period\" )"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 7         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "PCSDepressionScreenAndFollowUpFHIR"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "Patient Age 17 Years at Start of Measurement Period"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"Patient Age 17 Years at Start of Measurement Period\":\n  AgeInYearsAt(date from start of \"Measurement Period\") = 17"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 8         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "PCSDepressionScreenAndFollowUpFHIR"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "Most Recent Adult Depression Screening"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"Most Recent Adult Depression Screening\":\n  Last([Observation: \"Adult depression screening assessment\"] AdultDepressionScreening\n      with \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n        such that AdultDepressionScreening.effective.toInterval() 14 days or less on or before day of start of QualifyingEncounter.period\n          and AdultDepressionScreening.value is not null\n          and AdultDepressionScreening.status = 'final'\n      sort by start of effective.toInterval()\n  )"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 9         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "PCSDepressionScreenAndFollowUpFHIR"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "Has Most Recent Adult Screening Negative"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"Has Most Recent Adult Screening Negative\":\n  ( \"Most Recent Adult Depression Screening\" AdultScreen\n      where AdultScreen.value ~ \"Depression screening negative (finding)\"\n  ) is not null"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 10         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "PCSDepressionScreenAndFollowUpFHIR"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "Follow Up Intervention for Positive Adult Depression Screening"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"Follow Up Intervention for Positive Adult Depression Screening\":\n  ( ( [MedicationRequest: \"Adult Depression Medications\"] AdultMed\n        where AdultMed.status in { 'active', 'completed' }\n          and AdultMed.intent = 'order'\n    )\n      union ( [ServiceRequest: \"Referral for Adult Depression\"] AdultReferral\n          where AdultReferral.status in { 'active', 'completed' }\n      )\n      union ( [Procedure: \"Follow Up for Adult Depression\"] AdultFollowUp\n          where AdultFollowUp.status = 'completed'\n      )\n  )"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 11         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "PCSDepressionScreenAndFollowUpFHIR"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "Most Recent Adult Depression Screening Positive and Follow Up Provided"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"Most Recent Adult Depression Screening Positive and Follow Up Provided\":\n  from\n    \"Most Recent Adult Depression Screening\" LastAdultScreen,\n    \"Follow Up Intervention for Positive Adult Depression Screening\" FollowUpPositiveAdultScreen,\n    \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n    where LastAdultScreen.effective.toInterval ( ) starts 14 days or less on or before day of start of QualifyingEncounter.period\n      and LastAdultScreen.value ~ \"Depression screening positive (finding)\"\n      and ( start of FollowUpPositiveAdultScreen.performed.toInterval ( ) during QualifyingEncounter.period\n          or FollowUpPositiveAdultScreen.authoredOn 2 days or less on or after day of end of QualifyingEncounter.period\n      )\n      and ( Coalesce(start of FollowUpPositiveAdultScreen.performed.toInterval(), FollowUpPositiveAdultScreen.authoredOn) during day of \"Measurement Period\" )"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 12         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "PCSDepressionScreenAndFollowUpFHIR"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "Patient Age 18 Years or Older at Start of Measurement Period"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"Patient Age 18 Years or Older at Start of Measurement Period\":\n  AgeInYearsAt(date from start of \"Measurement Period\") >= 18"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 13         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "PCSDepressionScreenAndFollowUpFHIR"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "Numerator"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"Numerator\":\n  ( \"Patient Age 12 to 16 Years at Start of Measurement Period\"\n      and ( \"Has Most Recent Adolescent Screening Negative\"\n          or exists \"Most Recent Adolescent Depression Screening Positive and Follow Up Provided\"\n      )\n  )\n    or ( \"Patient Age 17 Years at Start of Measurement Period\"\n        and ( \"Has Most Recent Adolescent Screening Negative\"\n            or exists \"Most Recent Adolescent Depression Screening Positive and Follow Up Provided\"\n            or \"Has Most Recent Adult Screening Negative\"\n            or exists \"Most Recent Adult Depression Screening Positive and Follow Up Provided\"\n        )\n    )\n    or ( \"Patient Age 18 Years or Older at Start of Measurement Period\"\n        and ( \"Has Most Recent Adult Screening Negative\"\n            or exists \"Most Recent Adult Depression Screening Positive and Follow Up Provided\"\n        )\n    )"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 14         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "PCSDepressionScreenAndFollowUpFHIR"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "Patient Age 12 Years or Older at Start of Measurement Period"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"Patient Age 12 Years or Older at Start of Measurement Period\":\n  AgeInYearsAt(date from start of \"Measurement Period\") >= 12"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 15         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "PCSDepressionScreenAndFollowUpFHIR"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "Initial Population"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"Initial Population\":\n  \"Patient Age 12 Years or Older at Start of Measurement Period\"\n    and exists ( \"Qualifying Encounter During Measurement Period\" )"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 16         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "PCSDepressionScreenAndFollowUpFHIR"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "Denominator"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"Denominator\":\n  \"Initial Population\""         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 17         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "SupplementalDataElements"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "SDE Payer"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"SDE Payer\":\n  [Coverage: type in \"Payer Type\"] Payer\n    return {\n      code: Payer.type,\n      period: Payer.period\n    }"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 18         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "PCSDepressionScreenAndFollowUpFHIR"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "SDE Payer"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"SDE Payer\":\n  SDE.\"SDE Payer\""         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 19         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "SupplementalDataElements"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "SDE Ethnicity"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"SDE Ethnicity\":\n  Patient.ethnicity E\n    return Tuple {\n      codes: { E.ombCategory } union E.detailed,\n      display: E.text\n    }"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 20         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "PCSDepressionScreenAndFollowUpFHIR"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "SDE Ethnicity"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"SDE Ethnicity\":\n  SDE.\"SDE Ethnicity\""         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 21         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "PCSDepressionScreenAndFollowUpFHIR"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "History of Bipolar Diagnosis Before Qualifying Encounter"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"History of Bipolar Diagnosis Before Qualifying Encounter\":\n  [Condition: \"Bipolar Disorder\"] BipolarDiagnosis\n    with \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n      such that ( BipolarDiagnosis.isProblemListItem ( )\n          or BipolarDiagnosis.isHealthConcern ( )\n      )\n        and BipolarDiagnosis.prevalenceInterval ( ) starts before QualifyingEncounter.period"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 22         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "PCSDepressionScreenAndFollowUpFHIR"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "Denominator Exclusions"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"Denominator Exclusions\":\n  exists \"History of Bipolar Diagnosis Before Qualifying Encounter\""         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 23         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "SupplementalDataElements"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "SDE Race"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"SDE Race\":\n  Patient.race R\n    return Tuple {\n      codes: R.ombCategory union R.detailed,\n      display: R.text\n    }"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 24         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "PCSDepressionScreenAndFollowUpFHIR"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "SDE Race"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"SDE Race\":\n  SDE.\"SDE Race\""         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 25         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "PCSDepressionScreenAndFollowUpFHIR"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "Medical or Patient Reason for Not Screening Adolescent for Depression"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"Medical or Patient Reason for Not Screening Adolescent for Depression\":\n  [ObservationNotDone: code ~ \"Adolescent depression screening assessment\"] NoAdolescentScreen\n    with \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n      such that NoAdolescentScreen.issued during QualifyingEncounter.period\n    where ( NoAdolescentScreen.notDoneReason ~ \"Depression screening declined (situation)\"\n        or NoAdolescentScreen.notDoneReason in \"Medical Reason\"\n    )\n      and NoAdolescentScreen.status = 'cancelled'"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 26         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "PCSDepressionScreenAndFollowUpFHIR"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "Has Adolescent Depression Screening"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"Has Adolescent Depression Screening\":\n  exists ( [Observation: \"Adolescent depression screening assessment\"] AdolescentScreening\n      with \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n        such that AdolescentScreening.effective.toInterval ( ) 14 days or less on or before day of start of QualifyingEncounter.period\n          and AdolescentScreening.value is not null\n          and AdolescentScreening.status = 'final'\n  )"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 27         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "PCSDepressionScreenAndFollowUpFHIR"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "Medical or Patient Reason for Not Screening Adult for Depression"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"Medical or Patient Reason for Not Screening Adult for Depression\":\n  [ObservationNotDone: code ~ \"Adult depression screening assessment\"] NoAdultScreen\n    with \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n      such that NoAdultScreen.issued during QualifyingEncounter.period\n    where ( NoAdultScreen.notDoneReason ~ \"Depression screening declined (situation)\"\n        or NoAdultScreen.notDoneReason in \"Medical Reason\"\n    )\n      and NoAdultScreen.status = 'cancelled'"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 28         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "PCSDepressionScreenAndFollowUpFHIR"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "Has Adult Depression Screening"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"Has Adult Depression Screening\":\n  exists ( [Observation: \"Adult depression screening assessment\"] AdultScreening\n      with \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n        such that AdultScreening.effective.toInterval ( ) 14 days or less on or before day of start of QualifyingEncounter.period\n          and AdultScreening.value is not null\n          and AdultScreening.status = 'final'\n  )"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 29         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "PCSDepressionScreenAndFollowUpFHIR"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "Denominator Exceptions"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define \"Denominator Exceptions\":\n  ( exists \"Medical or Patient Reason for Not Screening Adolescent for Depression\"\n      and not \"Has Adolescent Depression Screening\"\n  )\n    or ( exists \"Medical or Patient Reason for Not Screening Adult for Depression\"\n        and not \"Has Adult Depression Screening\"\n    )"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 30         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "FHIRHelpers"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "ToInterval"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "/*\n@description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period)\nvalue to a CQL DateTime Interval\n@comment: If the start value of the given period is unspecified, the starting\nboundary of the resulting interval will be open (meaning the start of the interval\nis unknown, as opposed to interpreted as the beginning of time).\n*/\ndefine function ToInterval(period FHIR.Period):\n    if period is null then\n        null\n    else\n        if period.\"start\" is null then\n            Interval(period.\"start\".value, period.\"end\".value]\n        else\n            Interval[period.\"start\".value, period.\"end\".value]"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 31         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "FHIRHelpers"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "ToString"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "define function ToString(value uri): value.value"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 32         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "FHIRHelpers"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "ToCode"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "/*\n@description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code.\n*/\ndefine function ToCode(coding FHIR.Coding):\n    if coding is null then\n        null\n    else\n        System.Code {\n          code: coding.code.value,\n          system: coding.system.value,\n          version: coding.version.value,\n          display: coding.display.value\n        }"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 33         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "QICoreCommon"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "isProblemListItem"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "/*\n@description: Returns true if the given condition is a problem list item.\n*/\ndefine fluent function isProblemListItem(condition Condition):\n  exists (condition.category C\n    where C ~ \"problem-list-item\"\n  )"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 34         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "FHIRHelpers"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "ToConcept"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "/*\n@description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.\n*/\ndefine function ToConcept(concept FHIR.CodeableConcept):\n    if concept is null then\n        null\n    else\n        System.Concept {\n            codes: concept.coding C return ToCode(C),\n            display: concept.text.value\n        }"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 35         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "QICoreCommon"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "isHealthConcern"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "/*\n@description: Returns true if the given condition is a health concern\n*/\ndefine fluent function isHealthConcern(condition Condition):\n  exists (condition.category C\n    where C ~ \"health-concern\"\n  )"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 36         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "QICoreCommon"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "prevalenceInterval"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "/*\n@description: Returns an interval representing the normalized prevalence period of a given Condition.\n@comment: Uses the ToInterval and ToAbatementInterval functions to determine the widest potential interval from\nonset to abatement as specified in the given Condition. If the condition is active, or has an abatement date the resulting \ninterval will have a closed ending boundary. Otherwise, the resulting interval will have an open ending boundary.\n*/\ndefine fluent function prevalenceInterval(condition Condition):\nif condition.clinicalStatus ~ \"active\"\n  or condition.clinicalStatus ~ \"recurrence\"\n  or condition.clinicalStatus ~ \"relapse\" then\n  Interval[start of condition.onset.toInterval(), end of condition.abatementInterval()]\nelse\n    (end of condition.abatementInterval()) abatementDate\n    return if abatementDate is null then\n      Interval[start of condition.onset.toInterval(), abatementDate)\n    else\n      Interval[start of condition.onset.toInterval(), abatementDate]"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 37         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "libraryName"^^xsd:anyURI ;
fhir:l fhir:libraryName         ] ;
fhir:value [
a fhir:String ;
fhir:v "QICoreCommon"         ]       ] [
fhir:url [
fhir:v "name"^^xsd:anyURI ;
fhir:l fhir:name         ] ;
fhir:value [
a fhir:String ;
fhir:v "abatementInterval"         ]       ] [
fhir:url [
fhir:v "statement"^^xsd:anyURI ;
fhir:l fhir:statement         ] ;
fhir:value [
a fhir:String ;
fhir:v "/*\n@description: Returns an interval representing the normalized abatement of a given Condition.\n@comment: If the abatement element of the Condition is represented as a DateTime, the result\nis an interval beginning and ending on that DateTime.\nIf the abatement is represented as a Quantity, the quantity is expected to be a calendar-duration and is interpreted as the age of the patient. The\nresult is an interval from the date the patient turned that age to immediately before one year later.\nIf the abatement is represented as a Quantity Interval, the quantities are expected to be calendar-durations and are interpreted as an age range during\nwhich the abatement occurred. The result is an interval from the date the patient turned the starting age of the quantity interval, and ending immediately\nbefore one year later than the date the patient turned the ending age of the quantity interval.\n*/\ndefine fluent function abatementInterval(condition Condition):\n	if condition.abatement is DateTime then\n	  Interval[condition.abatement as DateTime, condition.abatement as DateTime]\n	else if condition.abatement is Quantity then\n		Interval[Patient.birthDate + (condition.abatement as Quantity),\n			Patient.birthDate + (condition.abatement as Quantity) + 1 year)\n	else if condition.abatement is Interval<Quantity> then\n	  Interval[Patient.birthDate + (condition.abatement.low as Quantity),\n		  Patient.birthDate + (condition.abatement.high as Quantity) + 1 year)\n	else if condition.abatement is Interval<DateTime> then\n	  Interval[condition.abatement.low, condition.abatement.high)\n	else null as Interval<DateTime>"         ]       ] [
fhir:url [
fhir:v "displaySequence"^^xsd:anyURI ;
fhir:l fhir:displaySequence         ] ;
fhir:value [
a fhir:Integer ;
fhir:v 38         ]       ] ) ;
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] ) ;
fhir:name [ fhir:v "EffectiveDataRequirements" ] ;
fhir:status [ fhir:v "active" ] ;
fhir:type [
      ( fhir:coding [
fhir:system [
fhir:v "http://terminology.hl7.org/CodeSystem/library-type"^^xsd:anyURI ;
fhir:l <http://terminology.hl7.org/CodeSystem/library-type>         ] ;
fhir:code [ fhir:v "module-definition" ]       ] )     ] ;
    ( fhir:relatedArtifact [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "QICore model information" ] ;
fhir:resource [
fhir:v "http://hl7.org/fhir/us/qicore/Library/QICore-ModelInfo|4.1.1"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/qicore/Library/QICore-ModelInfo?version=4.1.1>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Library SDE" ] ;
fhir:resource [
fhir:v "https://madie.cms.gov/Library/SupplementalDataElements|3.5.000"^^xsd:anyURI ;
fhir:l <https://madie.cms.gov/Library/SupplementalDataElements?version=3.5.000>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Library FHIRHelpers" ] ;
fhir:resource [
fhir:v "https://madie.cms.gov/Library/FHIRHelpers|4.4.000"^^xsd:anyURI ;
fhir:l <https://madie.cms.gov/Library/FHIRHelpers?version=4.4.000>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Library QICoreCommon" ] ;
fhir:resource [
fhir:v "https://madie.cms.gov/Library/QICoreCommon|2.1.000"^^xsd:anyURI ;
fhir:l <https://madie.cms.gov/Library/QICoreCommon?version=2.1.000>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Code system AdministrativeGender" ] ;
fhir:resource [
fhir:v "http://hl7.org/fhir/administrative-gender"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/administrative-gender>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Code system LOINC" ] ;
fhir:resource [
fhir:v "http://loinc.org"^^xsd:anyURI ;
fhir:l <http://loinc.org>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Code system SNOMEDCT" ] ;
fhir:resource [
fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
fhir:l <http://snomed.info/sct>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Code system ConditionCategory" ] ;
fhir:resource [
fhir:v "http://terminology.hl7.org/CodeSystem/condition-category"^^xsd:anyURI ;
fhir:l <http://terminology.hl7.org/CodeSystem/condition-category>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Code system USCoreConditionCategoryExtensionCodes" ] ;
fhir:resource [
fhir:v "http://hl7.org/fhir/us/core/CodeSystem/condition-category"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/core/CodeSystem/condition-category>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Code system ConditionClinicalStatusCodes" ] ;
fhir:resource [
fhir:v "http://terminology.hl7.org/CodeSystem/condition-clinical"^^xsd:anyURI ;
fhir:l <http://terminology.hl7.org/CodeSystem/condition-clinical>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Encounter to Screen for Depression" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1916"^^xsd:anyURI ;
fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1916>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Physical Therapy Evaluation" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1022"^^xsd:anyURI ;
fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1022>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Telephone Visits" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080"^^xsd:anyURI ;
fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Adolescent Depression Medications" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1567"^^xsd:anyURI ;
fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1567>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Referral for Adolescent Depression" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1570"^^xsd:anyURI ;
fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1570>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Follow Up for Adolescent Depression" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1569"^^xsd:anyURI ;
fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1569>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Adult Depression Medications" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1566"^^xsd:anyURI ;
fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1566>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Referral for Adult Depression" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1571"^^xsd:anyURI ;
fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1571>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Follow Up for Adult Depression" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1568"^^xsd:anyURI ;
fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1568>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Payer Type" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"^^xsd:anyURI ;
fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Bipolar Disorder" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.67.1.101.1.128"^^xsd:anyURI ;
fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.67.1.101.1.128>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Medical Reason" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1007"^^xsd:anyURI ;
fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1007>       ]     ] ) ;
    ( fhir:parameter [
fhir:name [ fhir:v "Measurement Period" ] ;
fhir:use [ fhir:v "in" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:type [ fhir:v "Period" ]     ] [
fhir:name [ fhir:v "SDE Sex" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:type [ fhir:v "Coding" ]     ] [
fhir:name [ fhir:v "Numerator" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:type [ fhir:v "boolean" ]     ] [
fhir:name [ fhir:v "Denominator" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:type [ fhir:v "boolean" ]     ] [
fhir:name [ fhir:v "SDE Payer" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "Resource" ]     ] [
fhir:name [ fhir:v "Initial Population" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:type [ fhir:v "boolean" ]     ] [
fhir:name [ fhir:v "SDE Ethnicity" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:type [ fhir:v "Resource" ]     ] [
fhir:name [ fhir:v "Denominator Exclusions" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:type [ fhir:v "boolean" ]     ] [
fhir:name [ fhir:v "SDE Race" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:type [ fhir:v "Resource" ]     ] [
fhir:name [ fhir:v "Denominator Exceptions" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:type [ fhir:v "boolean" ]     ] ) ;
    ( fhir:dataRequirement [
fhir:type [ fhir:v "Patient" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient>       ] ) ;
      ( fhir:mustSupport [ fhir:v "ethnicity" ] [ fhir:v "race" ] )     ] [
fhir:type [ fhir:v "Encounter" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter>       ] ) ;
      ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] [ fhir:v "status" ] [ fhir:v "status.value" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "type" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1916"^^xsd:anyURI ;
fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1916>         ]       ] )     ] [
fhir:type [ fhir:v "Encounter" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter>       ] ) ;
      ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] [ fhir:v "status" ] [ fhir:v "status.value" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "type" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1022"^^xsd:anyURI ;
fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1022>         ]       ] )     ] [
fhir:type [ fhir:v "Encounter" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter>       ] ) ;
      ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] [ fhir:v "status" ] [ fhir:v "status.value" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "type" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080"^^xsd:anyURI ;
fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080>         ]       ] )     ] [
fhir:type [ fhir:v "Observation" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation>       ] ) ;
      ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "effective" ] [ fhir:v "value" ] [ fhir:v "status" ] [ fhir:v "status.value" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
        ( fhir:code [
a loinc:73831-0 ;
fhir:system [
fhir:v "http://loinc.org"^^xsd:anyURI ;
fhir:l <http://loinc.org>           ] ;
fhir:code [ fhir:v "73831-0" ] ;
fhir:display [ fhir:v "Adolescent depression screening assessment" ]         ] )       ] [
fhir:path [ fhir:v "status.value" ] ;
        ( fhir:code [
fhir:code [ fhir:v "final" ]         ] )       ] )     ] [
fhir:type [ fhir:v "Observation" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation>       ] ) ;
      ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "effective" ] [ fhir:v "value" ] [ fhir:v "status" ] [ fhir:v "status.value" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
        ( fhir:code [
a loinc:73832-8 ;
fhir:system [
fhir:v "http://loinc.org"^^xsd:anyURI ;
fhir:l <http://loinc.org>           ] ;
fhir:code [ fhir:v "73832-8" ] ;
fhir:display [ fhir:v "Adult depression screening assessment" ]         ] )       ] [
fhir:path [ fhir:v "status.value" ] ;
        ( fhir:code [
fhir:code [ fhir:v "final" ]         ] )       ] )     ] [
fhir:type [ fhir:v "Medication" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication>       ] ) ;
      ( fhir:mustSupport [ fhir:v "id.value" ] [ fhir:v "code" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1567"^^xsd:anyURI ;
fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1567>         ]       ] )     ] [
fhir:type [ fhir:v "Medication" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication>       ] ) ;
      ( fhir:mustSupport [ fhir:v "id.value" ] [ fhir:v "code" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1566"^^xsd:anyURI ;
fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1566>         ]       ] )     ] [
fhir:type [ fhir:v "MedicationRequest" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest>       ] ) ;
      ( fhir:mustSupport [ fhir:v "medication" ] [ fhir:v "status" ] [ fhir:v "status.value" ] [ fhir:v "intent" ] [ fhir:v "intent.value" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "medication" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1567"^^xsd:anyURI ;
fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1567>         ]       ] )     ] [
fhir:type [ fhir:v "MedicationRequest" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest>       ] ) ;
      ( fhir:mustSupport [ fhir:v "medication.reference.value" ] [ fhir:v "status" ] [ fhir:v "status.value" ] [ fhir:v "intent" ] [ fhir:v "intent.value" ] )     ] [
fhir:type [ fhir:v "MedicationRequest" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest>       ] ) ;
      ( fhir:mustSupport [ fhir:v "medication" ] [ fhir:v "status" ] [ fhir:v "status.value" ] [ fhir:v "intent" ] [ fhir:v "intent.value" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "medication" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1566"^^xsd:anyURI ;
fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1566>         ]       ] )     ] [
fhir:type [ fhir:v "ServiceRequest" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest>       ] ) ;
      ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "status" ] [ fhir:v "status.value" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1570"^^xsd:anyURI ;
fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1570>         ]       ] )     ] [
fhir:type [ fhir:v "ServiceRequest" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest>       ] ) ;
      ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "status" ] [ fhir:v "status.value" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1571"^^xsd:anyURI ;
fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1571>         ]       ] )     ] [
fhir:type [ fhir:v "Procedure" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure>       ] ) ;
      ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "status" ] [ fhir:v "status.value" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1569"^^xsd:anyURI ;
fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1569>         ]       ] [
fhir:path [ fhir:v "status.value" ] ;
        ( fhir:code [
fhir:code [ fhir:v "completed" ]         ] )       ] )     ] [
fhir:type [ fhir:v "Procedure" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure>       ] ) ;
      ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "status" ] [ fhir:v "status.value" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1568"^^xsd:anyURI ;
fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1568>         ]       ] [
fhir:path [ fhir:v "status.value" ] ;
        ( fhir:code [
fhir:code [ fhir:v "completed" ]         ] )       ] )     ] [
fhir:type [ fhir:v "Coverage" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage>       ] ) ;
      ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "type" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"^^xsd:anyURI ;
fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591>         ]       ] )     ] [
fhir:type [ fhir:v "Condition" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition>       ] ) ;
      ( fhir:mustSupport [ fhir:v "code" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.67.1.101.1.128"^^xsd:anyURI ;
fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.67.1.101.1.128>         ]       ] )     ] [
fhir:type [ fhir:v "Observation" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observationnotdone"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observationnotdone>       ] ) ;
      ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "issued" ] [ fhir:v "issued.value" ] [ fhir:v "extension" ] [ fhir:v "status" ] [ fhir:v "status.value" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
        ( fhir:code [
a loinc:73831-0 ;
fhir:system [
fhir:v "http://loinc.org"^^xsd:anyURI ;
fhir:l <http://loinc.org>           ] ;
fhir:code [ fhir:v "73831-0" ] ;
fhir:display [ fhir:v "Adolescent depression screening assessment" ]         ] )       ] )     ] [
fhir:type [ fhir:v "Observation" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observationnotdone"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observationnotdone>       ] ) ;
      ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "issued" ] [ fhir:v "issued.value" ] [ fhir:v "extension" ] [ fhir:v "status" ] [ fhir:v "status.value" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
        ( fhir:code [
a loinc:73832-8 ;
fhir:system [
fhir:v "http://loinc.org"^^xsd:anyURI ;
fhir:l <http://loinc.org>           ] ;
fhir:code [ fhir:v "73832-8" ] ;
fhir:display [ fhir:v "Adult depression screening assessment" ]         ] )       ] )     ] )
  ] ) ; # 
  fhir:extension ( [
fhir:url [
fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements>     ] ;
fhir:value [
a fhir:Canonical ;
fhir:v "#effective-data-requirements"^^xsd:anyURI ;
fhir:l <#effective-data-requirements>     ]
  ] ) ; # 
  fhir:url [
fhir:v "https://madie.cms.gov/Measure/PCSDepressionScreenAndFollowUpFHIR"^^xsd:anyURI ;
fhir:l <https://madie.cms.gov/Measure/PCSDepressionScreenAndFollowUpFHIR>
  ] ; # 
  fhir:identifier ( [
fhir:use [ fhir:v "usual" ] ;
fhir:type [
      ( fhir:coding [
fhir:system [
fhir:v "http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type>         ] ;
fhir:code [ fhir:v "short-name" ]       ] )     ] ;
fhir:system [
fhir:v "https://madie.cms.gov/measure/shortName"^^xsd:anyURI ;
fhir:l <https://madie.cms.gov/measure/shortName>     ] ;
fhir:value [ fhir:v "CMS2FHIR" ]
  ] [
fhir:use [ fhir:v "official" ] ;
fhir:type [
      ( fhir:coding [
fhir:system [
fhir:v "http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type>         ] ;
fhir:code [ fhir:v "version-independent" ]       ] )     ] ;
fhir:system [
fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ;
fhir:l <urn:ietf:rfc:3986>     ] ;
fhir:value [ fhir:v "urn:uuid:deb30835-dbec-4f11-aab0-3a282040e37c" ]
  ] [
fhir:use [ fhir:v "official" ] ;
fhir:type [
      ( fhir:coding [
fhir:system [
fhir:v "http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type>         ] ;
fhir:code [ fhir:v "version-specific" ]       ] )     ] ;
fhir:system [
fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ;
fhir:l <urn:ietf:rfc:3986>     ] ;
fhir:value [ fhir:v "urn:uuid:7cb8ac66-85c4-489b-aa4a-af861d69c9a5" ]
  ] [
fhir:use [ fhir:v "official" ] ;
fhir:type [
      ( fhir:coding [
fhir:system [
fhir:v "http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type>         ] ;
fhir:code [ fhir:v "publisher" ]       ] )     ] ;
fhir:system [
fhir:v "https://madie.cms.gov/measure/cmsId"^^xsd:anyURI ;
fhir:l <https://madie.cms.gov/measure/cmsId>     ] ;
fhir:value [ fhir:v "2FHIR" ] ;
fhir:assigner [
fhir:display [ fhir:v "CMS" ]     ]
  ] ) ; # 
  fhir:version [ fhir:v "0.2.000"] ; # 
  fhir:name [ fhir:v "PCSDepressionScreenAndFollowUpFHIR"] ; # 
  fhir:title [ fhir:v "Preventive Care and Screening: Screening for Depression and Follow-Up PlanFHIR"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:experimental [ fhir:v false] ; # 
  fhir:date [ fhir:v "2026-03-13T01:50:42+00:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "Centers for Medicare &amp; Medicaid Services (CMS)"] ; # 
  fhir:contact ( [
    ( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "https://www.cms.gov/" ]     ] )
  ] ) ; # 
  fhir:description [ fhir:v "Percentage of patients aged 12 years and older screened for depression on the date of the encounter or up to 14 days prior to the date of the encounter using an age-appropriate standardized depression screening tool AND if positive a follow-up plan is documented on the date of or up to two days after the date of the qualifying encounter."] ; # 
  fhir:purpose [ fhir:v "UNKNOWN"] ; # 
  fhir:usage [ fhir:v "The intent of the measure is to screen all patients for depression except those with a diagnosis of bipolar disorder. Patients who have ever been diagnosed with bipolar disorder prior to the qualifying encounter will be excluded from the measure regardless of whether the diagnosis is active or not.  A depression screen is completed on the date of the encounter or up to 14 calendar days prior to the date of the encounter using an age-appropriate standardized depression screening tool AND if positive, a follow-up plan must be documented on the date of or up to two calendar days after the date of the encounter, such as referral to a provider for additional evaluation, pharmacological interventions, or other interventions for the treatment of depression. An example to illustrate the follow-up plan documentation timing: if the encounter is on a Monday from 3-4 pm (day 0) and the patient screens positive, the clinician has through anytime on Wednesday (day 2) to complete follow-up plan documentation.  This measure does not require documentation of a specific score, just whether results of the normalized and validated depression screening tool used are considered positive or negative. Each standardized screening tool provides guidance on whether a particular score is considered positive for depression.    This eCQM is a patient-based measure. Depression screening is required once per measurement period, not at all encounters.  Screening Tools:  -  An age-appropriate, standardized, and validated depression screening tool must be used for numerator compliance.  -  The name of the age-appropriate standardized depression screening tool utilized must be documented in the medical record.  -  The depression screening must be reviewed and addressed by the provider, filing the code, on the date of the encounter. Positive pre-screening results indicating a patient is at high risk for self-harm should receive more urgent intervention as determined by the provider practice.  -  The screening should occur during a qualifying encounter or up to 14 calendar days prior to the date of the qualifying encounter.  -  The measure assesses the most recent depression screening completed either during the qualifying encounter or within the 14 calendar days prior to that encounter. Therefore, a clinician would not be able to complete another screening at the time of the encounter to count towards a follow-up, because that would serve as the most recent screening. In order to satisfy the follow-up requirement for a patient screening positively, the eligible clinician would need to provide one of the aforementioned follow-up actions, which does not include use of a standardized depression screening tool.  Follow-Up Plan: The follow-up plan MUST still be provided for and discussed with the patient during the qualifying encounter used to evaluate the numerator. However, documentation of the follow-up plan can occur up to two calendar days after the qualifying encounter, in accordance with the policies of an eligible clinician or provider’s practice or health system. All services should be documented during, or as soon as practicable, after the qualifying encounter in order to maintain an accurate medical record.  The follow-up plan must be related to a positive depression screening, for example: \"Patient referred for psychiatric evaluation due to positive depression screening.\"  Examples of a follow-up plan include but are not limited to:   -  Referral to a provider or program for further evaluation for depression, for example, referral to a psychiatrist, psychiatric nurse practitioner, psychologist, clinical social worker, mental health counselor, or other mental health service such as family or group therapy, support group, depression management program, or other service for treatment of depression  -  Other interventions designed to treat depression such as behavioral health evaluation, psychotherapy, pharmacological interventions, or additional treatment options  Should a patient screen positive for depression, a clinician should: -  Only order pharmacological intervention when appropriate and after sufficient diagnostic evaluation. However, for the purposes of this measure, additional screening and assessment during the qualifying encounter will not qualify as a follow-up plan. -  Opt to complete a suicide risk assessment when appropriate and based on individual patient characteristics. However, for the purposes of this measure, a suicide risk assessment or an additional screening using a standardized tool will not qualify as a follow-up plan.  This FHIR-based measure has been derived from the QDM-based measure: CMS2v14. Please refer to the HL7 QI-Core Implementation Guide (https://hl7.org/fhir/us/qicore/STU4.1.1/) for more information on QI-Core and mapping recommendations from QDM to QI-Core 4.1.1 (https://hl7.org/fhir/us/qicore/STU4.1.1/qdm-to-qicore.html)."] ; # 
  fhir:copyright [ fhir:v "Limited proprietary coding is contained in the measure specifications for convenience. Users of the proprietary code sets should obtain all necessary licenses from the owners of these code sets.   CPT(R) contained in the Measure specifications is copyright 2004-2023 American Medical Association. LOINC(R) is copyright 2004-2023 Regenstrief Institute, Inc. This material contains SNOMED Clinical Terms(R) (SNOMED CT[R]) copyright 2004-2023 International Health Terminology Standards Development Organization. ICD-10 is copyright 2023 World Health Organization. All Rights Reserved."] ; # 
  fhir:effectivePeriod [
fhir:start [ fhir:v "2025-01-01"^^xsd:date ] ;
fhir:end [ fhir:v "2025-12-31"^^xsd:date ]
  ] ; # 
  fhir:author ( [
fhir:name [ fhir:v "Mathematica" ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "https://www.mathematica.org/" ]     ] )
  ] ) ; # 
  fhir:library ( [
fhir:v "https://madie.cms.gov/Library/PCSDepressionScreenAndFollowUpFHIR"^^xsd:anyURI ;
fhir:l <https://madie.cms.gov/Library/PCSDepressionScreenAndFollowUpFHIR>
  ] ) ; # 
  fhir:disclaimer [ fhir:v "These performance measures are not clinical guidelines and do not establish a standard of medical care, and have not been tested for all potential applications.  THE MEASURES AND SPECIFICATIONS ARE PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND.  Due to technical limitations, registered trademarks are indicated by (R) or [R] and unregistered trademarks are indicated by (TM) or [TM]."] ; # 
  fhir:scoring [
    ( fhir:coding [
fhir:system [
fhir:v "http://terminology.hl7.org/CodeSystem/measure-scoring"^^xsd:anyURI ;
fhir:l <http://terminology.hl7.org/CodeSystem/measure-scoring>       ] ;
fhir:code [ fhir:v "proportion" ] ;
fhir:display [ fhir:v "Proportion" ]     ] ) ;
fhir:text [ fhir:v "Proportion" ]
  ] ; # 
  fhir:rationale [ fhir:v "Depression affects more than two hundred sixty million people across the world and is a leading cause of disability, with a variety of depressive disorders that are independent risk factors for chronic diseases, such as cardiovascular disease and diabetes, lending screening for depression as paramount to identify depressive disorders that can affect the most vulnerable populations (Costantini et al., 2021). Results from a 2018 U.S. survey indicated that 14.4 percent of adolescents (3.5 million adolescents) had a major depressive episode (MDE) in the past year, with nine percent of adolescents (2.4 million adolescents) having one MDE with severe impairment (Substance Abuse and Mental Health Services Administration, 2019). The odds of a diagnosis of depression are believed to be 2.6 times greater for children and adolescents exposed to trauma as compared to those unexposed or less exposed (Vibhakar et al., 2019). Children and teens with major depressive disorder (MDD) have been found to have difficulty carrying out their daily activities, relating to others, growing up healthy, and are at an increased risk of suicide (Siu on behalf of the U.S. Preventive Services Task Force [USPSTF], 2016).   The same 2018 study indicated that 7.2 percent of adults aged 18 or older (17.7 million adults) had at least one MDE with 4.7 percent of adults (11.5 million adults) having one MDE with severe impairment in the past year (Substance Abuse and Mental Health Services Administration, 2019). Moreover, it is estimated 22.9 percent of adult patients with chronic pain (2.2 million adults) were diagnosed with comorbid depression from 2011 to 2015, with an upward trend of prevalence among Black Americans, patients aged 65 to 84 years old, Medicare and Medicaid insured patients, and patients from zip code areas with low annual household incomes (Orhurhu et al., 2019).   Depression and other mood disorders, such as bipolar disorder and anxiety disorders, especially during the perinatal period, can have devastating effects on women, infants, and families (American College of Obstetricians and Gynecologists, 2018). It's estimated that the global prevalence of antenatal (or perinatal) depression ranges from 15 to 65 percent, with current or previous exposure to abuse and violence, lack of social support, and family history of mental disorders being risk factors. Depressive symptoms measured during pregnancy have been shown to influence the quality of the postpartum mother-infant relationship (Hazell Raine et al., 2020). Additionally, the risk of low birth weight and preterm birth is higher among infants born from depressed mothers (Dadi, Miller, Bisetegn, and Mwanri, 2020).  Negative outcomes associated with depression make it crucial to screen in order to identify and treat depression in its early stages. Multiple social costs of depression have been identified, such as reduced educational achievements, poor financial success and role performance, higher amount of days out of role, and increased risk of job loss (Costantini et al., 2021). Depression also imposes significant economic burden through direct and indirect costs, supporting the need for regular depression screening. \"In the United States, an estimated $22.8 billion was spent on depression treatment in 2009, and lost productivity cost an additional estimated $23 billion in 2011\" (Siu and USPSTF, 2016, p. 383-384).   Numerous studies have found significant disparities in depression prevalence and treatment among racial/ethnic minorities. One study revealed that Indigenous adults are at a high risk for posttraumatic stress disorder, depression, suicide, substance use disorder, and concurrent behavioral health disorders secondary to these initial health problems (Ka’apu and Burnette, 2019). Additionally, though rates of depression are lower among Blacks and Hispanics than among whites, depression among Blacks and Hispanics is likely to be more recurrent. Furthermore, 48 percent of whites receive mental health services, compared to just 31 percent of Blacks and Hispanics, and 22 percent of Asians (American Psychiatric Association, 2017). Asian Americans and Black Americans are also significantly more likely to utilize emergency rooms for depression treatment, which contributes to inconsistent follow-up care (Lee et al., 2014).   While primary care providers (PCPs) serve as the first line of defense in the detection of depression, studies show that PCPs fail to recognize up to 46 percent of depressed patients (Borner et al., 2010). \"In nationally representative U.S. surveys, about eight percent of adolescents reported having major depression in the past year. Only 36 percent to 44 percent of children and adolescents with depression receive treatment, suggesting that a majority of depressed youth are undiagnosed and untreated\" (Siu on behalf of USPSTF, 2016). Furthermore, evidence supports that screening for depression in pregnant and postpartum women is of moderate net benefit, and treatment options for positive depression screening should be available for patients twelve and older including pregnant and postpartum women.   This measure seeks to align with USPSTF clinical guideline recommendations as well as the Healthy People 2030 recommendation to increase the proportion of adolescents and adults who are screened for depression and if positive, receive appropriate treatment (U.S. Preventive Services Task Force, 2016).  For patients depression, rescreening has been shown to be an effective tool for measuring response to therapy, therefore influencing appropriate care adjustments in the treatment of depression (Anderson et al., 2002). Chen et al. noted that when patients were re-administered a screening tool after at least eight weeks after starting treatment, their \"score gave primary care physicians a clear idea about the nature of patients' depressive symptoms and gave both the patient and the physician an indication of treatment progress\" (Chen et al., 2006)."] ; # 
  fhir:clinicalRecommendationStatement [ fhir:v "Adolescent Recommendation (12-18 years): \"The USPSTF recommends screening for MDD in adolescents aged 12 to 18 years. Screening should be implemented with adequate systems in place to ensure accurate diagnosis, effective treatment, and appropriate follow-up (B recommendation)\" (Siu on behalf of USPSTF, 2016).  Adult Recommendation (18 years and older): \"The USPSTF recommends screening for depression in the general adult population, including pregnant and postpartum women. Screening should be implemented with adequate systems in place to ensure accurate diagnosis, effective treatment, and appropriate follow-up (B recommendation)\" (Siu and USPSTF, 2016).  “The USPSTF recommends that clinicians provide or refer pregnant and postpartum persons who are at increased risk of perinatal depression to counseling interventions (B recommendation)” (U.S. Preventive Services Task Force, 2019).   The American College of Obstetricians and Gynecologists (ACOG) provides the following recommendation: \"All obstetrician–gynecologists and other obstetric care providers should complete a full assessment of mood and emotional well-being (including screening for postpartum depression and anxiety with a validated instrument) during the comprehensive postpartum visit for each patient\" (American College of Obstetricians and Gynecologists, 2018).   The Institute for Clinical Systems Improvement (ICSI) health care guideline, Adult Depression in Primary Care, provides the following recommendations: 1. \"Clinicians should routinely screen all adults for depression using a standardized instrument.\" 2. \"Clinicians should establish and maintain follow-up with patients.\" 3. \"Clinicians should screen and monitor depression in pregnant and post-partum women\" (Trangle et al., 2016)."] ; # 
  fhir:group ( [
fhir:id [ fhir:v "64ef8dd856d636294b157c6f" ] ;
    ( fhir:extension [
fhir:url [
fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoring"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoring>       ] ;
fhir:value [
a fhir:CodeableConcept ;
        ( fhir:coding [
fhir:system [
fhir:v "http://terminology.hl7.org/CodeSystem/measure-scoring"^^xsd:anyURI ;
fhir:l <http://terminology.hl7.org/CodeSystem/measure-scoring>           ] ;
fhir:code [ fhir:v "proportion" ] ;
fhir:display [ fhir:v "Proportion" ]         ] )       ]     ] [
fhir:url [
fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis>       ] ;
fhir:value [
a fhir:Code ;
fhir:v "boolean"       ]     ] [
fhir:url [
fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-type"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-type>       ] ;
fhir:value [
a fhir:CodeableConcept ;
        ( fhir:coding [
fhir:system [
fhir:v "http://terminology.hl7.org/CodeSystem/measure-type"^^xsd:anyURI ;
fhir:l <http://terminology.hl7.org/CodeSystem/measure-type>           ] ;
fhir:code [ fhir:v "process" ] ;
fhir:display [ fhir:v "Process" ]         ] )       ]     ] [
fhir:url [
fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-rateAggregation"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-rateAggregation>       ] ;
fhir:value [
a fhir:Code ;
fhir:v "None"       ]     ] [
fhir:url [
fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-improvementNotation"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-improvementNotation>       ] ;
fhir:value [
a fhir:CodeableConcept ;
        ( fhir:coding [
fhir:system [
fhir:v "http://terminology.hl7.org/CodeSystem/measure-improvement-notation"^^xsd:anyURI ;
fhir:l <http://terminology.hl7.org/CodeSystem/measure-improvement-notation>           ] ;
fhir:code [ fhir:v "decrease" ] ;
fhir:display [ fhir:v "increase" ]         ] )       ]     ] ) ;
fhir:description [ fhir:v "Percentage of patients aged 12 years and older screened for depression on the date of the encounter or up to 14 days prior to the date of the encounter using an age-appropriate standardized depression screening tool AND if positive a follow-up plan is documented on the date of or up to two days after the date of the qualifying encounter." ] ;
    ( fhir:population [
fhir:id [ fhir:v "34AE0037-E4E3-443E-B7A7-ACE09BF46826" ] ;
fhir:code [
        ( fhir:coding [
fhir:system [
fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ;
fhir:l <http://terminology.hl7.org/CodeSystem/measure-population>           ] ;
fhir:code [ fhir:v "initial-population" ] ;
fhir:display [ fhir:v "Initial Population" ]         ] )       ] ;
fhir:description [ fhir:v "All patients aged 12 years and older at the beginning of the measurement period with at least one qualifying encounter during the measurement period" ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "Initial Population" ]       ]     ] [
fhir:id [ fhir:v "13152749-0C35-476A-89F2-5C579BD9BE4A" ] ;
fhir:code [
        ( fhir:coding [
fhir:system [
fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ;
fhir:l <http://terminology.hl7.org/CodeSystem/measure-population>           ] ;
fhir:code [ fhir:v "denominator" ] ;
fhir:display [ fhir:v "Denominator" ]         ] )       ] ;
fhir:description [ fhir:v "Equals Initial Population" ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "Denominator" ]       ]     ] [
fhir:id [ fhir:v "5001B9F9-5ECE-4E40-9B3C-46161FA366F9" ] ;
fhir:code [
        ( fhir:coding [
fhir:system [
fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ;
fhir:l <http://terminology.hl7.org/CodeSystem/measure-population>           ] ;
fhir:code [ fhir:v "denominator-exclusion" ] ;
fhir:display [ fhir:v "Denominator Exclusion" ]         ] )       ] ;
fhir:description [ fhir:v "Patients who have ever been diagnosed with bipolar disorder at any time prior to the qualifying encounter" ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "Denominator Exclusions" ]       ]     ] [
fhir:id [ fhir:v "BFE91CA3-DC28-49B0-AD42-97D6808E7689" ] ;
fhir:code [
        ( fhir:coding [
fhir:system [
fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ;
fhir:l <http://terminology.hl7.org/CodeSystem/measure-population>           ] ;
fhir:code [ fhir:v "numerator" ] ;
fhir:display [ fhir:v "Numerator" ]         ] )       ] ;
fhir:description [ fhir:v "Patients screened for depression on the date of the encounter or up to 14 days prior to the date of the encounter using an age-appropriate standardized tool AND if positive, a follow-up plan is documented on the date of or up to two days after the date of the qualifying encounter" ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "Numerator" ]       ]     ] [
fhir:id [ fhir:v "0411DA66-4881-4FC9-B4CE-73973320F1DC" ] ;
fhir:code [
        ( fhir:coding [
fhir:system [
fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ;
fhir:l <http://terminology.hl7.org/CodeSystem/measure-population>           ] ;
fhir:code [ fhir:v "denominator-exception" ] ;
fhir:display [ fhir:v "Denominator Exception" ]         ] )       ] ;
fhir:description [ fhir:v "Patient Reason(s) Patient refuses to participate in or complete the depression screening OR Medical Reason(s)  Documentation of medical reason for not screening patient for depression (e.g., cognitive, functional, or motivational limitations that may impact accuracy of results; patient is in an urgent or emergent situation where time is of the essence and to delay treatment would jeopardize the patient's health status)" ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "Denominator Exceptions" ]       ]     ] )
  ] ) ; # 
  fhir:supplementalData ( [
fhir:id [ fhir:v "sde-ethnicity" ] ;
    ( fhir:usage [
      ( fhir:coding [
fhir:system [
fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ;
fhir:l <http://terminology.hl7.org/CodeSystem/measure-data-usage>         ] ;
fhir:code [ fhir:v "supplemental-data" ]       ] )     ] ) ;
fhir:description [ fhir:v "SDE Ethnicity" ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "SDE Ethnicity" ]     ]
  ] [
fhir:id [ fhir:v "sde-payer" ] ;
    ( fhir:usage [
      ( fhir:coding [
fhir:system [
fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ;
fhir:l <http://terminology.hl7.org/CodeSystem/measure-data-usage>         ] ;
fhir:code [ fhir:v "supplemental-data" ]       ] )     ] ) ;
fhir:description [ fhir:v "SDE Payer" ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "SDE Payer" ]     ]
  ] [
fhir:id [ fhir:v "sde-race" ] ;
    ( fhir:usage [
      ( fhir:coding [
fhir:system [
fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ;
fhir:l <http://terminology.hl7.org/CodeSystem/measure-data-usage>         ] ;
fhir:code [ fhir:v "supplemental-data" ]       ] )     ] ) ;
fhir:description [ fhir:v "SDE Race" ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "SDE Race" ]     ]
  ] [
fhir:id [ fhir:v "sde-sex" ] ;
    ( fhir:usage [
      ( fhir:coding [
fhir:system [
fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ;
fhir:l <http://terminology.hl7.org/CodeSystem/measure-data-usage>         ] ;
fhir:code [ fhir:v "supplemental-data" ]       ] )     ] ) ;
fhir:description [ fhir:v "SDE Sex" ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "SDE Sex" ]     ]
  ] ) . #