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 - JSON Representation

Draft as of 2026-03-13

Raw json | Download

    {
      "resourceType" : "Measure",
      "id" : "PCSDepressionScreenAndFollowUpFHIR",
      "meta" : {
        "profile" : [
          🔗 "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm"🔗 ,
          "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/publishable-measure-cqfm"🔗 ,
          "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/executable-measure-cqfm"
        ]
      },
      "text" : {
        "status" : "extensions",
        "div" : "<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. &quot;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&quot; (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). &quot;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&quot; (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 &quot;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&quot; (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): &quot;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)&quot; (Siu on behalf of USPSTF, 2016).  Adult Recommendation (18 years and older): &quot;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)&quot; (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: &quot;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&quot; (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. &quot;Clinicians should routinely screen all adults for depression using a standardized instrument.&quot; 2. &quot;Clinicians should establish and maintain follow-up with patients.&quot; 3. &quot;Clinicians should screen and monitor depression in pregnant and post-partum women&quot; (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: &quot;Patient referred for psychiatric evaluation due to positive depression screening.&quot;  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 &quot;Initial Population&quot;:\n  &quot;Patient Age 12 Years or Older at Start of Measurement Period&quot;\n    and exists ( &quot;Qualifying Encounter During Measurement Period&quot; )</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 &quot;Denominator&quot;:\n  &quot;Initial Population&quot;</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 &quot;Denominator Exclusions&quot;:\n  exists &quot;History of Bipolar Diagnosis Before Qualifying Encounter&quot;</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 &quot;Denominator Exceptions&quot;:\n  ( exists &quot;Medical or Patient Reason for Not Screening Adolescent for Depression&quot;\n      and not &quot;Has Adolescent Depression Screening&quot;\n  )\n    or ( exists &quot;Medical or Patient Reason for Not Screening Adult for Depression&quot;\n        and not &quot;Has Adult Depression Screening&quot;\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 &quot;Numerator&quot;:\n  ( &quot;Patient Age 12 to 16 Years at Start of Measurement Period&quot;\n      and ( &quot;Has Most Recent Adolescent Screening Negative&quot;\n          or exists &quot;Most Recent Adolescent Depression Screening Positive and Follow Up Provided&quot;\n      )\n  )\n    or ( &quot;Patient Age 17 Years at Start of Measurement Period&quot;\n        and ( &quot;Has Most Recent Adolescent Screening Negative&quot;\n            or exists &quot;Most Recent Adolescent Depression Screening Positive and Follow Up Provided&quot;\n            or &quot;Has Most Recent Adult Screening Negative&quot;\n            or exists &quot;Most Recent Adult Depression Screening Positive and Follow Up Provided&quot;\n        )\n    )\n    or ( &quot;Patient Age 18 Years or Older at Start of Measurement Period&quot;\n        and ( &quot;Has Most Recent Adult Screening Negative&quot;\n            or exists &quot;Most Recent Adult Depression Screening Positive and Follow Up Provided&quot;\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 &quot;SDE Sex&quot;:\n  case\n    when Patient.gender = 'male' then &quot;M&quot;\n    when Patient.gender = 'female' then &quot;F&quot;\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 &quot;SDE Payer&quot;:\n  [Coverage: type in &quot;Payer Type&quot;] 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 &quot;SDE Ethnicity&quot;:\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 &quot;SDE Race&quot;:\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 &quot;SDE Sex&quot;:\n  SDE.&quot;SDE Sex&quot;</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 &quot;Patient Age 12 to 16 Years at Start of Measurement Period&quot;:\n  AgeInYearsAt(date from start of &quot;Measurement Period&quot;) 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 &quot;Qualifying Encounter During Measurement Period&quot;:\n  ( [Encounter: &quot;Encounter to Screen for Depression&quot;]\n    union [Encounter: &quot;Physical Therapy Evaluation&quot;]\n    union [Encounter: &quot;Telephone Visits&quot;] ) QualifyingEncounter\n    where QualifyingEncounter.period during day of &quot;Measurement Period&quot;\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 &quot;Most Recent Adolescent Depression Screening&quot;:\n  Last([Observation: &quot;Adolescent depression screening assessment&quot;] AdolescentDepressionScreening\n      with &quot;Qualifying Encounter During Measurement Period&quot; 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 &quot;Has Most Recent Adolescent Screening Negative&quot;:\n  ( &quot;Most Recent Adolescent Depression Screening&quot; AdolescentScreen\n      where AdolescentScreen.value ~ &quot;Depression screening negative (finding)&quot;\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 &quot;Follow Up Intervention for Positive Adolescent Depression Screening&quot;:\n  ( ( [MedicationRequest: &quot;Adolescent Depression Medications&quot;] AdolescentMed\n        where AdolescentMed.status in { 'active', 'completed' }\n          and AdolescentMed.intent = 'order'\n    )\n      union ( [ServiceRequest: &quot;Referral for Adolescent Depression&quot;] AdolescentReferral\n          where AdolescentReferral.status in { 'active', 'completed' }\n      )\n      union ( [Procedure: &quot;Follow Up for Adolescent Depression&quot;] 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 &quot;Most Recent Adolescent Depression Screening Positive and Follow Up Provided&quot;:\n  from\n    &quot;Most Recent Adolescent Depression Screening&quot; LastAdolescentScreen,\n    &quot;Follow Up Intervention for Positive Adolescent Depression Screening&quot; FollowUpPositiveAdolescentScreen,\n    &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter\n    where LastAdolescentScreen.effective.toInterval ( ) starts 14 days or less on or before day of start of QualifyingEncounter.period\n      and LastAdolescentScreen.value ~ &quot;Depression screening positive (finding)&quot;\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 &quot;Measurement Period&quot; )</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 &quot;Patient Age 17 Years at Start of Measurement Period&quot;:\n  AgeInYearsAt(date from start of &quot;Measurement Period&quot;) = 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 &quot;Most Recent Adult Depression Screening&quot;:\n  Last([Observation: &quot;Adult depression screening assessment&quot;] AdultDepressionScreening\n      with &quot;Qualifying Encounter During Measurement Period&quot; 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 &quot;Has Most Recent Adult Screening Negative&quot;:\n  ( &quot;Most Recent Adult Depression Screening&quot; AdultScreen\n      where AdultScreen.value ~ &quot;Depression screening negative (finding)&quot;\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 &quot;Follow Up Intervention for Positive Adult Depression Screening&quot;:\n  ( ( [MedicationRequest: &quot;Adult Depression Medications&quot;] AdultMed\n        where AdultMed.status in { 'active', 'completed' }\n          and AdultMed.intent = 'order'\n    )\n      union ( [ServiceRequest: &quot;Referral for Adult Depression&quot;] AdultReferral\n          where AdultReferral.status in { 'active', 'completed' }\n      )\n      union ( [Procedure: &quot;Follow Up for Adult Depression&quot;] 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 &quot;Most Recent Adult Depression Screening Positive and Follow Up Provided&quot;:\n  from\n    &quot;Most Recent Adult Depression Screening&quot; LastAdultScreen,\n    &quot;Follow Up Intervention for Positive Adult Depression Screening&quot; FollowUpPositiveAdultScreen,\n    &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter\n    where LastAdultScreen.effective.toInterval ( ) starts 14 days or less on or before day of start of QualifyingEncounter.period\n      and LastAdultScreen.value ~ &quot;Depression screening positive (finding)&quot;\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 &quot;Measurement Period&quot; )</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 &quot;Patient Age 18 Years or Older at Start of Measurement Period&quot;:\n  AgeInYearsAt(date from start of &quot;Measurement Period&quot;) &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 &quot;Numerator&quot;:\n  ( &quot;Patient Age 12 to 16 Years at Start of Measurement Period&quot;\n      and ( &quot;Has Most Recent Adolescent Screening Negative&quot;\n          or exists &quot;Most Recent Adolescent Depression Screening Positive and Follow Up Provided&quot;\n      )\n  )\n    or ( &quot;Patient Age 17 Years at Start of Measurement Period&quot;\n        and ( &quot;Has Most Recent Adolescent Screening Negative&quot;\n            or exists &quot;Most Recent Adolescent Depression Screening Positive and Follow Up Provided&quot;\n            or &quot;Has Most Recent Adult Screening Negative&quot;\n            or exists &quot;Most Recent Adult Depression Screening Positive and Follow Up Provided&quot;\n        )\n    )\n    or ( &quot;Patient Age 18 Years or Older at Start of Measurement Period&quot;\n        and ( &quot;Has Most Recent Adult Screening Negative&quot;\n            or exists &quot;Most Recent Adult Depression Screening Positive and Follow Up Provided&quot;\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 &quot;Patient Age 12 Years or Older at Start of Measurement Period&quot;:\n  AgeInYearsAt(date from start of &quot;Measurement Period&quot;) &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 &quot;Initial Population&quot;:\n  &quot;Patient Age 12 Years or Older at Start of Measurement Period&quot;\n    and exists ( &quot;Qualifying Encounter During Measurement Period&quot; )</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 &quot;Denominator&quot;:\n  &quot;Initial Population&quot;</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 &quot;SDE Payer&quot;:\n  SDE.&quot;SDE Payer&quot;</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 &quot;SDE Ethnicity&quot;:\n  SDE.&quot;SDE Ethnicity&quot;</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 &quot;History of Bipolar Diagnosis Before Qualifying Encounter&quot;:\n  [Condition: &quot;Bipolar Disorder&quot;] BipolarDiagnosis\n    with &quot;Qualifying Encounter During Measurement Period&quot; 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 &quot;Denominator Exclusions&quot;:\n  exists &quot;History of Bipolar Diagnosis Before Qualifying Encounter&quot;</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 &quot;SDE Race&quot;:\n  SDE.&quot;SDE Race&quot;</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 &quot;Medical or Patient Reason for Not Screening Adolescent for Depression&quot;:\n  [ObservationNotDone: code ~ &quot;Adolescent depression screening assessment&quot;] NoAdolescentScreen\n    with &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter\n      such that NoAdolescentScreen.issued during QualifyingEncounter.period\n    where ( NoAdolescentScreen.notDoneReason ~ &quot;Depression screening declined (situation)&quot;\n        or NoAdolescentScreen.notDoneReason in &quot;Medical Reason&quot;\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 &quot;Has Adolescent Depression Screening&quot;:\n  exists ( [Observation: &quot;Adolescent depression screening assessment&quot;] AdolescentScreening\n      with &quot;Qualifying Encounter During Measurement Period&quot; 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 &quot;Medical or Patient Reason for Not Screening Adult for Depression&quot;:\n  [ObservationNotDone: code ~ &quot;Adult depression screening assessment&quot;] NoAdultScreen\n    with &quot;Qualifying Encounter During Measurement Period&quot; QualifyingEncounter\n      such that NoAdultScreen.issued during QualifyingEncounter.period\n    where ( NoAdultScreen.notDoneReason ~ &quot;Depression screening declined (situation)&quot;\n        or NoAdultScreen.notDoneReason in &quot;Medical Reason&quot;\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 &quot;Has Adult Depression Screening&quot;:\n  exists ( [Observation: &quot;Adult depression screening assessment&quot;] AdultScreening\n      with &quot;Qualifying Encounter During Measurement Period&quot; 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 &quot;Denominator Exceptions&quot;:\n  ( exists &quot;Medical or Patient Reason for Not Screening Adolescent for Depression&quot;\n      and not &quot;Has Adolescent Depression Screening&quot;\n  )\n    or ( exists &quot;Medical or Patient Reason for Not Screening Adult for Depression&quot;\n        and not &quot;Has Adult Depression Screening&quot;\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.&quot;start&quot; is null then\n            Interval(period.&quot;start&quot;.value, period.&quot;end&quot;.value]\n        else\n            Interval[period.&quot;start&quot;.value, period.&quot;end&quot;.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 ~ &quot;problem-list-item&quot;\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 ~ &quot;health-concern&quot;\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 ~ &quot;active&quot;\n  or condition.clinicalStatus ~ &quot;recurrence&quot;\n  or condition.clinicalStatus ~ &quot;relapse&quot; 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\tif condition.abatement is DateTime then\n\t  Interval[condition.abatement as DateTime, condition.abatement as DateTime]\n\telse if condition.abatement is Quantity then\n\t\tInterval[Patient.birthDate + (condition.abatement as Quantity),\n\t\t\tPatient.birthDate + (condition.abatement as Quantity) + 1 year)\n\telse if condition.abatement is Interval&lt;Quantity&gt; then\n\t  Interval[Patient.birthDate + (condition.abatement.low as Quantity),\n\t\t  Patient.birthDate + (condition.abatement.high as Quantity) + 1 year)\n\telse if condition.abatement is Interval&lt;DateTime&gt; then\n\t  Interval[condition.abatement.low, condition.abatement.high)\n\telse 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>"
      },
      "contained" : [
        {
          "resourceType" : "Library",
          "id" : "effective-data-requirements",
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
              "valueCoding" : {
                "system" : "http://hl7.org/fhir/administrative-gender",
                "code" : "M",
                "display" : "Male"
              }
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
              "valueCoding" : {
                "system" : "http://hl7.org/fhir/administrative-gender",
                "code" : "F",
                "display" : "Female"
              }
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
              "valueCoding" : {
                "system" : "http://loinc.org",
                "code" : "73831-0",
                "display" : "Adolescent depression screening assessment"
              }
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
              "valueCoding" : {
                "system" : "http://snomed.info/sct",
                "code" : "428171000124102",
                "display" : "Depression screening negative (finding)"
              }
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
              "valueCoding" : {
                "system" : "http://snomed.info/sct",
                "code" : "428181000124104",
                "display" : "Depression screening positive (finding)"
              }
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
              "valueCoding" : {
                "system" : "http://loinc.org",
                "code" : "73832-8",
                "display" : "Adult depression screening assessment"
              }
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
              "valueCoding" : {
                "system" : "http://terminology.hl7.org/CodeSystem/condition-category",
                "code" : "problem-list-item",
                "display" : "Problem List Item"
              }
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
              "valueCoding" : {
                "system" : "http://hl7.org/fhir/us/core/CodeSystem/condition-category",
                "code" : "health-concern",
                "display" : "Health Concern"
              }
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
              "valueCoding" : {
                "system" : "http://terminology.hl7.org/CodeSystem/condition-clinical",
                "code" : "active",
                "display" : "Active"
              }
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
              "valueCoding" : {
                "system" : "http://terminology.hl7.org/CodeSystem/condition-clinical",
                "code" : "recurrence",
                "display" : "Recurrence"
              }
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
              "valueCoding" : {
                "system" : "http://terminology.hl7.org/CodeSystem/condition-clinical",
                "code" : "relapse",
                "display" : "Relapse"
              }
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
              "valueCoding" : {
                "system" : "http://snomed.info/sct",
                "code" : "720834000",
                "display" : "Depression screening declined (situation)"
              }
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "SupplementalDataElements"
                },
                {
                  "url" : "name",
                  "valueString" : "SDE Sex"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"SDE Sex\":\n  case\n    when Patient.gender = 'male' then \"M\"\n    when Patient.gender = 'female' then \"F\"\n    else null\n  end"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 0
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "PCSDepressionScreenAndFollowUpFHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "SDE Sex"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"SDE Sex\":\n  SDE.\"SDE Sex\""
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 1
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "PCSDepressionScreenAndFollowUpFHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Patient Age 12 to 16 Years at Start of Measurement Period"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"Patient Age 12 to 16 Years at Start of Measurement Period\":\n  AgeInYearsAt(date from start of \"Measurement Period\") in Interval[12, 16]"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 2
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "PCSDepressionScreenAndFollowUpFHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Qualifying Encounter During Measurement Period"
                },
                {
                  "url" : "statement",
                  "valueString" : "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'"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 3
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "PCSDepressionScreenAndFollowUpFHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Most Recent Adolescent Depression Screening"
                },
                {
                  "url" : "statement",
                  "valueString" : "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  )"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 4
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "PCSDepressionScreenAndFollowUpFHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Has Most Recent Adolescent Screening Negative"
                },
                {
                  "url" : "statement",
                  "valueString" : "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"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 5
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "PCSDepressionScreenAndFollowUpFHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Follow Up Intervention for Positive Adolescent Depression Screening"
                },
                {
                  "url" : "statement",
                  "valueString" : "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  )"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 6
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "PCSDepressionScreenAndFollowUpFHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Most Recent Adolescent Depression Screening Positive and Follow Up Provided"
                },
                {
                  "url" : "statement",
                  "valueString" : "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\" )"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 7
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "PCSDepressionScreenAndFollowUpFHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Patient Age 17 Years at Start of Measurement Period"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"Patient Age 17 Years at Start of Measurement Period\":\n  AgeInYearsAt(date from start of \"Measurement Period\") = 17"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 8
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "PCSDepressionScreenAndFollowUpFHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Most Recent Adult Depression Screening"
                },
                {
                  "url" : "statement",
                  "valueString" : "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  )"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 9
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "PCSDepressionScreenAndFollowUpFHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Has Most Recent Adult Screening Negative"
                },
                {
                  "url" : "statement",
                  "valueString" : "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"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 10
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "PCSDepressionScreenAndFollowUpFHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Follow Up Intervention for Positive Adult Depression Screening"
                },
                {
                  "url" : "statement",
                  "valueString" : "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  )"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 11
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "PCSDepressionScreenAndFollowUpFHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Most Recent Adult Depression Screening Positive and Follow Up Provided"
                },
                {
                  "url" : "statement",
                  "valueString" : "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\" )"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 12
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "PCSDepressionScreenAndFollowUpFHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Patient Age 18 Years or Older at Start of Measurement Period"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"Patient Age 18 Years or Older at Start of Measurement Period\":\n  AgeInYearsAt(date from start of \"Measurement Period\") >= 18"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 13
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "PCSDepressionScreenAndFollowUpFHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Numerator"
                },
                {
                  "url" : "statement",
                  "valueString" : "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    )"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 14
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "PCSDepressionScreenAndFollowUpFHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Patient Age 12 Years or Older at Start of Measurement Period"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"Patient Age 12 Years or Older at Start of Measurement Period\":\n  AgeInYearsAt(date from start of \"Measurement Period\") >= 12"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 15
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "PCSDepressionScreenAndFollowUpFHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Initial Population"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"Initial Population\":\n  \"Patient Age 12 Years or Older at Start of Measurement Period\"\n    and exists ( \"Qualifying Encounter During Measurement Period\" )"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 16
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "PCSDepressionScreenAndFollowUpFHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Denominator"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"Denominator\":\n  \"Initial Population\""
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 17
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "SupplementalDataElements"
                },
                {
                  "url" : "name",
                  "valueString" : "SDE Payer"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"SDE Payer\":\n  [Coverage: type in \"Payer Type\"] Payer\n    return {\n      code: Payer.type,\n      period: Payer.period\n    }"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 18
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "PCSDepressionScreenAndFollowUpFHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "SDE Payer"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"SDE Payer\":\n  SDE.\"SDE Payer\""
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 19
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "SupplementalDataElements"
                },
                {
                  "url" : "name",
                  "valueString" : "SDE Ethnicity"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"SDE Ethnicity\":\n  Patient.ethnicity E\n    return Tuple {\n      codes: { E.ombCategory } union E.detailed,\n      display: E.text\n    }"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 20
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "PCSDepressionScreenAndFollowUpFHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "SDE Ethnicity"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"SDE Ethnicity\":\n  SDE.\"SDE Ethnicity\""
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 21
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "PCSDepressionScreenAndFollowUpFHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "History of Bipolar Diagnosis Before Qualifying Encounter"
                },
                {
                  "url" : "statement",
                  "valueString" : "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"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 22
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "PCSDepressionScreenAndFollowUpFHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Denominator Exclusions"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"Denominator Exclusions\":\n  exists \"History of Bipolar Diagnosis Before Qualifying Encounter\""
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 23
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "SupplementalDataElements"
                },
                {
                  "url" : "name",
                  "valueString" : "SDE Race"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"SDE Race\":\n  Patient.race R\n    return Tuple {\n      codes: R.ombCategory union R.detailed,\n      display: R.text\n    }"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 24
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "PCSDepressionScreenAndFollowUpFHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "SDE Race"
                },
                {
                  "url" : "statement",
                  "valueString" : "define \"SDE Race\":\n  SDE.\"SDE Race\""
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 25
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "PCSDepressionScreenAndFollowUpFHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Medical or Patient Reason for Not Screening Adolescent for Depression"
                },
                {
                  "url" : "statement",
                  "valueString" : "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'"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 26
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "PCSDepressionScreenAndFollowUpFHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Has Adolescent Depression Screening"
                },
                {
                  "url" : "statement",
                  "valueString" : "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  )"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 27
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "PCSDepressionScreenAndFollowUpFHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Medical or Patient Reason for Not Screening Adult for Depression"
                },
                {
                  "url" : "statement",
                  "valueString" : "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'"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 28
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "PCSDepressionScreenAndFollowUpFHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Has Adult Depression Screening"
                },
                {
                  "url" : "statement",
                  "valueString" : "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  )"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 29
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "PCSDepressionScreenAndFollowUpFHIR"
                },
                {
                  "url" : "name",
                  "valueString" : "Denominator Exceptions"
                },
                {
                  "url" : "statement",
                  "valueString" : "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    )"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 30
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "FHIRHelpers"
                },
                {
                  "url" : "name",
                  "valueString" : "ToInterval"
                },
                {
                  "url" : "statement",
                  "valueString" : "/*\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]"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 31
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "FHIRHelpers"
                },
                {
                  "url" : "name",
                  "valueString" : "ToString"
                },
                {
                  "url" : "statement",
                  "valueString" : "define function ToString(value uri): value.value"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 32
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "FHIRHelpers"
                },
                {
                  "url" : "name",
                  "valueString" : "ToCode"
                },
                {
                  "url" : "statement",
                  "valueString" : "/*\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        }"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 33
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "QICoreCommon"
                },
                {
                  "url" : "name",
                  "valueString" : "isProblemListItem"
                },
                {
                  "url" : "statement",
                  "valueString" : "/*\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  )"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 34
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "FHIRHelpers"
                },
                {
                  "url" : "name",
                  "valueString" : "ToConcept"
                },
                {
                  "url" : "statement",
                  "valueString" : "/*\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        }"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 35
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "QICoreCommon"
                },
                {
                  "url" : "name",
                  "valueString" : "isHealthConcern"
                },
                {
                  "url" : "statement",
                  "valueString" : "/*\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  )"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 36
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "QICoreCommon"
                },
                {
                  "url" : "name",
                  "valueString" : "prevalenceInterval"
                },
                {
                  "url" : "statement",
                  "valueString" : "/*\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]"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 37
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            },
            {
              "extension" : [
                {
                  "url" : "libraryName",
                  "valueString" : "QICoreCommon"
                },
                {
                  "url" : "name",
                  "valueString" : "abatementInterval"
                },
                {
                  "url" : "statement",
                  "valueString" : "/*\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\tif condition.abatement is DateTime then\n\t  Interval[condition.abatement as DateTime, condition.abatement as DateTime]\n\telse if condition.abatement is Quantity then\n\t\tInterval[Patient.birthDate + (condition.abatement as Quantity),\n\t\t\tPatient.birthDate + (condition.abatement as Quantity) + 1 year)\n\telse if condition.abatement is Interval<Quantity> then\n\t  Interval[Patient.birthDate + (condition.abatement.low as Quantity),\n\t\t  Patient.birthDate + (condition.abatement.high as Quantity) + 1 year)\n\telse if condition.abatement is Interval<DateTime> then\n\t  Interval[condition.abatement.low, condition.abatement.high)\n\telse null as Interval<DateTime>"
                },
                {
                  "url" : "displaySequence",
                  "valueInteger" : 38
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
            }
          ],
          "name" : "EffectiveDataRequirements",
          "status" : "active",
          "type" : {
            "coding" : [
              {
                "system" : "http://terminology.hl7.org/CodeSystem/library-type",
                "code" : "module-definition"
              }
            ]
          },
          "relatedArtifact" : [
            {
              "type" : "depends-on",
              "display" : "QICore model information",
              "resource" : "http://hl7.org/fhir/us/qicore/Library/QICore-ModelInfo|4.1.1"
            },
            {
              "type" : "depends-on",
              "display" : "Library SDE",
              "resource" : "https://madie.cms.gov/Library/SupplementalDataElements|3.5.000"
            },
            {
              "type" : "depends-on",
              "display" : "Library FHIRHelpers",
              "resource" : "https://madie.cms.gov/Library/FHIRHelpers|4.4.000"
            },
            {
              "type" : "depends-on",
              "display" : "Library QICoreCommon",
              "resource" : "https://madie.cms.gov/Library/QICoreCommon|2.1.000"
            },
            {
              "type" : "depends-on",
              "display" : "Code system AdministrativeGender",
              "resource" : "http://hl7.org/fhir/administrative-gender"
            },
            {
              "type" : "depends-on",
              "display" : "Code system LOINC",
              "resource" : "http://loinc.org"
            },
            {
              "type" : "depends-on",
              "display" : "Code system SNOMEDCT",
              "resource" : "http://snomed.info/sct"
            },
            {
              "type" : "depends-on",
              "display" : "Code system ConditionCategory",
              "resource" : "http://terminology.hl7.org/CodeSystem/condition-category"
            },
            {
              "type" : "depends-on",
              "display" : "Code system USCoreConditionCategoryExtensionCodes",
              "resource" : "http://hl7.org/fhir/us/core/CodeSystem/condition-category"
            },
            {
              "type" : "depends-on",
              "display" : "Code system ConditionClinicalStatusCodes",
              "resource" : "http://terminology.hl7.org/CodeSystem/condition-clinical"
            },
            {
              "type" : "depends-on",
              "display" : "Value set Encounter to Screen for Depression",
              "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1916"
            },
            {
              "type" : "depends-on",
              "display" : "Value set Physical Therapy Evaluation",
              "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1022"
            },
            {
              "type" : "depends-on",
              "display" : "Value set Telephone Visits",
              "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080"
            },
            {
              "type" : "depends-on",
              "display" : "Value set Adolescent Depression Medications",
              "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1567"
            },
            {
              "type" : "depends-on",
              "display" : "Value set Referral for Adolescent Depression",
              "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1570"
            },
            {
              "type" : "depends-on",
              "display" : "Value set Follow Up for Adolescent Depression",
              "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1569"
            },
            {
              "type" : "depends-on",
              "display" : "Value set Adult Depression Medications",
              "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1566"
            },
            {
              "type" : "depends-on",
              "display" : "Value set Referral for Adult Depression",
              "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1571"
            },
            {
              "type" : "depends-on",
              "display" : "Value set Follow Up for Adult Depression",
              "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1568"
            },
            {
              "type" : "depends-on",
              "display" : "Value set Payer Type",
              "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"
            },
            {
              "type" : "depends-on",
              "display" : "Value set Bipolar Disorder",
              "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.67.1.101.1.128"
            },
            {
              "type" : "depends-on",
              "display" : "Value set Medical Reason",
              "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1007"
            }
          ],
          "parameter" : [
            {
              "name" : "Measurement Period",
              "use" : "in",
              "min" : 0,
              "max" : "1",
              "type" : "Period"
            },
            {
              "name" : "SDE Sex",
              "use" : "out",
              "min" : 0,
              "max" : "1",
              "type" : "Coding"
            },
            {
              "name" : "Numerator",
              "use" : "out",
              "min" : 0,
              "max" : "1",
              "type" : "boolean"
            },
            {
              "name" : "Denominator",
              "use" : "out",
              "min" : 0,
              "max" : "1",
              "type" : "boolean"
            },
            {
              "name" : "SDE Payer",
              "use" : "out",
              "min" : 0,
              "max" : "*",
              "type" : "Resource"
            },
            {
              "name" : "Initial Population",
              "use" : "out",
              "min" : 0,
              "max" : "1",
              "type" : "boolean"
            },
            {
              "name" : "SDE Ethnicity",
              "use" : "out",
              "min" : 0,
              "max" : "1",
              "type" : "Resource"
            },
            {
              "name" : "Denominator Exclusions",
              "use" : "out",
              "min" : 0,
              "max" : "1",
              "type" : "boolean"
            },
            {
              "name" : "SDE Race",
              "use" : "out",
              "min" : 0,
              "max" : "1",
              "type" : "Resource"
            },
            {
              "name" : "Denominator Exceptions",
              "use" : "out",
              "min" : 0,
              "max" : "1",
              "type" : "boolean"
            }
          ],
          "dataRequirement" : [
            {
              "type" : "Patient",
              "profile" : [
                🔗 "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"
              ],
              "mustSupport" : [
                "ethnicity",
                "race"
              ]
            },
            {
              "type" : "Encounter",
              "profile" : [
                🔗 "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"
              ],
              "mustSupport" : [
                "type",
                "period",
                "status",
                "status.value"
              ],
              "codeFilter" : [
                {
                  "path" : "type",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1916"
                }
              ]
            },
            {
              "type" : "Encounter",
              "profile" : [
                🔗 "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"
              ],
              "mustSupport" : [
                "type",
                "period",
                "status",
                "status.value"
              ],
              "codeFilter" : [
                {
                  "path" : "type",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1022"
                }
              ]
            },
            {
              "type" : "Encounter",
              "profile" : [
                🔗 "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"
              ],
              "mustSupport" : [
                "type",
                "period",
                "status",
                "status.value"
              ],
              "codeFilter" : [
                {
                  "path" : "type",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080"
                }
              ]
            },
            {
              "type" : "Observation",
              "profile" : [
                🔗 "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation"
              ],
              "mustSupport" : [
                "code",
                "effective",
                "value",
                "status",
                "status.value"
              ],
              "codeFilter" : [
                {
                  "path" : "code",
                  "code" : [
                    {
                      "system" : "http://loinc.org",
                      "code" : "73831-0",
                      "display" : "Adolescent depression screening assessment"
                    }
                  ]
                },
                {
                  "path" : "status.value",
                  "code" : [
                    {
                      "code" : "final"
                    }
                  ]
                }
              ]
            },
            {
              "type" : "Observation",
              "profile" : [
                🔗 "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation"
              ],
              "mustSupport" : [
                "code",
                "effective",
                "value",
                "status",
                "status.value"
              ],
              "codeFilter" : [
                {
                  "path" : "code",
                  "code" : [
                    {
                      "system" : "http://loinc.org",
                      "code" : "73832-8",
                      "display" : "Adult depression screening assessment"
                    }
                  ]
                },
                {
                  "path" : "status.value",
                  "code" : [
                    {
                      "code" : "final"
                    }
                  ]
                }
              ]
            },
            {
              "type" : "Medication",
              "profile" : [
                🔗 "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication"
              ],
              "mustSupport" : [
                "id.value",
                "code"
              ],
              "codeFilter" : [
                {
                  "path" : "code",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1567"
                }
              ]
            },
            {
              "type" : "Medication",
              "profile" : [
                🔗 "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication"
              ],
              "mustSupport" : [
                "id.value",
                "code"
              ],
              "codeFilter" : [
                {
                  "path" : "code",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1566"
                }
              ]
            },
            {
              "type" : "MedicationRequest",
              "profile" : [
                🔗 "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"
              ],
              "mustSupport" : [
                "medication",
                "status",
                "status.value",
                "intent",
                "intent.value"
              ],
              "codeFilter" : [
                {
                  "path" : "medication",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1567"
                }
              ]
            },
            {
              "type" : "MedicationRequest",
              "profile" : [
                🔗 "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"
              ],
              "mustSupport" : [
                "medication.reference.value",
                "status",
                "status.value",
                "intent",
                "intent.value"
              ]
            },
            {
              "type" : "MedicationRequest",
              "profile" : [
                🔗 "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"
              ],
              "mustSupport" : [
                "medication",
                "status",
                "status.value",
                "intent",
                "intent.value"
              ],
              "codeFilter" : [
                {
                  "path" : "medication",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1566"
                }
              ]
            },
            {
              "type" : "ServiceRequest",
              "profile" : [
                🔗 "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest"
              ],
              "mustSupport" : [
                "code",
                "status",
                "status.value"
              ],
              "codeFilter" : [
                {
                  "path" : "code",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1570"
                }
              ]
            },
            {
              "type" : "ServiceRequest",
              "profile" : [
                🔗 "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest"
              ],
              "mustSupport" : [
                "code",
                "status",
                "status.value"
              ],
              "codeFilter" : [
                {
                  "path" : "code",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1571"
                }
              ]
            },
            {
              "type" : "Procedure",
              "profile" : [
                🔗 "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure"
              ],
              "mustSupport" : [
                "code",
                "status",
                "status.value"
              ],
              "codeFilter" : [
                {
                  "path" : "code",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1569"
                },
                {
                  "path" : "status.value",
                  "code" : [
                    {
                      "code" : "completed"
                    }
                  ]
                }
              ]
            },
            {
              "type" : "Procedure",
              "profile" : [
                🔗 "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure"
              ],
              "mustSupport" : [
                "code",
                "status",
                "status.value"
              ],
              "codeFilter" : [
                {
                  "path" : "code",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1568"
                },
                {
                  "path" : "status.value",
                  "code" : [
                    {
                      "code" : "completed"
                    }
                  ]
                }
              ]
            },
            {
              "type" : "Coverage",
              "profile" : [
                🔗 "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage"
              ],
              "mustSupport" : [
                "type",
                "period"
              ],
              "codeFilter" : [
                {
                  "path" : "type",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"
                }
              ]
            },
            {
              "type" : "Condition",
              "profile" : [
                🔗 "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition"
              ],
              "mustSupport" : [
                "code"
              ],
              "codeFilter" : [
                {
                  "path" : "code",
                  "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.67.1.101.1.128"
                }
              ]
            },
            {
              "type" : "Observation",
              "profile" : [
                🔗 "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observationnotdone"
              ],
              "mustSupport" : [
                "code",
                "issued",
                "issued.value",
                "extension",
                "status",
                "status.value"
              ],
              "codeFilter" : [
                {
                  "path" : "code",
                  "code" : [
                    {
                      "system" : "http://loinc.org",
                      "code" : "73831-0",
                      "display" : "Adolescent depression screening assessment"
                    }
                  ]
                }
              ]
            },
            {
              "type" : "Observation",
              "profile" : [
                🔗 "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observationnotdone"
              ],
              "mustSupport" : [
                "code",
                "issued",
                "issued.value",
                "extension",
                "status",
                "status.value"
              ],
              "codeFilter" : [
                {
                  "path" : "code",
                  "code" : [
                    {
                      "system" : "http://loinc.org",
                      "code" : "73832-8",
                      "display" : "Adult depression screening assessment"
                    }
                  ]
                }
              ]
            }
          ]
        }
      ],
      "extension" : [
        {
          "url" : "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements",
          "valueCanonical" : "#effective-data-requirements"
        }
      ],
      "url" : "https://madie.cms.gov/Measure/PCSDepressionScreenAndFollowUpFHIR",
      "identifier" : [
        {
          "use" : "usual",
          "type" : {
            "coding" : [
              {
                "system" : "http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type",
                "code" : "short-name"
              }
            ]
          },
          "system" : "https://madie.cms.gov/measure/shortName",
          "value" : "CMS2FHIR"
        },
        {
          "use" : "official",
          "type" : {
            "coding" : [
              {
                "system" : "http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type",
                "code" : "version-independent"
              }
            ]
          },
          "system" : "urn:ietf:rfc:3986",
          "value" : "urn:uuid:deb30835-dbec-4f11-aab0-3a282040e37c"
        },
        {
          "use" : "official",
          "type" : {
            "coding" : [
              {
                "system" : "http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type",
                "code" : "version-specific"
              }
            ]
          },
          "system" : "urn:ietf:rfc:3986",
          "value" : "urn:uuid:7cb8ac66-85c4-489b-aa4a-af861d69c9a5"
        },
        {
          "use" : "official",
          "type" : {
            "coding" : [
              {
                "system" : "http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type",
                "code" : "publisher"
              }
            ]
          },
          "system" : "https://madie.cms.gov/measure/cmsId",
          "value" : "2FHIR",
          "assigner" : {
            "display" : "CMS"
          }
        }
      ],
      "version" : "0.2.000",
      "name" : "PCSDepressionScreenAndFollowUpFHIR",
      "title" : "Preventive Care and Screening: Screening for Depression and Follow-Up PlanFHIR",
      "status" : "draft",
      "experimental" : false,
      "date" : "2026-03-13T01:50:42+00:00",
      "publisher" : "Centers for Medicare &amp; Medicaid Services (CMS)",
      "contact" : [
        {
          "telecom" : [
            {
              "system" : "url",
              "value" : "https://www.cms.gov/"
            }
          ]
        }
      ],
      "description" : "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.",
      "purpose" : "UNKNOWN",
      "usage" : "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).",
      "copyright" : "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.",
      "effectivePeriod" : {
        "start" : "2025-01-01",
        "end" : "2025-12-31"
      },
      "author" : [
        {
          "name" : "Mathematica",
          "telecom" : [
            {
              "system" : "url",
              "value" : "https://www.mathematica.org/"
            }
          ]
        }
      ],
      "library" : [
        🔗 "https://madie.cms.gov/Library/PCSDepressionScreenAndFollowUpFHIR"
      ],
      "disclaimer" : "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].",
      "scoring" : {
        "coding" : [
          {
            "system" : "http://terminology.hl7.org/CodeSystem/measure-scoring",
            "code" : "proportion",
            "display" : "Proportion"
          }
        ],
        "text" : "Proportion"
      },
      "rationale" : "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).",
      "clinicalRecommendationStatement" : "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).",
      "group" : [
        {
          "id" : "64ef8dd856d636294b157c6f",
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoring",
              "valueCodeableConcept" : {
                "coding" : [
                  {
                    "system" : "http://terminology.hl7.org/CodeSystem/measure-scoring",
                    "code" : "proportion",
                    "display" : "Proportion"
                  }
                ]
              }
            },
            {
              "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis",
              "valueCode" : "boolean"
            },
            {
              "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-type",
              "valueCodeableConcept" : {
                "coding" : [
                  {
                    "system" : "http://terminology.hl7.org/CodeSystem/measure-type",
                    "code" : "process",
                    "display" : "Process"
                  }
                ]
              }
            },
            {
              "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-rateAggregation",
              "valueCode" : "None"
            },
            {
              "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-improvementNotation",
              "valueCodeableConcept" : {
                "coding" : [
                  {
                    "system" : "http://terminology.hl7.org/CodeSystem/measure-improvement-notation",
                    "code" : "decrease",
                    "display" : "increase"
                  }
                ]
              }
            }
          ],
          "description" : "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.",
          "population" : [
            {
              "id" : "34AE0037-E4E3-443E-B7A7-ACE09BF46826",
              "code" : {
                "coding" : [
                  {
                    "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
                    "code" : "initial-population",
                    "display" : "Initial Population"
                  }
                ]
              },
              "description" : "All patients aged 12 years and older at the beginning of the measurement period with at least one qualifying encounter during the measurement period",
              "criteria" : {
                "language" : "text/cql-identifier",
                "expression" : "Initial Population"
              }
            },
            {
              "id" : "13152749-0C35-476A-89F2-5C579BD9BE4A",
              "code" : {
                "coding" : [
                  {
                    "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
                    "code" : "denominator",
                    "display" : "Denominator"
                  }
                ]
              },
              "description" : "Equals Initial Population",
              "criteria" : {
                "language" : "text/cql-identifier",
                "expression" : "Denominator"
              }
            },
            {
              "id" : "5001B9F9-5ECE-4E40-9B3C-46161FA366F9",
              "code" : {
                "coding" : [
                  {
                    "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
                    "code" : "denominator-exclusion",
                    "display" : "Denominator Exclusion"
                  }
                ]
              },
              "description" : "Patients who have ever been diagnosed with bipolar disorder at any time prior to the qualifying encounter",
              "criteria" : {
                "language" : "text/cql-identifier",
                "expression" : "Denominator Exclusions"
              }
            },
            {
              "id" : "BFE91CA3-DC28-49B0-AD42-97D6808E7689",
              "code" : {
                "coding" : [
                  {
                    "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
                    "code" : "numerator",
                    "display" : "Numerator"
                  }
                ]
              },
              "description" : "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",
              "criteria" : {
                "language" : "text/cql-identifier",
                "expression" : "Numerator"
              }
            },
            {
              "id" : "0411DA66-4881-4FC9-B4CE-73973320F1DC",
              "code" : {
                "coding" : [
                  {
                    "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
                    "code" : "denominator-exception",
                    "display" : "Denominator Exception"
                  }
                ]
              },
              "description" : "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)",
              "criteria" : {
                "language" : "text/cql-identifier",
                "expression" : "Denominator Exceptions"
              }
            }
          ]
        }
      ],
      "supplementalData" : [
        {
          "id" : "sde-ethnicity",
          "usage" : [
            {
              "coding" : [
                {
                  "system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
                  "code" : "supplemental-data"
                }
              ]
            }
          ],
          "description" : "SDE Ethnicity",
          "criteria" : {
            "language" : "text/cql-identifier",
            "expression" : "SDE Ethnicity"
          }
        },
        {
          "id" : "sde-payer",
          "usage" : [
            {
              "coding" : [
                {
                  "system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
                  "code" : "supplemental-data"
                }
              ]
            }
          ],
          "description" : "SDE Payer",
          "criteria" : {
            "language" : "text/cql-identifier",
            "expression" : "SDE Payer"
          }
        },
        {
          "id" : "sde-race",
          "usage" : [
            {
              "coding" : [
                {
                  "system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
                  "code" : "supplemental-data"
                }
              ]
            }
          ],
          "description" : "SDE Race",
          "criteria" : {
            "language" : "text/cql-identifier",
            "expression" : "SDE Race"
          }
        },
        {
          "id" : "sde-sex",
          "usage" : [
            {
              "coding" : [
                {
                  "system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
                  "code" : "supplemental-data"
                }
              ]
            }
          ],
          "description" : "SDE Sex",
          "criteria" : {
            "language" : "text/cql-identifier",
            "expression" : "SDE Sex"
          }
        }
      ]
    }