Chronic Disease Surveillance
0.1.0 - CI Build International flag

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

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

Draft as of 2025-09-25

Raw ttl | Download

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

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

 a fhir:Measure ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "DepressionScreeningandFollowUp"] ; # 
  fhir:meta [
    ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm>     ] )
  ] ; # 
  fhir:text [
fhir:status [ fhir:v "extensions" ] ;
fhir: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 Plan</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.1.0</td>\n\n\n</tr>\n\n\n\n\n\n\n\n  \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Identifier</th>\n\n\n\n<td class=\"content-container\">CMS2v13</td>\n\n\n</tr>\n\n\n  \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Identifier</th>\n\n\n\n<td class=\"content-container\">134</td>\n\n\n</tr>\n\n\n  \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Identifier</th>\n\n\n\n<td class=\"content-container\">2c928083-8651-08a3-0186-c82995a91d28</td>\n\n\n</tr>\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\">2024-01-01 through 2024-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<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Jurisdiction</th>\n\n\n\n<td class=\"content-container\">\n    001 from <a href=\"http://unstats.un.org/unsd/methods/m49/m49.htm\">http://unstats.un.org/unsd/methods/m49/m49.htm</a> \n\n\n</td>\n\n\n</tr>\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\">Clinical Quality Framework</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\">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\">Purpose</th>\n\n\n\n<td class=\"content-container\"><div><p>Unknown</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-2022 American Medical Association. LOINC(R) is copyright 2004-2022 Regenstrief Institute, Inc. This material contains SNOMED Clinical Terms(R) (SNOMED CT[R]) copyright 2004-2022 International Health Terminology Standards Development Organisation. ICD-10 is copyright 2022 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\">\n    Proportion\n\n\n</td>\n\n\n</tr>\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    Higher score indicates better quality\n\n\n</td>\n\n\n</tr>\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Measure 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\">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, &amp; 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 &amp; 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 the majority of depressed youth are undiagnosed and untreated\" (Siu on behalf of USPSTF, 2016, p. 360 &amp; p. 364). 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 and receive treatment for depression (U.S. Preventive Services Task Force, 2016) and makes an important contribution to the quality domain of community and population health.</p>\n</div></td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Clinical Recommendation Statement</th>\n\n\n\n<td class=\"content-container\"><div><p>Adolescent Recommendation (12-18 years): \"The USPSTF recommends screening for MDD in adolescents aged 12 to 18 years. Screening should be implemented with adequate systems in place to ensure accurate diagnosis, effective treatment, and appropriate follow-up (B recommendation)\" (Siu on behalf of USPSTF, 2016, p. 360). 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 &amp; USPSTF, 2016, p. 380). “The USPSTF recommends that clinicians provide or refer pregnant and postpartum persons who are at increased risk of perinatal depression to counseling interventions (B recommendation)” (U.S. Preventive Services Task Force, 2019). The American College of Obstetricians and Gynecologists (ACOG) provides the following recommendation: \"All obstetrician–gynecologists and other obstetric care providers should complete a full assessment of mood and emotional well-being (including screening for postpartum depression and anxiety with a validated instrument) during the comprehensive postpartum visit for each patient\" (American College of Obstetricians and Gynecologists, 2018). The Institute for Clinical Systems Improvement (ICSI) health care guideline, Adult Depression in Primary Care, provides the following recommendations: 1. \"Clinicians should routinely screen all adults for depression using a standardized instrument.\" 2. \"Clinicians should establish and maintain follow-up with patients.\" 3. \"Clinicians should screen and monitor depression in pregnant and post-partum women\" (Trangle et al., 2016, p. 8-10).</p>\n</div></td>\n\n\n</tr>\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\">Measure Group (Rate)</th>\n\n\n</tr>\n  \n  \n  \n\n\n\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>: AD83208C-1313-401E-BB62-ABCCE0982B49\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=\"#grp-AD83208C-1313-401E-BB62-ABCCE0982B49\">Initial Population</a> \n            \n          \n          \n        \n        \n        \n      </td>\n    </tr>\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>: 696066C7-C558-4849-A325-A3CDDB58CF8F\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=\"#grp-696066C7-C558-4849-A325-A3CDDB58CF8F\">Denominator</a> \n            \n          \n          \n        \n        \n        \n      </td>\n    </tr>\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>: E2557B71-1B97-413F-BE26-2B037E4D590B\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=\"#grp-E2557B71-1B97-413F-BE26-2B037E4D590B\">Numerator</a> \n            \n          \n          \n        \n        \n        \n      </td>\n    </tr>\n  \n\n  \n    \n    \n    <tr>\n      \n        \n\n<th scope=\"row\" class=\"row-header\">Denominator Exclusions</th>\n\n\n      \n      <td class=\"content-container\">\n        \n        <em>ID</em>: E52F7FAE-96D9-417A-8538-6E3DB4A31D7A\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=\"#grp-E52F7FAE-96D9-417A-8538-6E3DB4A31D7A\">Denominator Exclusions</a> \n            \n          \n          \n        \n        \n        \n      </td>\n    </tr>\n  \n\n  \n    \n    \n    <tr>\n      \n        \n\n<th scope=\"row\" class=\"row-header\">Denominator Exceptions</th>\n\n\n      \n      <td class=\"content-container\">\n        \n        <em>ID</em>: FBA7B9D9-8588-4CB2-AB72-642CBD980334\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</p>\n        \n        \n          \n            \n              \n              <em>Criteria</em>: <a href=\"#grp-FBA7B9D9-8588-4CB2-AB72-642CBD980334\">Denominator Exceptions</a> \n            \n          \n          \n        \n        \n        \n      </td>\n    </tr>\n  \n\n  \n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Stratifier</th>\n\n\n  <td class=\"content-container\">\n    \n      <em>ID</em>: stratifier-ethnicity\n      \n        <br/>\n      \n    \n    \n      \n        <em>Code</em>: Ethnicity\n      \n      \n        <br/>\n      \n    \n    \n      <em>Description</em>: Ethnicity (CDC Value Set)\n    \n  </td>\n</tr>\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Stratifier</th>\n\n\n  <td class=\"content-container\">\n    \n      <em>ID</em>: stratifier-payer\n      \n        <br/>\n      \n    \n    \n      \n        <em>Code</em>: SDE Payer\n      \n      \n        <br/>\n      \n    \n    \n      <em>Description</em>: Payer\n    \n  </td>\n</tr>\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Stratifier</th>\n\n\n  <td class=\"content-container\">\n    \n      <em>ID</em>: stratifier-race\n      \n        <br/>\n      \n    \n    \n      \n        <em>Code</em>: SDE Race\n      \n      \n        <br/>\n      \n    \n    \n      <em>Description</em>: Race (CDC Value Set)\n    \n  </td>\n</tr>\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Stratifier</th>\n\n\n  <td class=\"content-container\">\n    \n      <em>ID</em>: stratifier-sex\n      \n        <br/>\n      \n    \n    \n      \n        <em>Code</em>: Sex [HL7.v3]\n      \n      \n        <br/>\n      \n    \n    \n      <em>Description</em>: Administrative sex\n    \n  </td>\n</tr>\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Stratifier</th>\n\n\n  <td class=\"content-container\">\n    \n      <em>ID</em>: stratifier-age\n      \n        <br/>\n      \n    \n    \n      \n        <em>Code</em>: Age\n      \n      \n        <br/>\n      \n    \n    \n      <em>Description</em>: Age\n    \n  </td>\n</tr>\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Stratifier</th>\n\n\n  <td class=\"content-container\">\n    \n      <em>ID</em>: stratifier-state-of-residence\n      \n        <br/>\n      \n    \n    \n      \n        <em>Code</em>: State, district or territory federal abbreviation\n      \n      \n        <br/>\n      \n    \n    \n      <em>Description</em>: State of residence\n    \n  </td>\n</tr>\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Stratifier</th>\n\n\n  <td class=\"content-container\">\n    \n      <em>ID</em>: stratifier-postal-code-of-residence\n      \n        <br/>\n      \n    \n    \n      \n        <em>Code</em>: Postal code\n      \n      \n        <br/>\n      \n    \n    \n      <em>Description</em>: Postal code of residence\n    \n  </td>\n</tr>\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Stratifier</th>\n\n\n  <td class=\"content-container\">\n    \n      <em>ID</em>: stratifier-food-insecurity-risk-status\n      \n        <br/>\n      \n    \n    \n      \n        <em>Code</em>: Food insecurity risk [HVS]\n      \n      \n        <br/>\n      \n    \n    \n      <em>Description</em>: Food insecurity risk status\n    \n  </td>\n</tr>\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>: Ethnicity (CDC Value Set)\n    \n    \n      \n        <br/>\n        \n          \n          <em>Logic Definition</em>: <a href=\"#depressionscreeningandfollowup-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>: Payer\n    \n    \n      \n        <br/>\n        \n          \n          <em>Logic Definition</em>: <a href=\"#depressionscreeningandfollowup-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>: Race (CDC Value Set)\n    \n    \n      \n        <br/>\n        \n          \n          <em>Logic Definition</em>: <a href=\"#depressionscreeningandfollowup-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>: Administrative sex\n    \n    \n      \n        <br/>\n        \n          \n          <em>Logic Definition</em>: <a href=\"#depressionscreeningandfollowup-sde-sex\">SDE Sex</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-age\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>: Age\n    \n    \n      \n        <br/>\n        \n          \n          <em>Logic Definition</em>: <a href=\"#depressionscreeningandfollowup-sde-age\">SDE Age</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-state-of-residence\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>: State of residence\n    \n    \n      \n        <br/>\n        \n          \n          <em>Logic Definition</em>: <a href=\"#depressionscreeningandfollowup-sde-state-of-residence\">SDE State of Residence</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-postal-code-of-residence\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>: Postal code of residence\n    \n    \n      \n        <br/>\n        \n          \n          <em>Logic Definition</em>: <a href=\"#depressionscreeningandfollowup-sde-postal-code-of-residence\">SDE Postal Code of Residence</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-food-insecurity-risk-status\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>: Food insecurity risk status\n    \n    \n      \n        <br/>\n        \n          \n          <em>Logic Definition</em>: <a href=\"#depressionscreeningandfollowup-sde-food-insecurity-risk-status\">SDE Food Insecurity Risk Status</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-DepressionScreeningandFollowUp.html\">DepressionScreeningandFollowUp</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  </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    <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Group (Rate)</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          \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=\"grp-AD83208C-1313-401E-BB62-ABCCE0982B49\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Initial Population\":\n  AgeInYearsAt(start of \"Measurement Period\") &gt;= 12\n    and exists(\n      \"Qualifying Encounters During Measurement Period\" E \n        where FC.ToInterval(E.period) during \"Measurement Period\"\n    )</code></pre>\n    \n      \n      <a href=\"#depressionscreeningandfollowup-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        \n          \n        \n          \n        \n          \n        \n          \n        \n      \n    \n  \n\n  \n    \n      \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \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=\"grp-696066C7-C558-4849-A325-A3CDDB58CF8F\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator\":\n  \"Initial Population\"</code></pre>\n    \n      \n      <a href=\"#depressionscreeningandfollowup-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\n  \n    \n      \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \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=\"grp-E2557B71-1B97-413F-BE26-2B037E4D590B\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Numerator\":\n  ( \"Patient Age 12 to 16 Years at Start of Measurement Period\"\n      and ( \"Most Recent Adolescent Screening Negative\"\n        or \"Most Recent Adolescent Depression Screening Positive and Follow Up Provided\" )\n)\n  or ( \"Patient Age 17 Years at Start of Measurement Period\"\n    and ( \"Most Recent Adolescent Screening Negative\"\n      or \"Most Recent Adolescent Depression Screening Positive and Follow Up Provided\"\n      or \"Most Recent Adult Screening Negative\"\n      or  \"Most Recent Adult Depression Screening Positive and Follow Up Provided\") \n  )\n  or ( \"Patient Age 18 Years or Older at Start of Measurement Period\"\n    and ( \"Most Recent Adult Screening Negative\"\n      or \"Most Recent Adult Depression Screening Positive and Follow Up Provided\" ) )</code></pre>\n    \n      \n      <a href=\"#depressionscreeningandfollowup-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        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n      \n    \n  \n\n  \n    \n      \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \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 Exclusions\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      \n      <a name=\"grp-E52F7FAE-96D9-417A-8538-6E3DB4A31D7A\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator Exclusions\":\n  exists(\"History of Bipolar Diagnosis Before Qualifying Encounter\")</code></pre>\n    \n      \n      <a href=\"#depressionscreeningandfollowup-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        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \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 Exceptions\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      \n      <a name=\"grp-FBA7B9D9-8588-4CB2-AB72-642CBD980334\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator Exceptions\":\n  (exists(\"Medical or Patient Reason for Not Screening Adolescent for Depression\")\n    and not exists(\"Has Adolescent Depression Screening\"))\n  or (exists(\"Medical or Patient Reason for Not Screening Adult for Depression\")\n    and not exists(\"Has Adult Depression Screening\"))</code></pre>\n    \n      \n      <a href=\"#depressionscreeningandfollowup-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        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n      \n    \n  \n\n  \n  \n    \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \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    Stratifier\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Ethnicity\":\n  (flatten (\n      Patient.extension Extension\n        where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'\n          return Extension.extension\n    )) E\n      where E.url = 'ombCategory'\n        or E.url = 'detailed'\n      return E.value as Coding</code></pre>\n    \n      \n      <a href=\"#supplementaldataelementsfhir4-sde-ethnicity\"><em>Definition</em></a>\n    \n  </td>\n\n</tr>\n\n          \n        \n          \n            <tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    \n    Stratifier\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Ethnicity\":\n  SDE.\"SDE Ethnicity\"</code></pre>\n    \n      \n      <a href=\"#depressionscreeningandfollowup-sde-ethnicity\"><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        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \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    Stratifier\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Payer\":\n  [Coverage: type in \"Payer\"] Payer\n        return {\n          code: Payer.type,\n          period: Payer.period\n        }</code></pre>\n    \n      \n      <a href=\"#supplementaldataelementsfhir4-sde-payer\"><em>Definition</em></a>\n    \n  </td>\n\n</tr>\n\n          \n        \n          \n            <tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    \n    Stratifier\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Payer\":\n  SDE.\"SDE Payer\"</code></pre>\n    \n      \n      <a href=\"#depressionscreeningandfollowup-sde-payer\"><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        \n          \n        \n          \n        \n          \n        \n          \n            <tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    \n    Stratifier\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Race\":\n  (flatten (\n      Patient.extension Extension\n        where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race'\n          return Extension.extension\n    )) E\n      where E.url = 'ombCategory'\n        or E.url = 'detailed'\n      return E.value as Coding</code></pre>\n    \n      \n      <a href=\"#supplementaldataelementsfhir4-sde-race\"><em>Definition</em></a>\n    \n  </td>\n\n</tr>\n\n          \n        \n          \n            <tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    \n    Stratifier\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Race\":\n  SDE.\"SDE Race\"</code></pre>\n    \n      \n      <a href=\"#depressionscreeningandfollowup-sde-race\"><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        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \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    Stratifier\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Sex\":\n  case\n      when Patient.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' }\n      when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' }\n      else null\n    end</code></pre>\n    \n      \n      <a href=\"#supplementaldataelementsfhir4-sde-sex\"><em>Definition</em></a>\n    \n  </td>\n\n</tr>\n\n          \n        \n          \n            <tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    \n    Stratifier\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Sex\":\n  SDE.\"SDE Sex\"</code></pre>\n    \n      \n      <a href=\"#depressionscreeningandfollowup-sde-sex\"><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        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n    \n  \n\n  \n    \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \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    Stratifier\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Age\":\n  SurveillanceDataElements.\"Age\"</code></pre>\n    \n      \n      <a href=\"#depressionscreeningandfollowup-sde-age\"><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            <tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    \n    Stratifier\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE State of Residence\":\n  SurveillanceDataElements.\"State of Residence\"</code></pre>\n    \n      \n      <a href=\"#depressionscreeningandfollowup-sde-state-of-residence\"><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        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \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    Stratifier\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Postal Code of Residence\":\n  SurveillanceDataElements.\"Postal Code of Residence\"</code></pre>\n    \n      \n      <a href=\"#depressionscreeningandfollowup-sde-postal-code-of-residence\"><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        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n    \n  \n\n  \n    \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \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    Stratifier\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Food Insecurity Risk Status\":\n  SurveillanceDataElements.\"Food Insecurity Risk Status\"</code></pre>\n    \n      \n      <a href=\"#depressionscreeningandfollowup-sde-food-insecurity-risk-status\"><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  <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\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> SupplementalDataElementsFHIR4</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"supplementaldataelementsfhir4-sde-race\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Race\":\n  (flatten (\n      Patient.extension Extension\n        where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race'\n          return Extension.extension\n    )) E\n      where E.url = 'ombCategory'\n        or E.url = 'detailed'\n      return E.value as Coding</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> SupplementalDataElementsFHIR4</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"supplementaldataelementsfhir4-sde-sex\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Sex\":\n  case\n      when Patient.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' }\n      when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' }\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\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> SupplementalDataElementsFHIR4</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"supplementaldataelementsfhir4-sde-payer\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Payer\":\n  [Coverage: type in \"Payer\"] 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\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> SupplementalDataElementsFHIR4</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"supplementaldataelementsfhir4-sde-ethnicity\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Ethnicity\":\n  (flatten (\n      Patient.extension Extension\n        where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'\n          return Extension.extension\n    )) E\n      where E.url = 'ombCategory'\n        or E.url = 'detailed'\n      return E.value as Coding</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\n\n\n        \n\n\n\n        \n\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> SurveillanceDataElementsFHIR4</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"surveillancedataelementsfhir4-most-recent-physical-home-address\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// Jurisdiction of residence (jurisdiction of the patient)\ndefine \"Most recent physical home address\":\n  First(\n    Patient.address A\n      where A.use = 'home'\n        and A.type = 'physical'\n      sort by end of period desc\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> SurveillanceDataElementsFHIR4</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"surveillancedataelementsfhir4-postal-code-of-residence\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Postal Code of Residence\":\n  \"Most recent physical home address\".postalCode</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> SurveillanceDataElementsFHIR4</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"surveillancedataelementsfhir4-state-of-residence\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"State of Residence\":\n  \"Most recent physical home address\".state</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<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> SurveillanceDataElementsFHIR4</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"surveillancedataelementsfhir4-food-insecurity-risk-status\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// Jurisdiction of care (jurisdiction of the most recent encounter)\n// TODO:\n//define \"Most recent address of care\":\n\n// NOTE: Included in eICR\n// Occupational Data for Health - Past or Present Job\n// http://hl7.org/fhir/us/odh/StructureDefinition-odh-PastOrPresentJob.html\n// Observation: LOINC#11341-5, valueCodeableConcept in https://phinvads.cdc.gov/vads/ViewValueSet.action?oid=2.16.840.1.114222.4.11.7186\n\n// Social Determinants of Health (SDOH)\n// http://build.fhir.org/ig/HL7/fhir-sdoh-clinicalcare/StructureDefinition-SDOHCC-ObservationScreeningResponse.html\n// Food insecurity risk: http://build.fhir.org/ig/HL7/fhir-sdoh-clinicalcare/Observation-SDOHCC-ObservationResponseHungerVitalSignQuestion3Example.html\n// Observation: LOINC#88124-3, valueCodeableConcept in https://loinc.org/LL2510-7/ (At risk, No risk)\ndefine \"Food Insecurity Risk Status\":\n  First(\n    [Observation: \"Food insecurity risk [HVS]\"] O\n      sort by issued desc\n  ).value as CodeableConcept</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> SurveillanceDataElementsFHIR4</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"surveillancedataelementsfhir4-age\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// Age\ndefine \"Age\":\n  AgeInYearsAt(end of \"Measurement Period\")</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\n\n\n        \n\n\n\n        \n\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> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-sde-postal-code-of-residence\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Postal Code of Residence\":\n  SurveillanceDataElements.\"Postal Code of Residence\"</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> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-sde-state-of-residence\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE State of Residence\":\n  SurveillanceDataElements.\"State of Residence\"</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> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-sde-race\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Race\":\n  SDE.\"SDE Race\"</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\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> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-sde-sex\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Sex\":\n  SDE.\"SDE Sex\"</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-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\">//Numerator\ndefine \"Patient Age 12 to 16 Years at Start of Measurement Period\":\n  AgeInYearsAt(start of \"Measurement Period\") in Interval[12, 16]</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-qualifying-encounters-during-measurement-period\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Qualifying Encounters During Measurement Period\":\n  (AC.QualifiedEncounters([Encounter: \"Encounter to Screen for Depression\"])\n    union AC.QualifiedEncounters([Encounter: \"Physical Therapy Evaluation\"])\n    union AC.QualifiedEncounters([Encounter: \"Telephone Visits\"])) QualifyingEnc \n    where FC.ToInterval(QualifyingEnc.period) during \"Measurement Period\"</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-has-adolescent-depression-screening\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Has Adolescent Depression Screening\":\n  ((AC.QualifiedObservations([Observation: \"Adolescent Depression Screening Assessment\"])) AdolescentScreening\n    with \"Qualifying Encounters During Measurement Period\" QualifyingEnc\n      such that \"Screening Within 14 Days of Encounter\"(AdolescentScreening, QualifyingEnc))</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> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-most-recent-adolescent-depression-screening\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">//Adolescent Numerator\ndefine \"Most Recent Adolescent Depression Screening\":\n  AC.MostRecent((\"Has Adolescent Depression Screening\"))</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> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-most-recent-adolescent-screening-negative\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Most Recent Adolescent Screening Negative\":\n  (\"Most Recent Adolescent Depression Screening\" AdolescentScreening\n    where AdolescentScreening.value ~ ToConcept(\"Depression Screening Negative\")) 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> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-most-recent-adolescent-positive-depression-screening\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Most Recent Adolescent Positive Depression Screening\":\n  \"Most Recent Adolescent Depression Screening\" RecentScreening\n    where RecentScreening.value ~ ToConcept(\"Depression Screening Positive\")</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> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-follow-up-interventions-for-positive-adolescent-depression-screening\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Follow Up Interventions For Positive Adolescent Depression Screening\":\n  (AC.QualifiedMedicationRequests([MedicationRequest: \"Adolescent Depression Medications\"])\n    union AC.QualifiedServiceRequests([ServiceRequest: \"Referral for Adolescent Depression\"])\n    union AC.QualifiedProcedures([Procedure: \"Follow Up for Adolescent Depression\"])) FollowUpInterventions\n    let \"Intervention Day\": Coalesce(FC.ToInterval(FollowUpInterventions.authoredOn), FC.ToInterval(FollowUpInterventions.performed))\n    with \"Qualifying Encounters During Measurement Period\" QualifyingEnc\n      such that \"Intervention Day\" same day as QualifyingEnc.period\n      or \"Intervention Day\" 2 days or less after day of end of FC.ToInterval(QualifyingEnc.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> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-most-recent-adolescent-depression-screening-positive-and-follow-up-provided\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Most Recent Adolescent Depression Screening Positive and Follow Up Provided\":\n  (\"Most Recent Adolescent Positive Depression Screening\" RecentScreening\n  let \"Screening Day\": Coalesce(FC.ToInterval(RecentScreening.effective), FC.ToInterval(RecentScreening.issued))\n  with \"Follow Up Interventions For Positive Adolescent Depression Screening\" FollowUpInterventions\n    such that \"Screening Day\" 14 days or less before start of Coalesce(FC.ToInterval(FollowUpInterventions.authoredOn), FC.ToInterval(FollowUpInterventions.performed))\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> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-patient-age-17-years-at-start-of-measurement-period\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Patient Age 17 Years at Start of Measurement Period\":\n  AgeInYearsAt(start of \"Measurement Period\") = 17</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-has-adult-depression-screening\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Has Adult Depression Screening\":\n  ((AC.QualifiedObservations([Observation: \"Adult Depression Screening Assessment\"])) AdolescentScreening\n    with \"Qualifying Encounters During Measurement Period\" QualifyingEnc\n      such that \"Screening Within 14 Days of Encounter\"(AdolescentScreening, QualifyingEnc))</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> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-most-recent-adult-depression-screening\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">//Adult Numerator\ndefine \"Most Recent Adult Depression Screening\":\n  AC.MostRecent((\"Has Adult Depression Screening\"))</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> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-most-recent-adult-screening-negative\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Most Recent Adult Screening Negative\":\n  (\"Most Recent Adult Depression Screening\" AdultScreening\n    where AdultScreening.value ~ ToConcept(\"Depression Screening Negative\")) 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> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-most-recent-adult-positive-depression-screening\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Most Recent Adult Positive Depression Screening\":\n  \"Most Recent Adult Depression Screening\" RecentScreening\n    where RecentScreening.value ~ ToConcept(\"Depression Screening Positive\")</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> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-follow-up-interventions-for-positive-adult-depression-screening\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Follow Up Interventions For Positive Adult Depression Screening\":\n  ((AC.QualifiedMedicationRequests([MedicationRequest: \"Adult Depression Medications\"])\n    union AC.QualifiedServiceRequests([ServiceRequest: \"Referral for Adult Depression\"])\n    union AC.QualifiedProcedures([Procedure: \"Follow Up for Adult Depression\"]))) FollowUpInterventions\n    let \"Intervention Day\": Coalesce(FC.ToInterval(FollowUpInterventions.authoredOn), FC.ToInterval(FollowUpInterventions.performed))\n    with \"Qualifying Encounters During Measurement Period\" QualifyingEnc\n      such that \"Intervention Day\" same day as QualifyingEnc.period\n      or \"Intervention Day\" 2 days or less after day of end of FC.ToInterval(QualifyingEnc.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> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-most-recent-adult-depression-screening-positive-and-follow-up-provided\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Most Recent Adult Depression Screening Positive and Follow Up Provided\":\n  (\"Most Recent Adult Positive Depression Screening\" RecentScreening\n  let \"Screening Day\": Coalesce(FC.ToInterval(RecentScreening.effective), FC.ToInterval(RecentScreening.issued))\n  with \"Follow Up Interventions For Positive Adult Depression Screening\" FollowUpInterventions\n    such that \"Screening Day\" 14 days or less before start of Coalesce(FC.ToInterval(FollowUpInterventions.authoredOn), FC.ToInterval(FollowUpInterventions.performed))\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> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-patient-age-18-years-or-older-at-start-of-measurement-period\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Patient Age 18 Years or Older at Start of Measurement Period\":\n  AgeInYearsAt(start of \"Measurement Period\") &gt;= 18</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-numerator\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Numerator\":\n  ( \"Patient Age 12 to 16 Years at Start of Measurement Period\"\n      and ( \"Most Recent Adolescent Screening Negative\"\n        or \"Most Recent Adolescent Depression Screening Positive and Follow Up Provided\" )\n)\n  or ( \"Patient Age 17 Years at Start of Measurement Period\"\n    and ( \"Most Recent Adolescent Screening Negative\"\n      or \"Most Recent Adolescent Depression Screening Positive and Follow Up Provided\"\n      or \"Most Recent Adult Screening Negative\"\n      or  \"Most Recent Adult Depression Screening Positive and Follow Up Provided\") \n  )\n  or ( \"Patient Age 18 Years or Older at Start of Measurement Period\"\n    and ( \"Most Recent Adult Screening Negative\"\n      or \"Most Recent Adult Depression Screening Positive and Follow Up Provided\" ) )</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> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-initial-population\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Initial Population\":\n  AgeInYearsAt(start of \"Measurement Period\") &gt;= 12\n    and exists(\n      \"Qualifying Encounters During Measurement Period\" E \n        where FC.ToInterval(E.period) during \"Measurement Period\"\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> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-denominator\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator\":\n  \"Initial Population\"</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-sde-payer\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Payer\":\n  SDE.\"SDE Payer\"</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-sde-food-insecurity-risk-status\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Food Insecurity Risk Status\":\n  SurveillanceDataElements.\"Food Insecurity Risk Status\"</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> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-sde-ethnicity\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Ethnicity\":\n  SDE.\"SDE Ethnicity\"</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\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> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-sde-age\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Age\":\n  SurveillanceDataElements.\"Age\"</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> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-history-of-bipolar-diagnosis-before-qualifying-encounter\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">//Denominator Exclusion \ndefine \"History of Bipolar Diagnosis Before Qualifying Encounter\": \n  (AC.QualifiedConditions([Condition: \"Bipolar Disorder\"])) BipolarDiagnosis \n  with \"Qualifying Encounters During Measurement Period\" QualifyingEnc\n    such that FC.ToPrevalenceInterval(BipolarDiagnosis) starts before QualifyingEnc.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> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-denominator-exclusions\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator Exclusions\":\n  exists(\"History of Bipolar Diagnosis Before Qualifying Encounter\")</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<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> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-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\">//Denominator Exception\ndefine \"Medical or Patient Reason for Not Screening Adolescent for Depression\":\n  AC.AbsentData([Observation: \"Adolescent Depression Screening Assessment\"], \"Qualifying Encounters During Measurement Period\", \"Depression Screening Declined\", \"Medical Reason\")</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> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-medical-or-patient-reason-for-not-screening-adult-for-depression\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Medical or Patient Reason for Not Screening Adult for Depression\":\n  AC.AbsentData([Observation: \"Adult Depression Screening Assessment\"], \"Qualifying Encounters During Measurement Period\", \"Depression Screening Declined\", \"Medical Reason\")</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> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-denominator-exceptions\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator Exceptions\":\n  (exists(\"Medical or Patient Reason for Not Screening Adolescent for Depression\")\n    and not exists(\"Has Adolescent Depression Screening\"))\n  or (exists(\"Medical or Patient Reason for Not Screening Adult for Depression\")\n    and not exists(\"Has Adult Depression Screening\"))</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<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> DepressionScreeningandFollowUp</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"depressionscreeningandfollowup-screening-within-14-days-of-encounter\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function \"Screening Within 14 Days of Encounter\"(observation FHIR.Observation, encounter FHIR.Encounter)\nreturns System.Boolean:\n  Coalesce(end of FC.ToInterval(observation.effective), observation.issued) 14 days or less before day of start of encounter.period\n    and observation.value is not null</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\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\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-tostring\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value AddressUse): 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-tostring\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value AddressType): 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-tointerval\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToInterval(period FHIR.Period):\n    if period is null then\n        null\n    else\n        if period.\"start\" is null then\n            Interval(period.\"start\".value, period.\"end\".value]\n        else\n            Interval[period.\"start\".value, period.\"end\".value]</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-tostring\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value uri): value.value</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-tostring\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value AdministrativeGender): value.value</code></pre>\n  </td>\n\n</tr>\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-tostring\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value ObservationStatus): value.value</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-tostring\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value EncounterStatus): value.value</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-todatetime\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToDateTime(value dateTime): 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-todatetime\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToDateTime(value instant): 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-todate\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToDate(value date): 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-toquantity\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToQuantity(quantity FHIR.Quantity):\n    case\n        when quantity is null then null\n        when quantity.value is null then null\n        when quantity.comparator is not null then\n            Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')\n        when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'\n              or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then\n            System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }\n        else\n            Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' &amp; quantity.unit.value &amp; ' (' &amp; quantity.system.value &amp; '|' &amp; quantity.code.value &amp; ')')\n    end</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-tocalendarunit\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToCalendarUnit(unit System.String):\n    case unit\n        when 'ms' then 'millisecond'\n        when 's' then 'second'\n        when 'min' then 'minute'\n        when 'h' then 'hour'\n        when 'd' then 'day'\n        when 'wk' then 'week'\n        when 'mo' then 'month'\n        when 'a' then 'year'\n        else unit\n    end</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\">define 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<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\">define 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-tostring\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value MedicationRequestStatus): 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-toboolean\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToBoolean(value boolean): 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-tostring\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value MedicationRequestIntent): 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-tostring\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value string): value.value</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-tostring\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value ServiceRequestStatus): 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-tostring\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value ServiceRequestIntent): value.value</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-tostring\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value ProcedureStatus): value.value</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\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\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> FHIRCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhircommon-tointerval\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Normalizes a value that is a choice of timing-valued types to an equivalent interval\n@comment: Normalizes a choice type of FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instance, FHIR.string, FHIR.Age, or FHIR.Range types\nto an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible\nrepresentations for timing-valued elements in FHIR, allowing this function to be used across any resource.\n\nThe input can be provided as a dateTime, Period, Timing, instant, string, Age, or Range.\nThe intent of this function is to provide a clear and concise mechanism to treat single\nelements that have multiple possible representations as intervals so that logic doesn't have to account\nfor the variability. More complex calculations (such as medication request period or dispense period\ncalculation) need specific guidance and consideration. That guidance may make use of this function, but\nthe focus of this function is on single element calculations where the semantics are unambiguous.\nIf the input is a dateTime, the result a DateTime Interval beginning and ending on that dateTime.\nIf the input is a Period, the result is a DateTime Interval.\nIf the input is a Timing, an error is raised indicating a single interval cannot be computed from a Timing.\nIf the input is an instant, the result is a DateTime Interval beginning and ending on that instant.\nIf the input is a string, an error is raised indicating a single interval cannot be computed from a string.\nIf the input is an Age, the result is a DateTime Interval beginning when the patient was the given Age,\nand ending immediately prior to when the patient was the given Age plus one year.\nIf the input is a Range, the result is a DateTime Interval beginning when the patient was the Age given\nby the low end of the Range, and ending immediately prior to when the patient was the Age given by the\nhigh end of the Range plus one year.\n\nNOTE: Due to the\ncomplexity of determining a single interval from a Timing or String type, this function will throw a run-time exception if it is used\nwith a Timing or String.\n*/\ndefine function ToInterval(choice Choice&lt;FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instant, FHIR.string, FHIR.Age, FHIR.Range&gt;):\n  case\n	  when choice is FHIR.dateTime then\n    	Interval[FHIRHelpers.ToDateTime(choice as FHIR.dateTime), FHIRHelpers.ToDateTime(choice as FHIR.dateTime)]\n		when choice is FHIR.Period then\n  		FHIRHelpers.ToInterval(choice as FHIR.Period)\n		when choice is FHIR.instant then\n			Interval[FHIRHelpers.ToDateTime(choice as FHIR.instant), FHIRHelpers.ToDateTime(choice as FHIR.instant)]\n		when choice is FHIR.Age then\n		  Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age),\n			  FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age) + 1 year)\n		when choice is FHIR.Range then\n		  Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).low),\n			  FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).high) + 1 year)\n		when choice is FHIR.Timing then\n			//Interval[FHIRHelpers.ToDateTime(choice as FHIR.timing), FHIRHelpers.ToDateTime(choice as FHIR.dateTime)]\n		  Message(null as Interval&lt;DateTime&gt;, true, '1', 'Error', 'Cannot compute a single interval from a Timing type')\n    when choice is FHIR.string then\n      Message(null as Interval&lt;DateTime&gt;, true, '1', 'Error', 'Cannot compute an interval from a String value')\n		else\n			null as Interval&lt;DateTime&gt;\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\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> FHIRCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhircommon-toprevalenceinterval\"> </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 resource.\n@comment: Uses the ToInterval and ToAbatementInterval functions to determine the widest potential interval from\nonset to abatement as specified in the given Condition.\n*/\ndefine function ToPrevalenceInterval(condition Condition):\nif condition.clinicalStatus ~ \"active\"\n  or condition.clinicalStatus ~ \"recurrence\"\n  or condition.clinicalStatus ~ \"relapse\" then\n  Interval[start of ToInterval(condition.onset), end of ToAbatementInterval(condition)]\nelse\n  Interval[start of ToInterval(condition.onset), end of ToAbatementInterval(condition))</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> FHIRCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhircommon-toabatementinterval\"> </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 resource.\n@comment: NOTE: Due to the complexity of determining an interval from a String, this function will throw\na run-time exception if used with a Condition instance that has a String as the abatement value.\n*/\ndefine function ToAbatementInterval(condition Condition):\n	if condition.abatement is FHIR.dateTime then\n	  Interval[FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime), FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime)]\n	else if condition.abatement is FHIR.Period then\n	  FHIRHelpers.ToInterval(condition.abatement as FHIR.Period)\n	else if condition.abatement is FHIR.string then\n    Message(null as Interval&lt;DateTime&gt;, true, '1', 'Error', 'Cannot compute an interval from a String value')\n	else if condition.abatement is FHIR.Age then\n		Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age),\n			FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age) + 1 year)\n	else if condition.abatement is FHIR.Range then\n	  Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).low),\n		  FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).high) + 1 year)\n	else if condition.abatement is FHIR.boolean then\n	  Interval[end of ToInterval(condition.onset), condition.recordedDate)\n	else null</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\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\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> AlphoraCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"alphoracommon-mostrecent\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function MostRecent(observations List&lt;Observation&gt;):\n  Last(\n    observations O\n      sort by start of FC.ToInterval(effective)\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> AlphoraCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"alphoracommon-qualifiedobservations\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function QualifiedObservations(value List&lt;FHIR.Observation&gt;):\n  value Observation\n		where (\n      //registered | preliminary | final | amended | corrected | cancelled | entered-in-error | unknown\n      Observation.status ~ 'final'\n			or Observation.status ~ 'amended'\n			or Observation.status ~ 'corrected'\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> AlphoraCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"alphoracommon-qualifiedencounters\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/* Common Resource Qualifications and Negations */\ndefine function QualifiedEncounters(value List&lt;FHIR.Encounter&gt;):\n  value Encounter\n    where (\n      //planned | arrived | triaged | in-progress | onleave | finished | cancelled | entered-in-error | unknown\n      Encounter.status ~ 'arrived'\n      or Encounter.status ~ 'in-progress'\n      or Encounter.status ~ 'finished'\n      or Encounter.status ~ 'onleave'\n      or Encounter.status ~ 'triaged'\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<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> AlphoraCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"alphoracommon-qualifiedmedicationrequests\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function QualifiedMedicationRequests(value List&lt;FHIR.MedicationRequest&gt;):\n  value MedicationRequest\n    where (\n      //active | on-hold | cancelled | completed | entered-in-error | stopped | draft | unknown\n      (MedicationRequest.status ~ 'active'\n        or MedicationRequest.status ~ 'completed'\n      )\n        and (\n          MedicationRequest.doNotPerform is null\n          or MedicationRequest.doNotPerform = false\n        )\n        and MedicationRequest.intent ~ 'order'\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<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> AlphoraCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"alphoracommon-qualifiedservicerequests\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function QualifiedServiceRequests(value List&lt;FHIR.ServiceRequest&gt;):\n  value ServiceRequest\n    where (\n      //draft | active | on-hold | revoked | completed | entered-in-error | unknown\n      ServiceRequest.status ~ 'active'\n      or ServiceRequest.status ~ 'completed'\n      and ServiceRequest.intent ~ 'order'\n    )\n    and (\n      ServiceRequest.doNotPerform is null\n      or ServiceRequest.doNotPerform = false\n    )</code></pre>\n  </td>\n\n</tr>\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> AlphoraCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"alphoracommon-qualifiedprocedures\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function QualifiedProcedures(value List&lt;FHIR.Procedure&gt;):\n  value Procedure\n    where (\n      //preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown\n      Procedure.status ~ 'completed'\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> AlphoraCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"alphoracommon-qualifiedconditions\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function QualifiedConditions(value List&lt;FHIR.Condition&gt;):\n  value Condition\n    where (\n      FHIRHelpers.ToConcept(Condition.clinicalStatus) ~ FC.\"active\"\n    )\n    and (\n      FHIRHelpers.ToConcept(Condition.verificationStatus) ~ FC.\"confirmed\"\n    )</code></pre>\n  </td>\n\n</tr>\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> AlphoraCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"alphoracommon-absentdata\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function AbsentData(observation List&lt;FHIR.Observation&gt;, enc List&lt;FHIR.Encounter&gt;, code1 System.Code, valueset1 System.ValueSet)\nreturns List&lt;FHIR.Observation&gt;:\n  (QualifiedObservations(observation)) Obs\n    with enc QualifyingEnc\n      such that Coalesce(end of FC.ToInterval(Obs.effective), end of FC.ToInterval(Obs.issued)) same day as end of QualifyingEnc.period\n    where exists(\n        Obs.component c where(\n            c.code as CodeableConcept ~ code1\n            or c.code as CodeableConcept in valueset1\n        ))\n      and not exists(Obs.component c where(c.value is not null))\n      or (ResourceNotDone(Obs).value as FHIR.boolean = true\n        and (ResourceNotDoneReason(Obs).value as CodeableConcept ~ code1\n        or ResourceNotDoneReason(Obs).value as CodeableConcept in valueset1))</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> AlphoraCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"alphoracommon-resourcenotdone\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ResourceNotDone(notDone DomainResource):\n  QICoreModifierExtension(notDone, 'qicore-notDone')</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> AlphoraCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"alphoracommon-qicoremodifierextension\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function QICoreModifierExtension(domainResource DomainResource, url String):\n  singleton from QICoreModifierExtensions(domainResource, url)</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> AlphoraCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"alphoracommon-qicoremodifierextensions\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/* QI-CORE Extensions */\n\n/*\nNOTE: Extensions are not the preferred approach, but are used as a way to access\ncontent that is defined by extensions but not yet surfaced in the\nCQL model info.\n*/\ndefine function QICoreModifierExtensions(domainResource DomainResource, url String):\n  domainResource.modifierExtension E\n    where E.url = ('http://hl7.org/fhir/us/qicore/StructureDefinition/' + url)\n    return E</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> AlphoraCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"alphoracommon-resourcenotdonereason\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ResourceNotDoneReason(notDoneReason DomainResource):\n  QICoreExtension(notDoneReason, 'qicore-notDoneReason')</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> AlphoraCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"alphoracommon-qicoreextension\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function QICoreExtension(domainResource DomainResource, url String):\n  singleton from QICoreExtensions(domainResource, url)</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> AlphoraCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"alphoracommon-qicoreextensions\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function QICoreExtensions(domainResource DomainResource, url String):\n  domainResource.extension E\n    where E.url = ('http://hl7.org/fhir/us/qicore/StructureDefinition/' + url)\n    return E</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\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 LOINC\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"http://terminology.hl7.org/6.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 ConditionClinicalStatusCodes\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"http://terminology.hl7.org/6.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\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 ConditionVerificationStatusCodes\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-condition-ver-status.html\">ConditionVerificationStatus</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-ver-status</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 Screening Assessment\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <code>http://fhir.org/guides/cqf/aphl/chronic-ds/ValueSet/adolescent-depression-screening-assessment</code>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://fhir.org/guides/cqf/aphl/chronic-ds/ValueSet/adolescent-depression-screening-assessment</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 Screening Assessment\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <code>http://fhir.org/guides/cqf/aphl/chronic-ds/ValueSet/adult-depression-screening-assessment</code>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://fhir.org/guides/cqf/aphl/chronic-ds/ValueSet/adult-depression-screening-assessment</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\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>: 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>: Food insecurity risk [HVS]\n        <br/>\n      \n      <em>Code</em>: 88124-3\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>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>Code</em>: confirmed\n      <br/>\n      <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-ver-status</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>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>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<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n\n<td class=\"content-container\">None</td>\n\n\n</tr>\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/R4/patient.html\">Patient</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: use, type, url, extension, 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>: Encounter\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: type, status, 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.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/R4/encounter.html\">Encounter</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: type, status, 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.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/R4/encounter.html\">Encounter</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: type, status, 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.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/R4/observation.html\">Observation</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, status, value, effective, issued, component\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> <code>http://fhir.org/guides/cqf/aphl/chronic-ds/ValueSet/adolescent-depression-screening-assessment</code>\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/R4/observation.html\">Observation</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, status, value, effective, issued, component\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> <code>http://fhir.org/guides/cqf/aphl/chronic-ds/ValueSet/adult-depression-screening-assessment</code>\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/R4/observation.html\">Observation</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, status, value, effective, issued, component\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/88124-3\">LOINC 88124-3</a>: Food insecurity risk [HVS]\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>: MedicationRequest\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/medicationrequest.html\">MedicationRequest</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: medication, status, doNotPerform, intent\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/R4/medicationrequest.html\">MedicationRequest</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: medication, status, doNotPerform, intent\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>: MedicationRequest\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/medicationrequest.html\">MedicationRequest</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: medication.reference, status, doNotPerform, intent\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>: Medication\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/medication.html\">Medication</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: id, code\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>: ServiceRequest\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/servicerequest.html\">ServiceRequest</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, status, intent, doNotPerform\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/R4/servicerequest.html\">ServiceRequest</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, status, intent, doNotPerform\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/R4/procedure.html\">Procedure</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, status\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  </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/R4/procedure.html\">Procedure</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, status\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  </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/R4/coverage.html\">Coverage</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/R4/condition.html\">Condition</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, clinicalStatus, verificationStatus\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  \n  \n\n<tr>\n  <th colspan=\"2\" scope=\"row\" class=\"row-header\">Generated using version 0.5.1-cibuild of the sample-content-ig Liquid templates</th>\n</tr>\n\n    </tbody>\n  </table>\n</div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:contained ( [
a fhir:Library ;
fhir:id [ fhir:v "effective-data-requirements" ] ;
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ] ;
fhir:value [
a fhir:Coding, sct:428171000124102 ;
fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
fhir:code [ fhir:v "428171000124102" ] ;
fhir:display [ fhir:v "Depression Screening Negative (finding)" ]       ]     ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ] ;
fhir:value [
a fhir:Coding, sct:428181000124104 ;
fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
fhir:code [ fhir:v "428181000124104" ] ;
fhir:display [ fhir:v "Depression Screening Positive (finding)" ]       ]     ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ] ;
fhir:value [
a fhir:Coding, loinc:88124-3 ;
fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "88124-3" ] ;
fhir:display [ fhir:v "Food insecurity risk [HVS]" ]       ]     ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ] ;
fhir:value [
a fhir:Coding ;
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/condition-clinical"^^xsd:anyURI ] ;
fhir:code [ fhir:v "active" ]       ]     ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ] ;
fhir:value [
a fhir:Coding ;
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/condition-ver-status"^^xsd:anyURI ] ;
fhir:code [ fhir:v "confirmed" ]       ]     ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ] ;
fhir:value [
a fhir:Coding ;
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/condition-clinical"^^xsd:anyURI ] ;
fhir:code [ fhir:v "recurrence" ]       ]     ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ] ;
fhir:value [
a fhir:Coding ;
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/condition-clinical"^^xsd:anyURI ] ;
fhir:code [ fhir:v "relapse" ]       ]     ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ] ;
fhir:value [
a fhir:Coding, sct:720834000 ;
fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
fhir:code [ fhir:v "720834000" ] ;
fhir:display [ fhir:v "Depression Screening Declined (situation)" ]       ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "SurveillanceDataElementsFHIR4"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Most recent physical home address"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "// Jurisdiction of residence (jurisdiction of the patient)\ndefine \"Most recent physical home address\":\n  First(\n    Patient.address A\n      where A.use = 'home'\n        and A.type = 'physical'\n      sort by end of period desc\n  )"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 0         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "SurveillanceDataElementsFHIR4"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Postal Code of Residence"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"Postal Code of Residence\":\n  \"Most recent physical home address\".postalCode"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 1         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "SDE Postal Code of Residence"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"SDE Postal Code of Residence\":\n  SurveillanceDataElements.\"Postal Code of Residence\""         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 2         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "SurveillanceDataElementsFHIR4"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "State of Residence"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"State of Residence\":\n  \"Most recent physical home address\".state"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 3         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "SDE State of Residence"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"SDE State of Residence\":\n  SurveillanceDataElements.\"State of Residence\""         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 4         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "SupplementalDataElementsFHIR4"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "SDE Race"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"SDE Race\":\n  (flatten (\n      Patient.extension Extension\n        where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race'\n          return Extension.extension\n    )) E\n      where E.url = 'ombCategory'\n        or E.url = 'detailed'\n      return E.value as Coding"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 5         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "SDE Race"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"SDE Race\":\n  SDE.\"SDE Race\""         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 6         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "SupplementalDataElementsFHIR4"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "SDE Sex"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"SDE Sex\":\n  case\n      when Patient.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' }\n      when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' }\n      else null\n    end"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 7         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "SDE Sex"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"SDE Sex\":\n  SDE.\"SDE Sex\""         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 8         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Patient Age 12 to 16 Years at Start of Measurement Period"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "//Numerator\ndefine \"Patient Age 12 to 16 Years at Start of Measurement Period\":\n  AgeInYearsAt(start of \"Measurement Period\") in Interval[12, 16]"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 9         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Qualifying Encounters During Measurement Period"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"Qualifying Encounters During Measurement Period\":\n  (AC.QualifiedEncounters([Encounter: \"Encounter to Screen for Depression\"])\n    union AC.QualifiedEncounters([Encounter: \"Physical Therapy Evaluation\"])\n    union AC.QualifiedEncounters([Encounter: \"Telephone Visits\"])) QualifyingEnc \n    where FC.ToInterval(QualifyingEnc.period) during \"Measurement Period\""         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 10         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Has Adolescent Depression Screening"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"Has Adolescent Depression Screening\":\n  ((AC.QualifiedObservations([Observation: \"Adolescent Depression Screening Assessment\"])) AdolescentScreening\n    with \"Qualifying Encounters During Measurement Period\" QualifyingEnc\n      such that \"Screening Within 14 Days of Encounter\"(AdolescentScreening, QualifyingEnc))"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 11         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Most Recent Adolescent Depression Screening"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "//Adolescent Numerator\ndefine \"Most Recent Adolescent Depression Screening\":\n  AC.MostRecent((\"Has Adolescent Depression Screening\"))"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 12         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Most Recent Adolescent Screening Negative"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"Most Recent Adolescent Screening Negative\":\n  (\"Most Recent Adolescent Depression Screening\" AdolescentScreening\n    where AdolescentScreening.value ~ ToConcept(\"Depression Screening Negative\")) is not null"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 13         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Most Recent Adolescent Positive Depression Screening"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"Most Recent Adolescent Positive Depression Screening\":\n  \"Most Recent Adolescent Depression Screening\" RecentScreening\n    where RecentScreening.value ~ ToConcept(\"Depression Screening Positive\")"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 14         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Follow Up Interventions For Positive Adolescent Depression Screening"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"Follow Up Interventions For Positive Adolescent Depression Screening\":\n  (AC.QualifiedMedicationRequests([MedicationRequest: \"Adolescent Depression Medications\"])\n    union AC.QualifiedServiceRequests([ServiceRequest: \"Referral for Adolescent Depression\"])\n    union AC.QualifiedProcedures([Procedure: \"Follow Up for Adolescent Depression\"])) FollowUpInterventions\n    let \"Intervention Day\": Coalesce(FC.ToInterval(FollowUpInterventions.authoredOn), FC.ToInterval(FollowUpInterventions.performed))\n    with \"Qualifying Encounters During Measurement Period\" QualifyingEnc\n      such that \"Intervention Day\" same day as QualifyingEnc.period\n      or \"Intervention Day\" 2 days or less after day of end of FC.ToInterval(QualifyingEnc.period)"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 15         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Most Recent Adolescent Depression Screening Positive and Follow Up Provided"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"Most Recent Adolescent Depression Screening Positive and Follow Up Provided\":\n  (\"Most Recent Adolescent Positive Depression Screening\" RecentScreening\n  let \"Screening Day\": Coalesce(FC.ToInterval(RecentScreening.effective), FC.ToInterval(RecentScreening.issued))\n  with \"Follow Up Interventions For Positive Adolescent Depression Screening\" FollowUpInterventions\n    such that \"Screening Day\" 14 days or less before start of Coalesce(FC.ToInterval(FollowUpInterventions.authoredOn), FC.ToInterval(FollowUpInterventions.performed))\n  ) is not null"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 16         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Patient Age 17 Years at Start of Measurement Period"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"Patient Age 17 Years at Start of Measurement Period\":\n  AgeInYearsAt(start of \"Measurement Period\") = 17"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 17         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Has Adult Depression Screening"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"Has Adult Depression Screening\":\n  ((AC.QualifiedObservations([Observation: \"Adult Depression Screening Assessment\"])) AdolescentScreening\n    with \"Qualifying Encounters During Measurement Period\" QualifyingEnc\n      such that \"Screening Within 14 Days of Encounter\"(AdolescentScreening, QualifyingEnc))"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 18         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Most Recent Adult Depression Screening"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "//Adult Numerator\ndefine \"Most Recent Adult Depression Screening\":\n  AC.MostRecent((\"Has Adult Depression Screening\"))"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 19         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Most Recent Adult Screening Negative"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"Most Recent Adult Screening Negative\":\n  (\"Most Recent Adult Depression Screening\" AdultScreening\n    where AdultScreening.value ~ ToConcept(\"Depression Screening Negative\")) is not null"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 20         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Most Recent Adult Positive Depression Screening"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"Most Recent Adult Positive Depression Screening\":\n  \"Most Recent Adult Depression Screening\" RecentScreening\n    where RecentScreening.value ~ ToConcept(\"Depression Screening Positive\")"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 21         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Follow Up Interventions For Positive Adult Depression Screening"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"Follow Up Interventions For Positive Adult Depression Screening\":\n  ((AC.QualifiedMedicationRequests([MedicationRequest: \"Adult Depression Medications\"])\n    union AC.QualifiedServiceRequests([ServiceRequest: \"Referral for Adult Depression\"])\n    union AC.QualifiedProcedures([Procedure: \"Follow Up for Adult Depression\"]))) FollowUpInterventions\n    let \"Intervention Day\": Coalesce(FC.ToInterval(FollowUpInterventions.authoredOn), FC.ToInterval(FollowUpInterventions.performed))\n    with \"Qualifying Encounters During Measurement Period\" QualifyingEnc\n      such that \"Intervention Day\" same day as QualifyingEnc.period\n      or \"Intervention Day\" 2 days or less after day of end of FC.ToInterval(QualifyingEnc.period)"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 22         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Most Recent Adult Depression Screening Positive and Follow Up Provided"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"Most Recent Adult Depression Screening Positive and Follow Up Provided\":\n  (\"Most Recent Adult Positive Depression Screening\" RecentScreening\n  let \"Screening Day\": Coalesce(FC.ToInterval(RecentScreening.effective), FC.ToInterval(RecentScreening.issued))\n  with \"Follow Up Interventions For Positive Adult Depression Screening\" FollowUpInterventions\n    such that \"Screening Day\" 14 days or less before start of Coalesce(FC.ToInterval(FollowUpInterventions.authoredOn), FC.ToInterval(FollowUpInterventions.performed))\n  ) is not null"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 23         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Patient Age 18 Years or Older at Start of Measurement Period"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"Patient Age 18 Years or Older at Start of Measurement Period\":\n  AgeInYearsAt(start of \"Measurement Period\") >= 18"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 24         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Numerator"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"Numerator\":\n  ( \"Patient Age 12 to 16 Years at Start of Measurement Period\"\n      and ( \"Most Recent Adolescent Screening Negative\"\n        or \"Most Recent Adolescent Depression Screening Positive and Follow Up Provided\" )\n)\n  or ( \"Patient Age 17 Years at Start of Measurement Period\"\n    and ( \"Most Recent Adolescent Screening Negative\"\n      or \"Most Recent Adolescent Depression Screening Positive and Follow Up Provided\"\n      or \"Most Recent Adult Screening Negative\"\n      or  \"Most Recent Adult Depression Screening Positive and Follow Up Provided\") \n  )\n  or ( \"Patient Age 18 Years or Older at Start of Measurement Period\"\n    and ( \"Most Recent Adult Screening Negative\"\n      or \"Most Recent Adult Depression Screening Positive and Follow Up Provided\" ) )"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 25         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Initial Population"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"Initial Population\":\n  AgeInYearsAt(start of \"Measurement Period\") >= 12\n    and exists(\n      \"Qualifying Encounters During Measurement Period\" E \n        where FC.ToInterval(E.period) during \"Measurement Period\"\n    )"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 26         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Denominator"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"Denominator\":\n  \"Initial Population\""         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 27         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "SupplementalDataElementsFHIR4"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "SDE Payer"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"SDE Payer\":\n  [Coverage: type in \"Payer\"] Payer\n        return {\n          code: Payer.type,\n          period: Payer.period\n        }"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 28         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "SDE Payer"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"SDE Payer\":\n  SDE.\"SDE Payer\""         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 29         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "SurveillanceDataElementsFHIR4"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Food Insecurity Risk Status"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "// Jurisdiction of care (jurisdiction of the most recent encounter)\n// TODO:\n//define \"Most recent address of care\":\n\n// NOTE: Included in eICR\n// Occupational Data for Health - Past or Present Job\n// http://hl7.org/fhir/us/odh/StructureDefinition-odh-PastOrPresentJob.html\n// Observation: LOINC#11341-5, valueCodeableConcept in https://phinvads.cdc.gov/vads/ViewValueSet.action?oid=2.16.840.1.114222.4.11.7186\n\n// Social Determinants of Health (SDOH)\n// http://build.fhir.org/ig/HL7/fhir-sdoh-clinicalcare/StructureDefinition-SDOHCC-ObservationScreeningResponse.html\n// Food insecurity risk: http://build.fhir.org/ig/HL7/fhir-sdoh-clinicalcare/Observation-SDOHCC-ObservationResponseHungerVitalSignQuestion3Example.html\n// Observation: LOINC#88124-3, valueCodeableConcept in https://loinc.org/LL2510-7/ (At risk, No risk)\ndefine \"Food Insecurity Risk Status\":\n  First(\n    [Observation: \"Food insecurity risk [HVS]\"] O\n      sort by issued desc\n  ).value as CodeableConcept"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 30         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "SDE Food Insecurity Risk Status"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"SDE Food Insecurity Risk Status\":\n  SurveillanceDataElements.\"Food Insecurity Risk Status\""         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 31         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "SupplementalDataElementsFHIR4"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "SDE Ethnicity"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"SDE Ethnicity\":\n  (flatten (\n      Patient.extension Extension\n        where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'\n          return Extension.extension\n    )) E\n      where E.url = 'ombCategory'\n        or E.url = 'detailed'\n      return E.value as Coding"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 32         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "SDE Ethnicity"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"SDE Ethnicity\":\n  SDE.\"SDE Ethnicity\""         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 33         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "SurveillanceDataElementsFHIR4"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Age"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "// Age\ndefine \"Age\":\n  AgeInYearsAt(end of \"Measurement Period\")"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 34         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "SDE Age"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"SDE Age\":\n  SurveillanceDataElements.\"Age\""         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 35         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "History of Bipolar Diagnosis Before Qualifying Encounter"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "//Denominator Exclusion \ndefine \"History of Bipolar Diagnosis Before Qualifying Encounter\": \n  (AC.QualifiedConditions([Condition: \"Bipolar Disorder\"])) BipolarDiagnosis \n  with \"Qualifying Encounters During Measurement Period\" QualifyingEnc\n    such that FC.ToPrevalenceInterval(BipolarDiagnosis) starts before QualifyingEnc.period"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 36         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Denominator Exclusions"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"Denominator Exclusions\":\n  exists(\"History of Bipolar Diagnosis Before Qualifying Encounter\")"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 37         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Medical or Patient Reason for Not Screening Adolescent for Depression"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "//Denominator Exception\ndefine \"Medical or Patient Reason for Not Screening Adolescent for Depression\":\n  AC.AbsentData([Observation: \"Adolescent Depression Screening Assessment\"], \"Qualifying Encounters During Measurement Period\", \"Depression Screening Declined\", \"Medical Reason\")"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 38         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Medical or Patient Reason for Not Screening Adult for Depression"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"Medical or Patient Reason for Not Screening Adult for Depression\":\n  AC.AbsentData([Observation: \"Adult Depression Screening Assessment\"], \"Qualifying Encounters During Measurement Period\", \"Depression Screening Declined\", \"Medical Reason\")"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 39         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Denominator Exceptions"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define \"Denominator Exceptions\":\n  (exists(\"Medical or Patient Reason for Not Screening Adolescent for Depression\")\n    and not exists(\"Has Adolescent Depression Screening\"))\n  or (exists(\"Medical or Patient Reason for Not Screening Adult for Depression\")\n    and not exists(\"Has Adult Depression Screening\"))"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 40         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "FHIRHelpers"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "ToString"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function ToString(value AddressUse): value.value"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 41         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "FHIRHelpers"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "ToString"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function ToString(value AddressType): value.value"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 42         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "FHIRHelpers"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "ToInterval"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function ToInterval(period FHIR.Period):\n    if period is null then\n        null\n    else\n        if period.\"start\" is null then\n            Interval(period.\"start\".value, period.\"end\".value]\n        else\n            Interval[period.\"start\".value, period.\"end\".value]"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 43         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "FHIRHelpers"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "ToString"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function ToString(value uri): value.value"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 44         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "FHIRHelpers"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "ToString"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function ToString(value AdministrativeGender): value.value"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 45         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "AlphoraCommon"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "MostRecent"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function MostRecent(observations List<Observation>):\n  Last(\n    observations O\n      sort by start of FC.ToInterval(effective)\n  )"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 46         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "AlphoraCommon"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "QualifiedObservations"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function QualifiedObservations(value List<FHIR.Observation>):\n  value Observation\n		where (\n      //registered | preliminary | final | amended | corrected | cancelled | entered-in-error | unknown\n      Observation.status ~ 'final'\n			or Observation.status ~ 'amended'\n			or Observation.status ~ 'corrected'\n		)"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 47         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "FHIRHelpers"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "ToString"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function ToString(value ObservationStatus): value.value"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 48         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "AlphoraCommon"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "QualifiedEncounters"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "/* Common Resource Qualifications and Negations */\ndefine function QualifiedEncounters(value List<FHIR.Encounter>):\n  value Encounter\n    where (\n      //planned | arrived | triaged | in-progress | onleave | finished | cancelled | entered-in-error | unknown\n      Encounter.status ~ 'arrived'\n      or Encounter.status ~ 'in-progress'\n      or Encounter.status ~ 'finished'\n      or Encounter.status ~ 'onleave'\n      or Encounter.status ~ 'triaged'\n    )"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 49         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "FHIRHelpers"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "ToString"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function ToString(value EncounterStatus): value.value"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 50         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "FHIRCommon"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "ToInterval"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "/*\n@description: Normalizes a value that is a choice of timing-valued types to an equivalent interval\n@comment: Normalizes a choice type of FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instance, FHIR.string, FHIR.Age, or FHIR.Range types\nto an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible\nrepresentations for timing-valued elements in FHIR, allowing this function to be used across any resource.\n\nThe input can be provided as a dateTime, Period, Timing, instant, string, Age, or Range.\nThe intent of this function is to provide a clear and concise mechanism to treat single\nelements that have multiple possible representations as intervals so that logic doesn't have to account\nfor the variability. More complex calculations (such as medication request period or dispense period\ncalculation) need specific guidance and consideration. That guidance may make use of this function, but\nthe focus of this function is on single element calculations where the semantics are unambiguous.\nIf the input is a dateTime, the result a DateTime Interval beginning and ending on that dateTime.\nIf the input is a Period, the result is a DateTime Interval.\nIf the input is a Timing, an error is raised indicating a single interval cannot be computed from a Timing.\nIf the input is an instant, the result is a DateTime Interval beginning and ending on that instant.\nIf the input is a string, an error is raised indicating a single interval cannot be computed from a string.\nIf the input is an Age, the result is a DateTime Interval beginning when the patient was the given Age,\nand ending immediately prior to when the patient was the given Age plus one year.\nIf the input is a Range, the result is a DateTime Interval beginning when the patient was the Age given\nby the low end of the Range, and ending immediately prior to when the patient was the Age given by the\nhigh end of the Range plus one year.\n\nNOTE: Due to the\ncomplexity of determining a single interval from a Timing or String type, this function will throw a run-time exception if it is used\nwith a Timing or String.\n*/\ndefine function ToInterval(choice Choice<FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instant, FHIR.string, FHIR.Age, FHIR.Range>):\n  case\n	  when choice is FHIR.dateTime then\n    	Interval[FHIRHelpers.ToDateTime(choice as FHIR.dateTime), FHIRHelpers.ToDateTime(choice as FHIR.dateTime)]\n		when choice is FHIR.Period then\n  		FHIRHelpers.ToInterval(choice as FHIR.Period)\n		when choice is FHIR.instant then\n			Interval[FHIRHelpers.ToDateTime(choice as FHIR.instant), FHIRHelpers.ToDateTime(choice as FHIR.instant)]\n		when choice is FHIR.Age then\n		  Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age),\n			  FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age) + 1 year)\n		when choice is FHIR.Range then\n		  Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).low),\n			  FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).high) + 1 year)\n		when choice is FHIR.Timing then\n			//Interval[FHIRHelpers.ToDateTime(choice as FHIR.timing), FHIRHelpers.ToDateTime(choice as FHIR.dateTime)]\n		  Message(null as Interval<DateTime>, true, '1', 'Error', 'Cannot compute a single interval from a Timing type')\n    when choice is FHIR.string then\n      Message(null as Interval<DateTime>, true, '1', 'Error', 'Cannot compute an interval from a String value')\n		else\n			null as Interval<DateTime>\n	end"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 51         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "FHIRHelpers"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "ToDateTime"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function ToDateTime(value dateTime): value.value"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 52         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "FHIRHelpers"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "ToDateTime"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function ToDateTime(value instant): value.value"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 53         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "FHIRHelpers"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "ToDate"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function ToDate(value date): value.value"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 54         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "FHIRHelpers"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "ToQuantity"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function ToQuantity(quantity FHIR.Quantity):\n    case\n        when quantity is null then null\n        when quantity.value is null then null\n        when quantity.comparator is not null then\n            Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')\n        when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'\n              or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then\n            System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }\n        else\n            Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' & quantity.unit.value & ' (' & quantity.system.value & '|' & quantity.code.value & ')')\n    end"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 55         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "FHIRHelpers"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "ToCalendarUnit"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function ToCalendarUnit(unit System.String):\n    case unit\n        when 'ms' then 'millisecond'\n        when 's' then 'second'\n        when 'min' then 'minute'\n        when 'h' then 'hour'\n        when 'd' then 'day'\n        when 'wk' then 'week'\n        when 'mo' then 'month'\n        when 'a' then 'year'\n        else unit\n    end"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 56         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DepressionScreeningandFollowUp"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Screening Within 14 Days of Encounter"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function \"Screening Within 14 Days of Encounter\"(observation FHIR.Observation, encounter FHIR.Encounter)\nreturns System.Boolean:\n  Coalesce(end of FC.ToInterval(observation.effective), observation.issued) 14 days or less before day of start of encounter.period\n    and observation.value is not null"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 57         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "FHIRHelpers"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "ToConcept"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function ToConcept(concept FHIR.CodeableConcept):\n    if concept is null then\n        null\n    else\n        System.Concept {\n            codes: concept.coding C return ToCode(C),\n            display: concept.text.value\n        }"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 58         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "FHIRHelpers"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "ToCode"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function ToCode(coding FHIR.Coding):\n    if coding is null then\n        null\n    else\n        System.Code {\n          code: coding.code.value,\n          system: coding.system.value,\n          version: coding.version.value,\n          display: coding.display.value\n        }"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 59         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "AlphoraCommon"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "QualifiedMedicationRequests"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function QualifiedMedicationRequests(value List<FHIR.MedicationRequest>):\n  value MedicationRequest\n    where (\n      //active | on-hold | cancelled | completed | entered-in-error | stopped | draft | unknown\n      (MedicationRequest.status ~ 'active'\n        or MedicationRequest.status ~ 'completed'\n      )\n        and (\n          MedicationRequest.doNotPerform is null\n          or MedicationRequest.doNotPerform = false\n        )\n        and MedicationRequest.intent ~ 'order'\n    )"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 60         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "FHIRHelpers"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "ToString"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function ToString(value MedicationRequestStatus): value.value"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 61         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "FHIRHelpers"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "ToBoolean"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function ToBoolean(value boolean): value.value"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 62         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "FHIRHelpers"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "ToString"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function ToString(value MedicationRequestIntent): value.value"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 63         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "FHIRHelpers"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "ToString"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function ToString(value string): value.value"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 64         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "AlphoraCommon"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "QualifiedServiceRequests"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function QualifiedServiceRequests(value List<FHIR.ServiceRequest>):\n  value ServiceRequest\n    where (\n      //draft | active | on-hold | revoked | completed | entered-in-error | unknown\n      ServiceRequest.status ~ 'active'\n      or ServiceRequest.status ~ 'completed'\n      and ServiceRequest.intent ~ 'order'\n    )\n    and (\n      ServiceRequest.doNotPerform is null\n      or ServiceRequest.doNotPerform = false\n    )"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 65         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "FHIRHelpers"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "ToString"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function ToString(value ServiceRequestStatus): value.value"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 66         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "FHIRHelpers"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "ToString"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function ToString(value ServiceRequestIntent): value.value"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 67         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "AlphoraCommon"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "QualifiedProcedures"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function QualifiedProcedures(value List<FHIR.Procedure>):\n  value Procedure\n    where (\n      //preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown\n      Procedure.status ~ 'completed'\n    )"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 68         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "FHIRHelpers"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "ToString"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function ToString(value ProcedureStatus): value.value"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 69         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "AlphoraCommon"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "QualifiedConditions"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function QualifiedConditions(value List<FHIR.Condition>):\n  value Condition\n    where (\n      FHIRHelpers.ToConcept(Condition.clinicalStatus) ~ FC.\"active\"\n    )\n    and (\n      FHIRHelpers.ToConcept(Condition.verificationStatus) ~ FC.\"confirmed\"\n    )"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 70         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "FHIRCommon"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "ToPrevalenceInterval"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "/*\n@description: Returns an interval representing the normalized prevalence period of a given Condition resource.\n@comment: Uses the ToInterval and ToAbatementInterval functions to determine the widest potential interval from\nonset to abatement as specified in the given Condition.\n*/\ndefine function ToPrevalenceInterval(condition Condition):\nif condition.clinicalStatus ~ \"active\"\n  or condition.clinicalStatus ~ \"recurrence\"\n  or condition.clinicalStatus ~ \"relapse\" then\n  Interval[start of ToInterval(condition.onset), end of ToAbatementInterval(condition)]\nelse\n  Interval[start of ToInterval(condition.onset), end of ToAbatementInterval(condition))"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 71         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "FHIRCommon"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "ToAbatementInterval"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "/*\n@description: Returns an interval representing the normalized Abatement of a given Condition resource.\n@comment: NOTE: Due to the complexity of determining an interval from a String, this function will throw\na run-time exception if used with a Condition instance that has a String as the abatement value.\n*/\ndefine function ToAbatementInterval(condition Condition):\n	if condition.abatement is FHIR.dateTime then\n	  Interval[FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime), FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime)]\n	else if condition.abatement is FHIR.Period then\n	  FHIRHelpers.ToInterval(condition.abatement as FHIR.Period)\n	else if condition.abatement is FHIR.string then\n    Message(null as Interval<DateTime>, true, '1', 'Error', 'Cannot compute an interval from a String value')\n	else if condition.abatement is FHIR.Age then\n		Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age),\n			FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age) + 1 year)\n	else if condition.abatement is FHIR.Range then\n	  Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).low),\n		  FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).high) + 1 year)\n	else if condition.abatement is FHIR.boolean then\n	  Interval[end of ToInterval(condition.onset), condition.recordedDate)\n	else null"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 72         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "AlphoraCommon"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "AbsentData"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function AbsentData(observation List<FHIR.Observation>, enc List<FHIR.Encounter>, code1 System.Code, valueset1 System.ValueSet)\nreturns List<FHIR.Observation>:\n  (QualifiedObservations(observation)) Obs\n    with enc QualifyingEnc\n      such that Coalesce(end of FC.ToInterval(Obs.effective), end of FC.ToInterval(Obs.issued)) same day as end of QualifyingEnc.period\n    where exists(\n        Obs.component c where(\n            c.code as CodeableConcept ~ code1\n            or c.code as CodeableConcept in valueset1\n        ))\n      and not exists(Obs.component c where(c.value is not null))\n      or (ResourceNotDone(Obs).value as FHIR.boolean = true\n        and (ResourceNotDoneReason(Obs).value as CodeableConcept ~ code1\n        or ResourceNotDoneReason(Obs).value as CodeableConcept in valueset1))"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 73         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "AlphoraCommon"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "ResourceNotDone"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function ResourceNotDone(notDone DomainResource):\n  QICoreModifierExtension(notDone, 'qicore-notDone')"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 74         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "AlphoraCommon"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "QICoreModifierExtension"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function QICoreModifierExtension(domainResource DomainResource, url String):\n  singleton from QICoreModifierExtensions(domainResource, url)"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 75         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "AlphoraCommon"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "QICoreModifierExtensions"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "/* QI-CORE Extensions */\n\n/*\nNOTE: Extensions are not the preferred approach, but are used as a way to access\ncontent that is defined by extensions but not yet surfaced in the\nCQL model info.\n*/\ndefine function QICoreModifierExtensions(domainResource DomainResource, url String):\n  domainResource.modifierExtension E\n    where E.url = ('http://hl7.org/fhir/us/qicore/StructureDefinition/' + url)\n    return E"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 76         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "AlphoraCommon"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "ResourceNotDoneReason"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function ResourceNotDoneReason(notDoneReason DomainResource):\n  QICoreExtension(notDoneReason, 'qicore-notDoneReason')"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 77         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "AlphoraCommon"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "QICoreExtension"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function QICoreExtension(domainResource DomainResource, url String):\n  singleton from QICoreExtensions(domainResource, url)"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 78         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "AlphoraCommon"         ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "QICoreExtensions"         ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "define function QICoreExtensions(domainResource DomainResource, url String):\n  domainResource.extension E\n    where E.url = ('http://hl7.org/fhir/us/qicore/StructureDefinition/' + url)\n    return E"         ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [
a fhir:integer ;
fhir:v 79         ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] ) ;
fhir:name [ fhir:v "EffectiveDataRequirements" ] ;
fhir:status [ fhir:v "active" ] ;
fhir:type [
      ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/library-type"^^xsd:anyURI ] ;
fhir:code [ fhir:v "module-definition" ]       ] )     ] ;
    ( fhir:relatedArtifact [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Library SurveillanceDataElements" ] ;
fhir:resource [
fhir:v "http://fhir.org/guides/cqf/aphl/chronic-ds/Library/SurveillanceDataElementsFHIR4|1.0.000"^^xsd:anyURI ;
fhir:link <http://fhir.org/guides/cqf/aphl/chronic-ds/Library/SurveillanceDataElementsFHIR4|1.0.000>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Library FHIRHelpers" ] ;
fhir:resource [
fhir:v "http://fhir.org/guides/cqf/aphl/chronic-ds/Library/FHIRHelpers|4.1.000"^^xsd:anyURI ;
fhir:link <http://fhir.org/guides/cqf/aphl/chronic-ds/Library/FHIRHelpers|4.1.000>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Library SDE" ] ;
fhir:resource [
fhir:v "http://fhir.org/guides/cqf/aphl/chronic-ds/Library/SupplementalDataElementsFHIR4|2.0.000"^^xsd:anyURI ;
fhir:link <http://fhir.org/guides/cqf/aphl/chronic-ds/Library/SupplementalDataElementsFHIR4|2.0.000>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Library AC" ] ;
fhir:resource [
fhir:v "http://fhir.org/guides/cqf/aphl/chronic-ds/Library/AlphoraCommon"^^xsd:anyURI ;
fhir:link <http://fhir.org/guides/cqf/aphl/chronic-ds/Library/AlphoraCommon>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Library FC" ] ;
fhir:resource [
fhir:v "http://fhir.org/guides/cqf/aphl/chronic-ds/Library/FHIRCommon|1.1.000"^^xsd:anyURI ;
fhir:link <http://fhir.org/guides/cqf/aphl/chronic-ds/Library/FHIRCommon|1.1.000>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Library Common" ] ;
fhir:resource [
fhir:v "http://fhir.org/guides/cqf/aphl/chronic-ds/Library/MATGlobalCommonFunctionsFHIR4|6.0.000"^^xsd:anyURI ;
fhir:link <http://fhir.org/guides/cqf/aphl/chronic-ds/Library/MATGlobalCommonFunctionsFHIR4|6.0.000>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Code system SNOMEDCT" ] ;
fhir:resource [
fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
fhir:link <http://snomed.info/sct>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Code system LOINC" ] ;
fhir:resource [
fhir:v "http://loinc.org"^^xsd:anyURI ;
fhir:link <http://loinc.org>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Code system ConditionClinicalStatusCodes" ] ;
fhir:resource [
fhir:v "http://terminology.hl7.org/CodeSystem/condition-clinical"^^xsd:anyURI ;
fhir:link <http://terminology.hl7.org/CodeSystem/condition-clinical>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Code system ConditionVerificationStatusCodes" ] ;
fhir:resource [
fhir:v "http://terminology.hl7.org/CodeSystem/condition-ver-status"^^xsd:anyURI ;
fhir:link <http://terminology.hl7.org/CodeSystem/condition-ver-status>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Adolescent Depression Screening Assessment" ] ;
fhir:resource [
fhir:v "http://fhir.org/guides/cqf/aphl/chronic-ds/ValueSet/adolescent-depression-screening-assessment"^^xsd:anyURI ;
fhir:link <http://fhir.org/guides/cqf/aphl/chronic-ds/ValueSet/adolescent-depression-screening-assessment>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Encounter to Screen for Depression" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1916"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1916>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Physical Therapy Evaluation" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1022"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1022>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Telephone Visits" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Adolescent Depression Medications" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1567"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1567>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Referral for Adolescent Depression" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1570"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1570>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Follow Up for Adolescent Depression" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1569"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1569>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Adult Depression Screening Assessment" ] ;
fhir:resource [
fhir:v "http://fhir.org/guides/cqf/aphl/chronic-ds/ValueSet/adult-depression-screening-assessment"^^xsd:anyURI ;
fhir:link <http://fhir.org/guides/cqf/aphl/chronic-ds/ValueSet/adult-depression-screening-assessment>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Adult Depression Medications" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1566"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1566>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Referral for Adult Depression" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1571"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1571>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Follow Up for Adult Depression" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1568"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1568>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Payer" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Bipolar Disorder" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.67.1.101.1.128"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.67.1.101.1.128>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Medical Reason" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1007"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1007>       ]     ] ) ;
    ( fhir:parameter [
fhir:name [ fhir:v "Measurement Period" ] ;
fhir:use [ fhir:v "in" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:type [ fhir:v "Period" ]     ] [
fhir:name [ fhir:v "SDE Postal Code of Residence" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:type [ fhir:v "string" ]     ] [
fhir:name [ fhir:v "SDE State of Residence" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:type [ fhir:v "string" ]     ] [
fhir:name [ fhir:v "SDE Race" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "Coding" ]     ] [
fhir:name [ fhir:v "SDE Sex" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:type [ fhir:v "Coding" ]     ] [
fhir:name [ fhir:v "Numerator" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:type [ fhir:v "boolean" ]     ] [
fhir:name [ fhir:v "Denominator" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:type [ fhir:v "boolean" ]     ] [
fhir:name [ fhir:v "SDE Payer" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "Resource" ]     ] [
fhir:name [ fhir:v "SDE Food Insecurity Risk Status" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:type [ fhir:v "CodeableConcept" ]     ] [
fhir:name [ fhir:v "Initial Population" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:type [ fhir:v "boolean" ]     ] [
fhir:name [ fhir:v "SDE Ethnicity" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "Coding" ]     ] [
fhir:name [ fhir:v "SDE Age" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:type [ fhir:v "integer" ]     ] [
fhir:name [ fhir:v "Denominator Exclusions" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:type [ fhir:v "boolean" ]     ] [
fhir:name [ fhir:v "Denominator Exceptions" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "1" ] ;
fhir:type [ fhir:v "boolean" ]     ] ) ;
    ( fhir:dataRequirement [
fhir:type [ fhir:v "Patient" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/StructureDefinition/Patient"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Patient>       ] ) ;
      ( fhir:mustSupport [ fhir:v "use" ] [ fhir:v "type" ] [ fhir:v "url" ] [ fhir:v "extension" ] [ fhir:v "value" ] )     ] [
fhir:type [ fhir:v "Encounter" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/StructureDefinition/Encounter"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter>       ] ) ;
      ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "status" ] [ fhir:v "period" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "type" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1916"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1916>         ]       ] )     ] [
fhir:type [ fhir:v "Encounter" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/StructureDefinition/Encounter"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter>       ] ) ;
      ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "status" ] [ fhir:v "period" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "type" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1022"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1022>         ]       ] )     ] [
fhir:type [ fhir:v "Encounter" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/StructureDefinition/Encounter"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter>       ] ) ;
      ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "status" ] [ fhir:v "period" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "type" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080>         ]       ] )     ] [
fhir:type [ fhir:v "Observation" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/StructureDefinition/Observation"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Observation>       ] ) ;
      ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "status" ] [ fhir:v "value" ] [ fhir:v "effective" ] [ fhir:v "issued" ] [ fhir:v "component" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://fhir.org/guides/cqf/aphl/chronic-ds/ValueSet/adolescent-depression-screening-assessment"^^xsd:anyURI ;
fhir:link <http://fhir.org/guides/cqf/aphl/chronic-ds/ValueSet/adolescent-depression-screening-assessment>         ]       ] )     ] [
fhir:type [ fhir:v "Observation" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/StructureDefinition/Observation"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Observation>       ] ) ;
      ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "status" ] [ fhir:v "value" ] [ fhir:v "effective" ] [ fhir:v "issued" ] [ fhir:v "component" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://fhir.org/guides/cqf/aphl/chronic-ds/ValueSet/adult-depression-screening-assessment"^^xsd:anyURI ;
fhir:link <http://fhir.org/guides/cqf/aphl/chronic-ds/ValueSet/adult-depression-screening-assessment>         ]       ] )     ] [
fhir:type [ fhir:v "Observation" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/StructureDefinition/Observation"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Observation>       ] ) ;
      ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "status" ] [ fhir:v "value" ] [ fhir:v "effective" ] [ fhir:v "issued" ] [ fhir:v "component" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
        ( fhir:code [
a loinc:88124-3 ;
fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "88124-3" ] ;
fhir:display [ fhir:v "Food insecurity risk [HVS]" ]         ] )       ] )     ] [
fhir:type [ fhir:v "MedicationRequest" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationRequest"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/MedicationRequest>       ] ) ;
      ( fhir:mustSupport [ fhir:v "medication" ] [ fhir:v "status" ] [ fhir:v "doNotPerform" ] [ fhir:v "intent" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "medication" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1567"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1567>         ]       ] )     ] [
fhir:type [ fhir:v "MedicationRequest" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationRequest"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/MedicationRequest>       ] ) ;
      ( fhir:mustSupport [ fhir:v "medication" ] [ fhir:v "status" ] [ fhir:v "doNotPerform" ] [ fhir:v "intent" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "medication" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1566"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1566>         ]       ] )     ] [
fhir:type [ fhir:v "MedicationRequest" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationRequest"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/MedicationRequest>       ] ) ;
      ( fhir:mustSupport [ fhir:v "medication.reference" ] [ fhir:v "status" ] [ fhir:v "doNotPerform" ] [ fhir:v "intent" ] )     ] [
fhir:type [ fhir:v "Medication" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/StructureDefinition/Medication"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Medication>       ] ) ;
      ( fhir:mustSupport [ fhir:v "id" ] [ fhir:v "code" ] )     ] [
fhir:type [ fhir:v "ServiceRequest" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/StructureDefinition/ServiceRequest"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/ServiceRequest>       ] ) ;
      ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "status" ] [ fhir:v "intent" ] [ fhir:v "doNotPerform" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1570"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1570>         ]       ] )     ] [
fhir:type [ fhir:v "ServiceRequest" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/StructureDefinition/ServiceRequest"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/ServiceRequest>       ] ) ;
      ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "status" ] [ fhir:v "intent" ] [ fhir:v "doNotPerform" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1571"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1571>         ]       ] )     ] [
fhir:type [ fhir:v "Procedure" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/StructureDefinition/Procedure"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Procedure>       ] ) ;
      ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "status" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1569"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1569>         ]       ] )     ] [
fhir:type [ fhir:v "Procedure" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/StructureDefinition/Procedure"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Procedure>       ] ) ;
      ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "status" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1568"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1568>         ]       ] )     ] [
fhir:type [ fhir:v "Coverage" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/StructureDefinition/Coverage"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Coverage>       ] ) ;
      ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "type" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591>         ]       ] )     ] [
fhir:type [ fhir:v "Condition" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/StructureDefinition/Condition"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Condition>       ] ) ;
      ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "clinicalStatus" ] [ fhir:v "verificationStatus" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.67.1.101.1.128"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.67.1.101.1.128>         ]       ] )     ] )
  ] ) ; # 
  fhir:extension ( [
fhir:id [ fhir:v "cqf-tooling" ] ;
fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-softwaresystem"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Device/cqf-tooling" ]     ]
  ] [
fhir:url [ fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements"^^xsd:anyURI ] ;
fhir:value [
a fhir:canonical ;
fhir:v "#effective-data-requirements"^^xsd:anyURI     ]
  ] ) ; # 
  fhir:url [ fhir:v "http://fhir.org/guides/cqf/aphl/chronic-ds/Measure/DepressionScreeningandFollowUp"^^xsd:anyURI] ; # 
  fhir:identifier ( [
fhir:use [ fhir:v "usual" ] ;
fhir:system [ fhir:v "short-name"^^xsd:anyURI ] ;
fhir:value [ fhir:v "CMS2v13" ]
  ] [
fhir:use [ fhir:v "official" ] ;
fhir:system [ fhir:v "publisher"^^xsd:anyURI ] ;
fhir:value [ fhir:v "134" ]
  ] [
fhir:use [ fhir:v "official" ] ;
fhir:system [ fhir:v "http://hl7.org/fhir/cqi/ecqm/Measure/Identifier/guid"^^xsd:anyURI ] ;
fhir:value [ fhir:v "2c928083-8651-08a3-0186-c82995a91d28" ]
  ] ) ; # 
  fhir:version [ fhir:v "0.1.0"] ; # 
  fhir:name [ fhir:v "DepressionScreeningandFollowUp"] ; # 
  fhir:title [ fhir:v "Preventive Care and Screening: Screening for Depression and Follow-Up Plan"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:experimental [ fhir:v false] ; # 
  fhir:date [ fhir:v "2025-09-25T07:40:03-06:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "Clinical Quality Framework"] ; # 
  fhir:contact ( [
    ( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "http://cqframework.org" ]     ] )
  ] ) ; # 
  fhir:description [ fhir:v "Percentage of patients aged 12 years and older screened for depression on the date of the encounter or up to 14 days prior to the date of the encounter using an age-appropriate standardized depression screening tool AND if positive, a follow-up plan is documented on the date of or up to two days after the date of the qualifying encounter"] ; # 
  fhir:jurisdiction ( [
    ( fhir:coding [
fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ] ;
fhir:code [ fhir:v "001" ]     ] )
  ] ) ; # 
  fhir:purpose [ fhir:v "Unknown"] ; # 
  fhir:copyright [ fhir:v "Limited proprietary coding is contained in the measure specifications for convenience. Users of the proprietary code sets should obtain all necessary licenses from the owners of these code sets. CPT(R) contained in the Measure specifications is copyright 2004-2022 American Medical Association. LOINC(R) is copyright 2004-2022 Regenstrief Institute, Inc. This material contains SNOMED Clinical Terms(R) (SNOMED CT[R]) copyright 2004-2022 International Health Terminology Standards Development Organisation. ICD-10 is copyright 2022 World Health Organization. All Rights Reserved."] ; # 
  fhir:effectivePeriod [
fhir:start [ fhir:v "2024-01-01"^^xsd:date ] ;
fhir:end [ fhir:v "2024-12-31"^^xsd:date ]
  ] ; # 
  fhir:library ( [
fhir:v "http://fhir.org/guides/cqf/aphl/chronic-ds/Library/DepressionScreeningandFollowUp"^^xsd:anyURI ;
fhir:link <http://fhir.org/guides/cqf/aphl/chronic-ds/Library/DepressionScreeningandFollowUp>
  ] ) ; # 
  fhir:disclaimer [ fhir:v "These performance measures are not clinical guidelines and do not establish a standard of medical care, and have not been tested for all potential applications. THE MEASURES AND SPECIFICATIONS ARE PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND. Due to technical limitations, registered trademarks are indicated by (R) or [R] and unregistered trademarks are indicated by (TM) or [TM]."] ; # 
  fhir:scoring [
    ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-scoring"^^xsd:anyURI ] ;
fhir:code [ fhir:v "proportion" ] ;
fhir:display [ fhir:v "Proportion" ]     ] )
  ] ; # 
  fhir:type ( [
    ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-type"^^xsd:anyURI ] ;
fhir:code [ fhir:v "process" ] ;
fhir:display [ fhir:v "process" ]     ] )
  ] ) ; # 
  fhir:rationale [ fhir:v "Depression affects more than two hundred sixty million people across the world and is a leading cause of disability, with a variety of depressive disorders that are independent risk factors for chronic diseases, such as cardiovascular disease and diabetes, lending screening for depression as paramount to identify depressive disorders that can affect the most vulnerable populations (Costantini et al., 2021). Results from a 2018 U.S. survey indicated that 14.4 percent of adolescents (3.5 million adolescents) had a major depressive episode (MDE) in the past year, with nine percent of adolescents (2.4 million adolescents) having one MDE with severe impairment (Substance Abuse and Mental Health Services Administration, 2019). The odds of a diagnosis of depression are believed to be 2.6 times greater for children and adolescents exposed to trauma as compared to those unexposed or less exposed (Vibhakar et al., 2019). Children and teens with major depressive disorder (MDD) have been found to have difficulty carrying out their daily activities, relating to others, growing up healthy, and are at an increased risk of suicide (Siu on behalf of the U.S. Preventive Services Task Force [USPSTF], 2016). The same 2018 study indicated that 7.2 percent of adults aged 18 or older (17.7 million adults) had at least one MDE with 4.7 percent of adults (11.5 million adults) having one MDE with severe impairment in the past year (Substance Abuse and Mental Health Services Administration, 2019). Moreover, it is estimated 22.9 percent of adult patients with chronic pain (2.2 million adults) were diagnosed with comorbid depression from 2011 to 2015, with an upward trend of prevalence among Black Americans, patients aged 65 to 84 years old, Medicare and Medicaid insured patients, and patients from zip code areas with low annual household incomes (Orhurhu et al., 2019). Depression and other mood disorders, such as bipolar disorder and anxiety disorders, especially during the perinatal period, can have devastating effects on women, infants, and families (American College of Obstetricians and Gynecologists, 2018). It's estimated that the global prevalence of antenatal (or perinatal) depression ranges from 15 to 65 percent, with current or previous exposure to abuse and violence, lack of social support, and family history of mental disorders being risk factors. Depressive symptoms measured during pregnancy have been shown to influence the quality of the postpartum mother-infant relationship (Hazell Raine et al., 2020). Additionally, the risk of low birth weight and preterm birth is higher among infants born from depressed mothers (Dadi, Miller, Bisetegn, & 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 & 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 the majority of depressed youth are undiagnosed and untreated\" (Siu on behalf of USPSTF, 2016, p. 360 & p. 364). 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 and receive treatment for depression (U.S. Preventive Services Task Force, 2016) and makes an important contribution to the quality domain of community and population health."] ; # 
  fhir:clinicalRecommendationStatement [ fhir:v "Adolescent Recommendation (12-18 years): \"The USPSTF recommends screening for MDD in adolescents aged 12 to 18 years. Screening should be implemented with adequate systems in place to ensure accurate diagnosis, effective treatment, and appropriate follow-up (B recommendation)\" (Siu on behalf of USPSTF, 2016, p. 360). 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 & USPSTF, 2016, p. 380). “The USPSTF recommends that clinicians provide or refer pregnant and postpartum persons who are at increased risk of perinatal depression to counseling interventions (B recommendation)” (U.S. Preventive Services Task Force, 2019). The American College of Obstetricians and Gynecologists (ACOG) provides the following recommendation: \"All obstetrician–gynecologists and other obstetric care providers should complete a full assessment of mood and emotional well-being (including screening for postpartum depression and anxiety with a validated instrument) during the comprehensive postpartum visit for each patient\" (American College of Obstetricians and Gynecologists, 2018). The Institute for Clinical Systems Improvement (ICSI) health care guideline, Adult Depression in Primary Care, provides the following recommendations: 1. \"Clinicians should routinely screen all adults for depression using a standardized instrument.\" 2. \"Clinicians should establish and maintain follow-up with patients.\" 3. \"Clinicians should screen and monitor depression in pregnant and post-partum women\" (Trangle et al., 2016, p. 8-10)."] ; # 
  fhir:improvementNotation [
    ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-improvement-notation"^^xsd:anyURI ] ;
fhir:code [ fhir:v "increase" ] ;
fhir:display [ fhir:v "Higher score indicates better quality" ]     ] )
  ] ; # 
  fhir:guidance [ fhir:v "The intent of the measure is to screen for new cases of depression in patients who have never had a diagnosis of bipolar disorder. Patients who have ever been diagnosed with bipolar disorder prior to the qualifying encounter used to evaluate the numerator will be excluded from the measure regardless of whether the diagnosis is active or not.\nA 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.\nThis 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. \nThis eCQM is a patient-based measure. Depression screening is required once per measurement period, not at all encounters. \nScreening Tools:\n -  An age-appropriate, standardized, and validated depression screening tool must be used for numerator compliance.\n -  The name of the age-appropriate standardized depression screening tool utilized must be documented in the medical record.\n -  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.\n -  The screening should occur during a qualifying encounter or up to 14 calendar days prior to the date of the qualifying encounter.\n -  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.\nFollow-Up Plan:\nThe 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.\nThe follow-up plan must be related to a positive depression screening, for example: \\\"Patient referred for psychiatric evaluation due to positive depression screening.\\\"\nExamples of a follow-up plan include but are not limited to: \n -  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\n -  Other interventions designed to treat depression such as behavioral health evaluation, psychotherapy, pharmacological interventions, or additional treatment options\nShould a patient screen positive for depression, a clinician should:\n-  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.\n-  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 additional screening using a standardized tool will not qualify as a follow-up plan.\nThis version of the eCQM uses QDM version 5.6. Please refer to the eCQI resource center (https://ecqi.healthit.gov/qdm) for more information on the QDM."] ; # 
  fhir:group ( [
    ( fhir:population [
fhir:id [ fhir:v "AD83208C-1313-401E-BB62-ABCCE0982B49" ] ;
fhir:code [
        ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ] ;
fhir:code [ fhir:v "initial-population" ] ;
fhir:display [ fhir:v "Initial Population" ]         ] )       ] ;
fhir:description [ fhir:v "All patients aged 12 years and older at the beginning of the measurement period with at least one qualifying encounter during the measurement period" ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "Initial Population" ]       ]     ] [
fhir:id [ fhir:v "696066C7-C558-4849-A325-A3CDDB58CF8F" ] ;
fhir:code [
        ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ] ;
fhir:code [ fhir:v "denominator" ] ;
fhir:display [ fhir:v "Denominator" ]         ] )       ] ;
fhir:description [ fhir:v "All patients aged 12 years and older at the beginning of the measurement period with at least one qualifying encounter during the measurement period" ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "Denominator" ]       ]     ] [
fhir:id [ fhir:v "E2557B71-1B97-413F-BE26-2B037E4D590B" ] ;
fhir:code [
        ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ] ;
fhir:code [ fhir:v "numerator" ] ;
fhir:display [ fhir:v "Numerator" ]         ] )       ] ;
fhir:description [ fhir:v "Patients screened for depression on the date of the encounter or up to 14 days prior to the date of the encounter using an age-appropriate standardized tool AND if positive, a follow-up plan is documented on the date of or up to two days after the date of the qualifying encounter" ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "Numerator" ]       ]     ] [
fhir:id [ fhir:v "E52F7FAE-96D9-417A-8538-6E3DB4A31D7A" ] ;
fhir:code [
        ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ] ;
fhir:code [ fhir:v "denominator-exclusion" ] ;
fhir:display [ fhir:v "Denominator Exclusions" ]         ] )       ] ;
fhir:description [ fhir:v "Patients who have ever been diagnosed with bipolar disorder at any time prior to the qualifying encounter" ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "Denominator Exclusions" ]       ]     ] [
fhir:id [ fhir:v "FBA7B9D9-8588-4CB2-AB72-642CBD980334" ] ;
fhir:code [
        ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ] ;
fhir:code [ fhir:v "denominator-exception" ] ;
fhir:display [ fhir:v "Denominator Exceptions" ]         ] )       ] ;
fhir:description [ fhir:v "Patient Reason(s) Patient refuses to participate in or complete the depression screening OR Medical Reason(s) Documentation of medical reason for not screening patient for depression" ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "Denominator Exceptions" ]       ]     ] ) ;
    ( fhir:stratifier [
fhir:id [ fhir:v "stratifier-ethnicity" ] ;
fhir:code [
        ( fhir:coding [
a loinc:54133-4 ;
fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "54133-4" ] ;
fhir:display [ fhir:v "Ethnicity" ]         ] )       ] ;
fhir:description [ fhir:v "Ethnicity (CDC Value Set)" ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "SDE Ethnicity" ]       ]     ] [
fhir:id [ fhir:v "stratifier-payer" ] ;
fhir:code [
        ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/coverage-class"^^xsd:anyURI ] ;
fhir:code [ fhir:v "plan" ] ;
fhir:display [ fhir:v "SDE Payer" ]         ] )       ] ;
fhir:description [ fhir:v "Payer" ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "SDE Payer" ]       ]     ] [
fhir:id [ fhir:v "stratifier-race" ] ;
fhir:code [
        ( fhir:coding [
a loinc:32624-9 ;
fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "32624-9" ] ;
fhir:display [ fhir:v "SDE Race" ]         ] )       ] ;
fhir:description [ fhir:v "Race (CDC Value Set)" ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "SDE Race" ]       ]     ] [
fhir:id [ fhir:v "stratifier-sex" ] ;
fhir:code [
        ( fhir:coding [
a loinc:72143-1 ;
fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "72143-1" ] ;
fhir:display [ fhir:v "Sex [HL7.v3]" ]         ] )       ] ;
fhir:description [ fhir:v "Administrative sex" ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "SDE Sex" ]       ]     ] [
fhir:id [ fhir:v "stratifier-age" ] ;
fhir:code [
        ( fhir:coding [
a loinc:30525-0 ;
fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "30525-0" ] ;
fhir:display [ fhir:v "Age" ]         ] )       ] ;
fhir:description [ fhir:v "Age" ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "SDE Age" ]       ]     ] [
fhir:id [ fhir:v "stratifier-state-of-residence" ] ;
fhir:code [
        ( fhir:coding [
a loinc:52830-7 ;
fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "52830-7" ] ;
fhir:display [ fhir:v "State, district or territory federal abbreviation" ]         ] )       ] ;
fhir:description [ fhir:v "State of residence" ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "SDE State of Residence" ]       ]     ] [
fhir:id [ fhir:v "stratifier-postal-code-of-residence" ] ;
fhir:code [
        ( fhir:coding [
a loinc:45401-7 ;
fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "45401-7" ] ;
fhir:display [ fhir:v "Postal code" ]         ] )       ] ;
fhir:description [ fhir:v "Postal code of residence" ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "SDE Postal Code of Residence" ]       ]     ] [
fhir:id [ fhir:v "stratifier-food-insecurity-risk-status" ] ;
fhir:code [
        ( fhir:coding [
a loinc:88124-3 ;
fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "88124-3" ] ;
fhir:display [ fhir:v "Food insecurity risk [HVS]" ]         ] )       ] ;
fhir:description [ fhir:v "Food insecurity risk status" ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "SDE Food Insecurity Risk Status" ]       ]     ] )
  ] ) ; # 
  fhir:supplementalData ( [
fhir:id [ fhir:v "sde-ethnicity" ] ;
fhir:code [
      ( fhir:coding [
a loinc:54133-4 ;
fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "54133-4" ] ;
fhir:display [ fhir:v "Ethnicity" ]       ] )     ] ;
    ( fhir:usage [
      ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ;
fhir:code [ fhir:v "supplemental-data" ]       ] )     ] ) ;
fhir:description [ fhir:v "Ethnicity (CDC Value Set)" ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "SDE Ethnicity" ]     ]
  ] [
fhir:id [ fhir:v "sde-payer" ] ;
fhir:code [
      ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/coverage-class"^^xsd:anyURI ] ;
fhir:code [ fhir:v "plan" ] ;
fhir:display [ fhir:v "SDE Payer" ]       ] )     ] ;
    ( fhir:usage [
      ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ;
fhir:code [ fhir:v "supplemental-data" ]       ] )     ] ) ;
fhir:description [ fhir:v "Payer" ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "SDE Payer" ]     ]
  ] [
fhir:id [ fhir:v "sde-race" ] ;
fhir:code [
      ( fhir:coding [
a loinc:32624-9 ;
fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "32624-9" ] ;
fhir:display [ fhir:v "SDE Race" ]       ] )     ] ;
    ( fhir:usage [
      ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ;
fhir:code [ fhir:v "supplemental-data" ]       ] )     ] ) ;
fhir:description [ fhir:v "Race (CDC Value Set)" ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "SDE Race" ]     ]
  ] [
fhir:id [ fhir:v "sde-sex" ] ;
fhir:code [
      ( fhir:coding [
a loinc:72143-1 ;
fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "72143-1" ] ;
fhir:display [ fhir:v "Sex [HL7.v3]" ]       ] )     ] ;
    ( fhir:usage [
      ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ;
fhir:code [ fhir:v "supplemental-data" ]       ] )     ] ) ;
fhir:description [ fhir:v "Administrative sex" ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "SDE Sex" ]     ]
  ] [
fhir:id [ fhir:v "sde-age" ] ;
fhir:code [
      ( fhir:coding [
a loinc:30525-0 ;
fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "30525-0" ] ;
fhir:display [ fhir:v "Age" ]       ] )     ] ;
    ( fhir:usage [
      ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ;
fhir:code [ fhir:v "supplemental-data" ]       ] )     ] ) ;
fhir:description [ fhir:v "Age" ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "SDE Age" ]     ]
  ] [
fhir:id [ fhir:v "sde-state-of-residence" ] ;
fhir:code [
      ( fhir:coding [
a loinc:52830-7 ;
fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "52830-7" ] ;
fhir:display [ fhir:v "State, district or territory federal abbreviation" ]       ] )     ] ;
    ( fhir:usage [
      ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ;
fhir:code [ fhir:v "supplemental-data" ]       ] )     ] ) ;
fhir:description [ fhir:v "State of residence" ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "SDE State of Residence" ]     ]
  ] [
fhir:id [ fhir:v "sde-postal-code-of-residence" ] ;
fhir:code [
      ( fhir:coding [
a loinc:45401-7 ;
fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "45401-7" ] ;
fhir:display [ fhir:v "Postal code" ]       ] )     ] ;
    ( fhir:usage [
      ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ;
fhir:code [ fhir:v "supplemental-data" ]       ] )     ] ) ;
fhir:description [ fhir:v "Postal code of residence" ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "SDE Postal Code of Residence" ]     ]
  ] [
fhir:id [ fhir:v "sde-food-insecurity-risk-status" ] ;
fhir:code [
      ( fhir:coding [
a loinc:88124-3 ;
fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "88124-3" ] ;
fhir:display [ fhir:v "Food insecurity risk [HVS]" ]       ] )     ] ;
    ( fhir:usage [
      ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ;
fhir:code [ fhir:v "supplemental-data" ]       ] )     ] ) ;
fhir:description [ fhir:v "Food insecurity risk status" ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "SDE Food Insecurity Risk Status" ]     ]
  ] ) . #