eCQM QICore Content Implementation Guide, published by cqframework. This guide is not an authorized publication; it is the continuous build for version 2023.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/ecqm-content-qicore-2023/ and changes regularly. See the Directory of published versions
| Draft as of 2023-10-27 |
@prefix fhir: <http://hl7.org/fhir/> . @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 "AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR"] ; # fhir:meta [ ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm> ] [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/publishable-measure-cqfm"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/publishable-measure-cqfm> ] [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/executable-measure-cqfm"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/executable-measure-cqfm> ] ) ] ; # fhir:text [ fhir:status [ fhir:v "extensions" ] ; fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <table class=\"grid dict\">\n \n <tr>\n <th scope=\"row\"><b>Title: </b></th>\n <td style=\"padding-left: 4px;\">Adult Major Depressive Disorder (MDD): Suicide Risk AssessmentFHIR</td>\n </tr>\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Id: </b></th>\n <td style=\"padding-left: 4px;\">AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR</td>\n </tr>\n \n <tr>\n <th scope=\"row\"><b>Download cql: </b></th>\n <td style=\"padding-left: 4px;\"><a href=\"Library-AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR.cql\">AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR.cql</a></td>\n </tr>\n \n \n\n \n <tr>\n <th scope=\"row\"><b>Version: </b></th>\n <td style=\"padding-left: 4px;\">0.0.004</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Url: </b></th>\n <td style=\"padding-left: 4px;\"><a href=\"Measure-AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR.html\">Adult Major Depressive Disorder (MDD): Suicide Risk AssessmentFHIR</a></td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\">\n <b>\n \n \n short-name identifier:\n \n \n </b>\n </th>\n\n <td style=\"padding-left: 4px;\">\n \n <p style=\"margin-bottom: 5px;\">\n <span>CMS161FHIR</span>\n </p>\n \n </td>\n </tr>\n \n <tr>\n <th scope=\"row\">\n <b>\n \n \n version-independent identifier:\n \n \n </b>\n </th>\n\n <td style=\"padding-left: 4px;\">\n \n <p style=\"margin-bottom: 5px;\">\n <span>urn:uuid:9e056df9-6c0c-4847-a88e-bc9932dd69bd</span>\n </p>\n \n </td>\n </tr>\n \n <tr>\n <th scope=\"row\">\n <b>\n \n \n version-specific identifier:\n \n \n </b>\n </th>\n\n <td style=\"padding-left: 4px;\">\n \n <p style=\"margin-bottom: 5px;\">\n <span>urn:uuid:2c928085806c39a20180859994bf050e</span>\n </p>\n \n </td>\n </tr>\n \n <tr>\n <th scope=\"row\">\n <b>\n \n \n endorser (NQF) identifier:\n \n \n </b>\n </th>\n\n <td style=\"padding-left: 4px;\">\n \n <p style=\"margin-bottom: 5px;\">\n <span>0104e</span>\n </p>\n \n </td>\n </tr>\n \n <tr>\n <th scope=\"row\">\n <b>\n \n \n publisher (CMS) identifier:\n \n \n </b>\n </th>\n\n <td style=\"padding-left: 4px;\">\n \n <p style=\"margin-bottom: 5px;\">\n <span>161FHIR</span>\n </p>\n \n </td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Effective Period: </b></th>\n <td style=\"padding-left: 4px;\">2024-01-01\n ..2024-12-31</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Status: </b></th>\n <td style=\"padding-left: 4px;\">draft</td>\n </tr>\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Date: </b></th>\n <td style=\"padding-left: 4px;\">2023-10-27 08:12:31+0000</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Approval Date: </b></th>\n <td style=\"padding-left: 4px;\">2023-08-14</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Last Review Date: </b></th>\n <td style=\"padding-left: 4px;\">2023-08-14</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Name: </b></th>\n <td style=\"padding-left: 4px;\">AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Publisher: </b></th>\n <td style=\"padding-left: 4px;\">Mathematica</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Author: </b></th>\n <td style=\"padding-left: 4px;\">Mathematica: <a href=\"https://www.mathematica.org/\">https://www.mathematica.org/</a>, American Medical Association (AMA): <a href=\"https://www.ama-assn.org/\">https://www.ama-assn.org/</a></td>\n </tr>\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Description: </b></th>\n <td style=\"padding-left: 4px;\"><div><p>Percentage of all patient visits for those patients that are 17 years of age or older at the start of the measurement period in which a new or recurrent diagnosis of major depressive disorder (MDD) was identified and a suicide risk assessment was completed during the visit</p>\n</div></td>\n </tr>\n \n\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Use Context: </b></th>\n <td style=\"padding-left: 4px;\">\n <table class=\"grid-dict\">\n <tr>\n <th><b>code</b></th>\n <th><b>value</b></th>\n </tr>\n \n <tr>\n <td>program</td>\n <td/>\n </tr>\n \n </table>\n </td>\n </tr>\n \n\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Purpose: </b></th>\n <td style=\"padding-left: 4px;\"><div><p>UNKNOWN</p>\n</div></td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Copyright: </b></th>\n <td style=\"padding-left: 4px;\"><div><p>Copyright 2023 Mathematica Inc. All Rights Reserved.\nThe PCPI and American Medical Association's (AMA) significant past efforts and contributions to the development and updating of the Measure is acknowledged.</p>\n</div></td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Disclaimer: </b></th>\n <td style=\"padding-left: 4px;\"><div><p>The Measure is not a clinical guideline, does not establish a standard of medical care, and has not been tested for all potential applications.</p>\n<p>The Measure, while copyrighted, can be reproduced and distributed, without modification, for noncommercial purposes, e.g., use by health care providers in connection with their practices. Commercial use is defined as the sale, license, or distribution of the Measure for commercial gain, or incorporation of the Measure into a product or service that is sold, licensed or distributed for commercial gain.</p>\n<p>Commercial uses of the Measure require a license agreement between the user and Mathematica. Neither Mathematica, the PCPI, nor the American Medical Association (AMA), nor the former AMA-convened Physician Consortium for Performance Improvement(R) (AMA-PCPI), nor their members shall be responsible for any use of the Measure.</p>\n<p>Mathematica encourages use of the Measure by other health care professionals, where appropriate.</p>\n<p>THE MEASURE AND SPECIFICATIONS ARE PROVIDED \"AS IS\" WITHOUT WARRANTY OF ANY KIND.</p>\n<p>Limited proprietary coding may be contained in the Measure specifications for convenience. A license agreement must be entered prior to a third party's use of Current Procedural Terminology (CPT[R]) or other proprietary code set contained in the Measure. Any other use of CPT or other coding by a third party is strictly prohibited. Mathematica, the AMA, and former members of the PCPI disclaim all liability for use or accuracy of any CPT(R) or other coding contained in the specifications.</p>\n<p>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<p>Due to technical limitations, registered trademarks are indicated by (R) or [R].</p>\n</div></td>\n </tr>\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\"><b>Rationale: </b></th>\n <td style=\"padding-left: 4px;\"><div><p>This measure aims to improve rates of clinician assessment of suicide risk during an encounter where a new or recurrent episode of major depressive disorder (MDD) is identified. In an epidemiologic study of mental illness in the United States with a large, representative sample, 69% of respondents with lifetime suicide attempts had also met diagnostic criteria for MDD. When considering other mood disorders related to depression, such as dysthymia and bipolar disorders, this rate increases to 74% (Bolton & Robinson, 2010). In a study of individuals who had died by suicide and were enrolled in one of eight major health systems in the United States, individuals with a depressive disorder diagnosis had 7.20 increased odds of dying by suicide within one year, after adjusting for age and sociodemographic factors (Yeh et al., 2019). A recent meta-analysis (Moitra et al., 2021) presented similar findings in which depressive disorder conferred a predictive relative risk for suicide of 7.64 after adjusting for relevant factors.</p>\n<p>Suicide is associated with increased use of healthcare services, which provides an opportunity for intervention through assessment and intervention. Individuals who die by suicide are more likely to have any healthcare utilization (Ahmedani et al., 2019) and a higher frequency of healthcare visits than the general population (Chock, Bommersbach, Geske, & Bostwick, 2015). A study of individuals who died by suicide and were enrolled within one of eight health systems in the Mental Health Research Network in the United States found that 50% of these individuals had been seen in a healthcare setting within four weeks prior to death (Ahmedani et al., 2014). Better assessment and identification of suicide risk in the healthcare setting should lead to improved connection to treatment and reduction in suicide attempts and deaths by suicide. A recent analysis of depression severity and suicidal ideation symptom trajectories (Witt et al., 2021) found that suicidal ideation among children and young adults (15-25 years) might not improve with depression symptom severity. This evidence suggests the potential utility of continued suicide risk screening after improvements in depression symptoms.</p>\n</div></td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Clinical recommendation statement: </b></th>\n <td style=\"padding-left: 4px;\"><div><p>A careful and ongoing evaluation of suicide risk is necessary for all patients with major depressive disorder (American Psychiatric Association, 2010a).</p>\n<p>Such an assessment includes specific inquiry about suicidal thoughts, intent, plans, means, and behaviors; identification of specific psychiatric symptoms (e.g., psychosis, severe anxiety, substance use, hopelessness, insomnia, agitation) or general medical conditions that may increase the likelihood of acting on suicidal ideas; assessment of past and, particularly, recent suicidal behavior; delineation of current stressors and potential protective factors (e.g., positive reasons for living, strong social support); and identification of any family history of suicide or mental illness (American Psychiatric Association, 2010a; Department of Veterans Affairs and Department of Defense, 2019).</p>\n<p>As part of the assessment process, impulsivity and potential for risk to others should also be evaluated, including any history of violence or violent or homicidal ideas, plans, or intentions, or the availability of firearms (American Psychiatric Association, 2010a; Department of Veterans Affairs and Department of Defense, 2019).</p>\n<p>The patient's risk of harm to him- or herself and to others should also be monitored as treatment proceeds (American Psychiatric Association, 2010a).</p>\n<p>Guidelines for Selecting a Treatment Setting for Patients at Risk for Suicide or Suicidal Behaviors (from American Psychiatric Association’s Practice Guideline for Assessment and Treatment of Patients With Suicidal Behaviors, 2010b):</p>\n<p>ADMISSION GENERALLY INDICATED\nAfter a suicide attempt or aborted suicide attempt if:</p>\n<ul>\n<li>Patient is psychotic</li>\n<li>Attempt was violent, near-lethal, or premeditated</li>\n<li>Precautions were taken to avoid rescue or discovery</li>\n<li>Persistent plan and/or intent is present</li>\n<li>Distress is increased or patient regrets surviving</li>\n<li>Patient is male, older than age 45 years, especially with new onset of psychiatric illness or suicidal thinking</li>\n<li>Patient has limited family and/or social support, including lack of stable living situation</li>\n<li>Current impulsive behavior, severe agitation, poor judgment, or refusal of help is evident</li>\n<li>Patient has change in mental status with a metabolic, toxic, infectious, or other etiology requiring further workup in a structured setting</li>\n</ul>\n<p>In the presence of suicidal ideation with:</p>\n<ul>\n<li>Specific plan with high lethality</li>\n<li>High suicidal intent</li>\n</ul>\n<p>ADMISSION MAY BE NECESSARY\nAfter a suicide attempt or aborted suicide attempt, except in circumstances for which admission is generally indicated</p>\n<p>In the presence of suicidal ideation with:</p>\n<ul>\n<li>Psychosis</li>\n<li>Major psychiatric disorder</li>\n<li>Past attempts, particularly if medically serious</li>\n<li>Possibly contributing medical condition (e.g., acute neurological disorder, cancer, infection)</li>\n<li>Lack of response to or inability to cooperate with partial hospital or outpatient treatment</li>\n<li>Need for supervised setting for medication trial or electroconvulsive therapy (ECT)</li>\n<li>Need for skilled observation, clinical tests, or diagnostic assessments that require a structured setting</li>\n<li>Limited family and/or social support, including lack of stable living situation</li>\n<li>Lack of an ongoing clinician-patient relationship or lack of access to timely outpatient follow-up</li>\n<li>Evidence of putting one's affairs in order (e.g., giving away possessions, writing a will)</li>\n</ul>\n<p>In the absence of suicide attempts or reported suicidal ideation/plan/intent but evidence from the psychiatric evaluation and/or history from others suggests a high level of suicide risk and a recent acute increase in risk</p>\n<p>RELEASE FROM EMERGENCY DEPARTMENT WITH FOLLOW-UP RECOMMENDATIONS MAY BE POSSIBLE\nAfter a suicide attempt or in the presence of suicidal ideation/plan when:</p>\n<ul>\n<li>Suicidality is a reaction to precipitating events (e.g., exam failure, relationship difficulties), particularly if the patient's view of situation has changed since coming to emergency department</li>\n<li>Plan/method and intent have low lethality</li>\n<li>Patient has stable and supportive living situation</li>\n<li>Patient is able to cooperate with recommendations for follow-up, with treater contacted, if possible, if patient is currently in treatment</li>\n</ul>\n<p>OUTPATIENT TREATMENT MAY BE MORE BENEFICIAL THAN HOSPITALIZATION</p>\n<p>Patient has chronic suicidal ideation and/or self-injury without prior medically serious attempts, if a safe and supportive living situation is available and outpatient psychiatric care is ongoing</p>\n</div></td>\n </tr>\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Guidance (Usage): </b></th>\n <td style=\"padding-left: 4px;\">This eCQM is an episode-based measure and should be reported for each instance of a new or recurrent episode of major depressive disorder (MDD) during the measurement period. This measure should be reported for each eligible encounter during which a new or recurrent episode of MDD is identified in adults that turn 18 or older during the measurement period.\n\nAs the guidelines state, it is important to assess for additional factors which may increase or decrease suicide risk, such as presence of additional symptoms (e.g., psychosis, severe anxiety, hopelessness, severe chronic pain); presence of substance abuse; history and seriousness of previous attempts, particularly, recent suicidal behavior; current stressors and potential protective factors (e.g., positive reasons for living, strong social support); family history of suicide or mental illness or recent exposure to suicide; impulsivity and potential for risk to others, including history of violence or violent or homicidal ideas, plans, or intentions; and putting one's affairs in order (e.g., giving away possessions, writing a will). In addition, although the measure focuses on the initial visit, it is critical that suicide risk be monitored especially for the 90 days following the initial visit and throughout MDD treatment.\n\nIt is expected that a suicide risk assessment will be completed at the visit during which a new diagnosis is made or at the visit during which a recurrent episode is first identified (i.e., at the initial evaluation). For the purposes of this measure, an episode of MDD would be considered to be recurrent if a patient has not had an MDD-related encounter in the past 105 days. If there is a gap of 105 or more days between visits for MDD, that would imply a recurrent episode. The 105-day look-back period is an operational provision and not a clinical recommendation, or definition of relapse, remission, or recurrence.\n\nIn recognition of the growing use of integrated and team-based care, the diagnosis of depression and the assessment for suicide risk need not be performed by the same provider or clinician.\n\nSuicide risk assessments completed via telehealth services can also meet numerator performance.\n\nUse of a standardized tool(s) or instrument(s) to assess suicide risk will meet numerator performance. Standardized tools can be mapped to the concept \"Intervention, Performed\": \"Suicide risk assessment (procedure)\" included in the numerator logic below, as no individual suicide risk assessment tool or instrument would satisfy the requirements alone.\n\nTo ensure all patients with MDD are assessed for suicide risk, there are two clinical quality measures addressing suicide risk assessment; CMS177-Child and Adolescent Major Depressive Disorder (MDD): Suicide Risk Assessment covers children and adolescents aged 6 through 16 at the start of the measurement period, and CMS161 covers the adult population aged 17 years and older at the start of the measurement period.\n\nThis FHIR-based measure has been derived from the QDM-based measure: CMS161v12.\n\nPlease refer to the HL7 QI-Core Implementation Guide (http://hl7.org/fhir/us/qicore/index.html) for more information on QI-Core and mapping recommendations from QDM to QI-Core 4.1.1 (http://hl7.org/fhir/us/qicore/qdm-to-qicore.html).</td>\n </tr>\n \n\n \n \n <tr>\n <th scope=\"row\"><b>Population Criteria: </b></th>\n <td style=\"padding-left: 4px;\">\n \n <table class=\"grid-dict\">\n \n <tr>\n <th><b>6419eb169ef3a941fbe47b3b</b></th>\n </tr>\n \n \n <tr>\n <td>Initial Population:</td>\n \n <td>Patient visits for patients that are 17 years of age or older at the start of the measurement period during which a new diagnosis of MDD, single or recurrent episode, was identified</td>\n \n </tr>\n \n <tr>\n <td>Denominator:</td>\n \n <td>Equals Initial Population</td>\n \n </tr>\n \n <tr>\n <td>Denominator Exclusion:</td>\n \n <td>None</td>\n \n </tr>\n \n <tr>\n <td>Numerator:</td>\n \n <td>Patient visits during which a new diagnosis of MDD, single or recurrent episode, was identified and a suicide risk assessment was completed during the visit</td>\n \n </tr>\n \n <tr>\n <td>Numerator Exclusion:</td>\n \n <td>Not Applicable</td>\n \n </tr>\n \n <tr>\n <td>Denominator Exception:</td>\n \n <td>None</td>\n \n </tr>\n \n \n </table>\n \n </td>\n </tr>\n \n \n\n \n <tr>\n <th scope=\"row\">\n <b> Supplemental Data Guidance\n : </b></th>\n <td style=\"padding-left: 4px;\"> test1 test 2\n test 3 test4 </td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b> Supplemental Data Elements: </b></th>\n <td style=\"padding-left: 4px;\">\n \n \n \n SDE Ethnicity\n \n \n \n \n \n SDE Payer\n \n \n \n \n \n SDE Race\n \n \n \n \n \n SDE Sex\n \n \n \n </td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Libraries: </b></th>\n <td style=\"padding-left: 4px;\">\n <table class=\"grid-dict\">\n \n <tr>\n <td><a href=\"Library-AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR.html\">AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR</a></td>\n </tr>\n \n </table>\n </td>\n </tr>\n \n\n \n\n \n \n <tr>\n <th scope=\"row\"><b>Related Artifact Dependencies: </b></th>\n <td style=\"padding-left: 4px;\">\n \n <li><a href=\"Library-SupplementalDataElements.html\">SupplementalDataElements</a> version: 3.4.000</li>\n \n <li><a href=\"Library-FHIRHelpers.html\">FHIRHelpers</a> version: 4.3.000</li>\n \n <li><a href=\"Library-CQMCommon.html\">CQMCommon</a> version: 1.4.000</li>\n \n <li><a href=\"Library-QICoreCommon.html\">QICoreCommon</a> version: 1.5.000</li>\n \n <li><code>http://hl7.org/fhir/v3/AdministrativeGender</code></li>\n \n <li><a href=\"http://terminology.hl7.org/7.1.0/CodeSystem-v3-ActCode.html\">ActCode</a></li>\n \n <li><a href=\"http://hl7.org/fhir/R4/codesystem-snomedct.html\">SNOMED CT (all versions)</a></li>\n \n <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1492/expansion\">Psych Visit - Diagnostic Evaluation</a></li>\n \n <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1010/expansion\">Emergency Department Visit</a></li>\n \n <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1001/expansion\">Office Visit</a></li>\n \n <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1008/expansion\">Outpatient Consultation</a></li>\n \n <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1496/expansion\">Psych Visit - Psychotherapy</a></li>\n \n <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1141/expansion\">Psychoanalysis</a></li>\n \n <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1031/expansion\">Telehealth Services</a></li>\n \n <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1491/expansion\">Major Depressive Disorder-Active</a></li>\n \n <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.114222.4.11.3591/expansion\">Payer</a></li>\n \n </td>\n </tr>\n <tr>\n <th scope=\"row\"><b>Parameters:</b></th>\n <td style=\"padding-left: 4px;\">\n <table class=\"grid-dict\">\n <tr>\n <th><b>name</b></th>\n <th><b>use</b></th>\n <th><b>min</b></th>\n <th><b>max</b></th>\n <th><b>type</b></th>\n </tr>\n \n <tr>\n <td>Measurement Period</td>\n <td>In</td>\n <td>0</td>\n <td>1</td>\n <td>Period</td>\n </tr>\n \n <tr>\n <td>SDE Sex</td>\n <td>Out</td>\n <td>0</td>\n <td>1</td>\n <td>Coding</td>\n </tr>\n \n <tr>\n <td>Numerator</td>\n <td>Out</td>\n <td>0</td>\n <td>*</td>\n <td>Resource</td>\n </tr>\n \n <tr>\n <td>Denominator</td>\n <td>Out</td>\n <td>0</td>\n <td>*</td>\n <td>Resource</td>\n </tr>\n \n <tr>\n <td>SDE Payer</td>\n <td>Out</td>\n <td>0</td>\n <td>*</td>\n <td>Resource</td>\n </tr>\n \n <tr>\n <td>Initial Population</td>\n <td>Out</td>\n <td>0</td>\n <td>*</td>\n <td>Resource</td>\n </tr>\n \n <tr>\n <td>SDE Ethnicity</td>\n <td>Out</td>\n <td>0</td>\n <td>1</td>\n <td>Resource</td>\n </tr>\n \n <tr>\n <td>SDE Race</td>\n <td>Out</td>\n <td>0</td>\n <td>1</td>\n <td>Resource</td>\n </tr>\n \n </table>\n </td>\n </tr>\n\n <tr>\n <th scope=\"row\"><b>DataRequirements:</b></th>\n <td style=\"padding-left: 4px;\">\n <table class=\"grid-dict\">\n <tr>\n <th><b>Type</b></th>\n <th><b>Elements</b></th>\n <th><b>Valueset Name</b></th>\n <th><b>Valueset</b></th>\n </tr>\n \n <tr>\n <td>Patient(<a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-patient.html\">QICorePatient</a>)</td>\n <td>\n \n ethnicity\n \n race\n \n </td>\n <td>\n \n </td>\n <td/>\n </tr>\n \n <tr>\n <td>Condition(<a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-condition.html\">QICoreCondition</a>)</td>\n <td>\n \n id\n \n id.value\n \n code\n \n </td>\n <td>\n \n </td>\n <td/>\n </tr>\n \n <tr>\n <td>Encounter(<a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-encounter.html\">QICoreEncounter</a>)</td>\n <td>\n \n type\n \n condition\n \n condition.reference\n \n condition.reference.value\n \n status\n \n status.value\n \n class\n \n reasonCode\n \n period\n \n </td>\n <td>\n \n \n Psych Visit Diagnostic Evaluation\n \n \n </td>\n <td><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1492/expansion\">Psych Visit - Diagnostic Evaluation</a></td>\n </tr>\n \n <tr>\n <td>Encounter(<a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-encounter.html\">QICoreEncounter</a>)</td>\n <td>\n \n type\n \n condition\n \n condition.reference\n \n condition.reference.value\n \n status\n \n status.value\n \n class\n \n reasonCode\n \n period\n \n </td>\n <td>\n \n \n Emergency Department Visit\n \n \n </td>\n <td><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1010/expansion\">Emergency Department Visit</a></td>\n </tr>\n \n <tr>\n <td>Encounter(<a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-encounter.html\">QICoreEncounter</a>)</td>\n <td>\n \n type\n \n condition\n \n condition.reference\n \n condition.reference.value\n \n status\n \n status.value\n \n class\n \n reasonCode\n \n period\n \n </td>\n <td>\n \n \n Office Visit\n \n \n </td>\n <td><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1001/expansion\">Office Visit</a></td>\n </tr>\n \n <tr>\n <td>Encounter(<a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-encounter.html\">QICoreEncounter</a>)</td>\n <td>\n \n type\n \n condition\n \n condition.reference\n \n condition.reference.value\n \n status\n \n status.value\n \n class\n \n reasonCode\n \n period\n \n </td>\n <td>\n \n \n Outpatient Consultation\n \n \n </td>\n <td><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1008/expansion\">Outpatient Consultation</a></td>\n </tr>\n \n <tr>\n <td>Encounter(<a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-encounter.html\">QICoreEncounter</a>)</td>\n <td>\n \n type\n \n condition\n \n condition.reference\n \n condition.reference.value\n \n status\n \n status.value\n \n class\n \n reasonCode\n \n period\n \n </td>\n <td>\n \n \n Psych Visit Psychotherapy\n \n \n </td>\n <td><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1496/expansion\">Psych Visit - Psychotherapy</a></td>\n </tr>\n \n <tr>\n <td>Encounter(<a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-encounter.html\">QICoreEncounter</a>)</td>\n <td>\n \n type\n \n condition\n \n condition.reference\n \n condition.reference.value\n \n status\n \n status.value\n \n class\n \n reasonCode\n \n period\n \n </td>\n <td>\n \n \n Psychoanalysis\n \n \n </td>\n <td><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1141/expansion\">Psychoanalysis</a></td>\n </tr>\n \n <tr>\n <td>Encounter(<a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-encounter.html\">QICoreEncounter</a>)</td>\n <td>\n \n type\n \n condition\n \n condition.reference\n \n condition.reference.value\n \n status\n \n status.value\n \n class\n \n reasonCode\n \n period\n \n </td>\n <td>\n \n \n Telehealth Services\n \n \n </td>\n <td><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1031/expansion\">Telehealth Services</a></td>\n </tr>\n \n <tr>\n <td>Procedure(<a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-procedure.html\">QICoreProcedure</a>)</td>\n <td>\n \n code\n \n status\n \n status.value\n \n performed\n \n </td>\n <td>\n \n </td>\n <td/>\n </tr>\n \n <tr>\n <td>Coverage(<a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-coverage.html\">QICoreCoverage</a>)</td>\n <td>\n \n type\n \n period\n \n </td>\n <td>\n \n \n Payer Type\n \n \n </td>\n <td><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.114222.4.11.3591/expansion\">Payer</a></td>\n </tr>\n \n </table>\n </td>\n </tr>\n\n \n <tr>\n <th scope=\"row\"><b>Direct Reference Codes:</b></th>\n <td style=\"padding-left: 4px;\">\n <table class=\"grid-dict\">\n <tr>\n <th><b>display</b></th>\n <th><b>code</b></th>\n <th><b>system</b></th>\n </tr>\n \n <tr>\n <td>Male</td>\n <td>M</td>\n <td><a href=\"http://hl7.org/fhir/v3/AdministrativeGender\">http://hl7.org/fhir/v3/AdministrativeGender</a></td>\n </tr>\n \n <tr>\n <td>Female</td>\n <td>F</td>\n <td><a href=\"http://hl7.org/fhir/v3/AdministrativeGender\">http://hl7.org/fhir/v3/AdministrativeGender</a></td>\n </tr>\n \n <tr>\n <td>Ambulatory</td>\n <td>AMB</td>\n <td><a href=\"http://terminology.hl7.org/7.1.0/CodeSystem-v3-ActCode.html\">http://terminology.hl7.org/CodeSystem/v3-ActCode</a></td>\n </tr>\n \n <tr>\n <td>Suicide risk assessment (procedure)</td>\n <td>225337009</td>\n <td><a href=\"https://browser.ihtsdotools.org/\">http://snomed.info/sct</a></td>\n </tr>\n \n </table>\n </td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Logic Definitions:</b></th>\n <td style=\"padding-left: 4px;\">\n \n <table class=\"grid-dict\">\n <tr>\n <th><b>Group</b></th>\n <th><b>Scoring</b></th>\n <th><b>Population Criteria</b></th>\n <th><b>Expression</b></th>\n </tr>\n <tr>\n \n <td> 6419eb169ef3a941fbe47b3b </td>\n <td>\n \n <b>Group scoring:</b>\n \n <span> proportion </span>\n \n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n </td>\n \n <tr>\n <td/>\n <td/>\n <td>Initial Population</td>\n <td>\n \n <pre><code class=\"language-cql\">define \"Initial Population\":\n \"New or Recurrent Major Depressive Disorder Encounter\" NewOrRecurrentMDDEncounter\n where \"AgeInYearsAt\"(date from start of \"Measurement Period\") >= 17</code></pre>\n \n </td>\n </tr>\n \n <tr>\n <td/>\n <td/>\n <td>Denominator</td>\n <td>\n \n <pre><code class=\"language-cql\">define \"Denominator\":\n \"Initial Population\"</code></pre>\n \n </td>\n </tr>\n \n <tr>\n <td/>\n <td/>\n <td>Denominator Exclusion</td>\n <td>\n \n None\n \n </td>\n </tr>\n \n <tr>\n <td/>\n <td/>\n <td>Numerator</td>\n <td>\n \n <pre><code class=\"language-cql\">define \"Numerator\":\n \"New or Recurrent Major Depressive Disorder Encounter\" NewOrRecurrentMDDEncounter\n with [\"Procedure\": \"Suicide risk assessment (procedure)\"] SuicideRiskAssessment\n such that SuicideRiskAssessment.status = 'completed'\n and QICoreCommon.\"ToInterval\" ( SuicideRiskAssessment.performed ) during NewOrRecurrentMDDEncounter.period</code></pre>\n \n </td>\n </tr>\n \n <tr>\n <td/>\n <td/>\n <td>Numerator Exclusion</td>\n <td>\n \n None\n \n </td>\n </tr>\n \n <tr>\n <td/>\n <td/>\n <td>Denominator Exception</td>\n <td>\n \n None\n \n </td>\n </tr>\n \n \n \n </tr>\n </table>\n \n\n <table class=\"grid-dict\">\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>SupplementalDataElements</td>\n \n \n <td>SDE Sex</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define \"SDE Sex\":\n case\n when Patient.gender = 'male' then \"M\"\n when Patient.gender = 'female' then \"F\"\n else null\n end</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR</td>\n \n \n <td>SDE Sex</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define \"SDE Sex\":\n SDE.\"SDE Sex\"</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR</td>\n \n \n <td>Major Depressive Disorder Encounter</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define \"Major Depressive Disorder Encounter\":\n ( [\"Encounter\": \"Psych Visit Diagnostic Evaluation\"]\n union [\"Encounter\": \"Emergency Department Visit\"]\n union [\"Encounter\": \"Office Visit\"]\n union [\"Encounter\": \"Outpatient Consultation\"]\n union [\"Encounter\": \"Psych Visit Psychotherapy\"]\n union [\"Encounter\": \"Psychoanalysis\"]\n union [\"Encounter\": \"Telehealth Services\"] ) ValidEncounter\n where ValidEncounter.status = 'finished'\n and ValidEncounter.class ~ \"AMB\"\n and ( ValidEncounter.reasonCode in \"Major Depressive Disorder Active\"\n or exists ( ( CQMCommon.\"EncounterDiagnosis\" ( ValidEncounter ) ) EncounterDiagnosis\n where EncounterDiagnosis.code in \"Major Depressive Disorder Active\"\n )\n )</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR</td>\n \n \n <td>New or Recurrent Major Depressive Disorder Encounter</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define \"New or Recurrent Major Depressive Disorder Encounter\":\n \"Major Depressive Disorder Encounter\" NewOrRecurrentMDDEncounter\n without \"Major Depressive Disorder Encounter\" PriorMDDEpisodeEncounter\n such that ( PriorMDDEpisodeEncounter !~ NewOrRecurrentMDDEncounter\n and PriorMDDEpisodeEncounter.period ends 104 days or less before day of start of NewOrRecurrentMDDEncounter.period\n )\n where NewOrRecurrentMDDEncounter.period during \"Measurement Period\"</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR</td>\n \n \n <td>Numerator</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define \"Numerator\":\n \"New or Recurrent Major Depressive Disorder Encounter\" NewOrRecurrentMDDEncounter\n with [\"Procedure\": \"Suicide risk assessment (procedure)\"] SuicideRiskAssessment\n such that SuicideRiskAssessment.status = 'completed'\n and QICoreCommon.\"ToInterval\" ( SuicideRiskAssessment.performed ) during NewOrRecurrentMDDEncounter.period</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR</td>\n \n \n <td>Initial Population</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define \"Initial Population\":\n \"New or Recurrent Major Depressive Disorder Encounter\" NewOrRecurrentMDDEncounter\n where \"AgeInYearsAt\"(date from start of \"Measurement Period\") >= 17</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR</td>\n \n \n <td>Denominator</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define \"Denominator\":\n \"Initial Population\"</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>SupplementalDataElements</td>\n \n \n <td>SDE Payer</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define \"SDE Payer\":\n [Coverage: type in \"Payer Type\"] Payer\n return {\n code: Payer.type,\n period: Payer.period\n }</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR</td>\n \n \n <td>SDE Payer</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define \"SDE Payer\":\n SDE.\"SDE Payer\"</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>SupplementalDataElements</td>\n \n \n <td>SDE Ethnicity</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define \"SDE Ethnicity\":\n Patient.ethnicity E\n return Tuple {\n codes: { E.ombCategory } union E.detailed,\n display: E.text\n }</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR</td>\n \n \n <td>SDE Ethnicity</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define \"SDE Ethnicity\":\n SDE.\"SDE Ethnicity\"</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>SupplementalDataElements</td>\n \n \n <td>SDE Race</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define \"SDE Race\":\n Patient.race R\n return Tuple {\n codes: R.ombCategory union R.detailed,\n display: R.text\n }</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR</td>\n \n \n <td>SDE Race</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define \"SDE Race\":\n SDE.\"SDE Race\"</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>FHIRHelpers</td>\n \n \n <td>ToConcept</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">/*\n@description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.\n*/\ndefine function ToConcept(concept FHIR.CodeableConcept):\n if concept is null then\n null\n else\n System.Concept {\n codes: concept.coding C return ToCode(C),\n display: concept.text.value\n }</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>CQMCommon</td>\n \n \n <td>EncounterDiagnosis</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">/*\n@description: Returns the Condition resource referenced by the `diagnosis.condition` element of the Encounter\n@deprecated: This function is deprecated. Use the fluent function `encounterDiagnosis()` instead.\n*/\ndefine function \"EncounterDiagnosis\"(Encounter Encounter ):\n Encounter.diagnosis D\n return singleton from ([Condition] C where C.id = D.condition.reference.getId())</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>QICoreCommon</td>\n \n \n <td>getId</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">/*\n@description: Returns the tail of the given uri (i.e. everything after the last slash in the URI).\n@comment: This function can be used to determine the logical id of a given resource. It can be used in\na single-server environment to trace references. However, this function does not attempt to resolve\nor distinguish the base of the given url, and so cannot be used safely in multi-server environments.\n*/\ndefine fluent function getId(uri String):\n Last(Split(uri, '/'))</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>FHIRHelpers</td>\n \n \n <td>ToString</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">define function ToString(value uri): value.value</code></pre>\n </td>\n \n </tr>\n \n <tr>\n <th><b>Library Name</b></th>\n <th><b>Name</b></th>\n </tr>\n <tr>\n \n <td>FHIRHelpers</td>\n \n \n <td>ToCode</td>\n \n </tr>\n <tr>\n \n <td/>\n <td>\n <pre class=\"highlight language-cql\"><code class=\"language-cql\">/*\n@description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code.\n*/\ndefine function ToCode(coding FHIR.Coding):\n if coding is null then\n null\n else\n System.Code {\n code: coding.code.value,\n system: coding.system.value,\n version: coding.version.value,\n display: coding.display.value\n }</code></pre>\n </td>\n \n </tr>\n \n </table>\n </td>\n </tr>\n \n \n \n\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/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode> ] ; fhir:value [ a fhir:Coding ; fhir:system [ fhir:v "http://hl7.org/fhir/v3/AdministrativeGender"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/v3/AdministrativeGender> ] ; fhir:code [ fhir:v "M" ] ; fhir:display [ fhir:v "Male" ] ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode> ] ; fhir:value [ a fhir:Coding ; fhir:system [ fhir:v "http://hl7.org/fhir/v3/AdministrativeGender"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/v3/AdministrativeGender> ] ; fhir:code [ fhir:v "F" ] ; fhir:display [ fhir:v "Female" ] ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode> ] ; fhir:value [ a fhir:Coding ; fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActCode"^^xsd:anyURI ; fhir:l <http://terminology.hl7.org/CodeSystem/v3-ActCode> ] ; fhir:code [ fhir:v "AMB" ] ; fhir:display [ fhir:v "Ambulatory" ] ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode> ] ; fhir:value [ a fhir:Coding, sct:225337009 ; fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ; fhir:l <http://snomed.info/sct> ] ; fhir:code [ fhir:v "225337009" ] ; fhir:display [ fhir:v "Suicide risk assessment (procedure)" ] ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "SupplementalDataElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "SDE Sex" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "define \"SDE Sex\":\n case\n when Patient.gender = 'male' then \"M\"\n when Patient.gender = 'female' then \"F\"\n else null\n end" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 0 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "SDE Sex" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "define \"SDE Sex\":\n SDE.\"SDE Sex\"" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 1 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "Major Depressive Disorder Encounter" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "define \"Major Depressive Disorder Encounter\":\n ( [\"Encounter\": \"Psych Visit Diagnostic Evaluation\"]\n union [\"Encounter\": \"Emergency Department Visit\"]\n union [\"Encounter\": \"Office Visit\"]\n union [\"Encounter\": \"Outpatient Consultation\"]\n union [\"Encounter\": \"Psych Visit Psychotherapy\"]\n union [\"Encounter\": \"Psychoanalysis\"]\n union [\"Encounter\": \"Telehealth Services\"] ) ValidEncounter\n where ValidEncounter.status = 'finished'\n and ValidEncounter.class ~ \"AMB\"\n and ( ValidEncounter.reasonCode in \"Major Depressive Disorder Active\"\n or exists ( ( CQMCommon.\"EncounterDiagnosis\" ( ValidEncounter ) ) EncounterDiagnosis\n where EncounterDiagnosis.code in \"Major Depressive Disorder Active\"\n )\n )" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 2 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "New or Recurrent Major Depressive Disorder Encounter" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "define \"New or Recurrent Major Depressive Disorder Encounter\":\n \"Major Depressive Disorder Encounter\" NewOrRecurrentMDDEncounter\n without \"Major Depressive Disorder Encounter\" PriorMDDEpisodeEncounter\n such that ( PriorMDDEpisodeEncounter !~ NewOrRecurrentMDDEncounter\n and PriorMDDEpisodeEncounter.period ends 104 days or less before day of start of NewOrRecurrentMDDEncounter.period\n )\n where NewOrRecurrentMDDEncounter.period during \"Measurement Period\"" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 3 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "Numerator" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "define \"Numerator\":\n \"New or Recurrent Major Depressive Disorder Encounter\" NewOrRecurrentMDDEncounter\n with [\"Procedure\": \"Suicide risk assessment (procedure)\"] SuicideRiskAssessment\n such that SuicideRiskAssessment.status = 'completed'\n and QICoreCommon.\"ToInterval\" ( SuicideRiskAssessment.performed ) during NewOrRecurrentMDDEncounter.period" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 4 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "Initial Population" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "define \"Initial Population\":\n \"New or Recurrent Major Depressive Disorder Encounter\" NewOrRecurrentMDDEncounter\n where \"AgeInYearsAt\"(date from start of \"Measurement Period\") >= 17" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 5 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "Denominator" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "define \"Denominator\":\n \"Initial Population\"" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 6 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "SupplementalDataElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "SDE Payer" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "define \"SDE Payer\":\n [Coverage: type in \"Payer Type\"] Payer\n return {\n code: Payer.type,\n period: Payer.period\n }" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 7 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "SDE Payer" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "define \"SDE Payer\":\n SDE.\"SDE Payer\"" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 8 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "SupplementalDataElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "SDE Ethnicity" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "define \"SDE Ethnicity\":\n Patient.ethnicity E\n return Tuple {\n codes: { E.ombCategory } union E.detailed,\n display: E.text\n }" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 9 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "SDE Ethnicity" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "define \"SDE Ethnicity\":\n SDE.\"SDE Ethnicity\"" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 10 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "SupplementalDataElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "SDE Race" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "define \"SDE Race\":\n Patient.race R\n return Tuple {\n codes: R.ombCategory union R.detailed,\n display: R.text\n }" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 11 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "SDE Race" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "define \"SDE Race\":\n SDE.\"SDE Race\"" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 12 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "FHIRHelpers" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "ToConcept" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.\n*/\ndefine function ToConcept(concept FHIR.CodeableConcept):\n if concept is null then\n null\n else\n System.Concept {\n codes: concept.coding C return ToCode(C),\n display: concept.text.value\n }" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 13 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "CQMCommon" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "EncounterDiagnosis" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@description: Returns the Condition resource referenced by the `diagnosis.condition` element of the Encounter\n@deprecated: This function is deprecated. Use the fluent function `encounterDiagnosis()` instead.\n*/\ndefine function \"EncounterDiagnosis\"(Encounter Encounter ):\n Encounter.diagnosis D\n return singleton from ([Condition] C where C.id = D.condition.reference.getId())" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 14 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "QICoreCommon" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "getId" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@description: Returns the tail of the given uri (i.e. everything after the last slash in the URI).\n@comment: This function can be used to determine the logical id of a given resource. It can be used in\na single-server environment to trace references. However, this function does not attempt to resolve\nor distinguish the base of the given url, and so cannot be used safely in multi-server environments.\n*/\ndefine fluent function getId(uri String):\n Last(Split(uri, '/'))" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 15 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "FHIRHelpers" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "ToString" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "define function ToString(value uri): value.value" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 16 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition> ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ; fhir:l fhir:libraryName ] ; fhir:value [ a fhir:String ; fhir:v "FHIRHelpers" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "ToCode" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ; fhir:l fhir:statement ] ; fhir:value [ a fhir:String ; fhir:v "/*\n@description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code.\n*/\ndefine function ToCode(coding FHIR.Coding):\n if coding is null then\n null\n else\n System.Code {\n code: coding.code.value,\n system: coding.system.value,\n version: coding.version.value,\n display: coding.display.value\n }" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ; fhir:l fhir:displaySequence ] ; fhir:value [ a fhir:Integer ; fhir:v 17 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition> ] ] ) ; fhir:status [ fhir:v "active" ] ; fhir:type [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/library-type"^^xsd:anyURI ; fhir:l <http://terminology.hl7.org/CodeSystem/library-type> ] ; fhir:code [ fhir:v "module-definition" ] ] ) ] ; ( fhir:relatedArtifact [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library SDE" ] ; fhir:resource [ fhir:v "http://ecqi.healthit.gov/ecqms/Library/SupplementalDataElements|3.4.000"^^xsd:anyURI ; fhir:l <http://ecqi.healthit.gov/ecqms/Library/SupplementalDataElements?version=3.4.000> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library FHIRHelpers" ] ; fhir:resource [ fhir:v "http://ecqi.healthit.gov/ecqms/Library/FHIRHelpers|4.3.000"^^xsd:anyURI ; fhir:l <http://ecqi.healthit.gov/ecqms/Library/FHIRHelpers?version=4.3.000> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library CQMCommon" ] ; fhir:resource [ fhir:v "http://ecqi.healthit.gov/ecqms/Library/CQMCommon|1.4.000"^^xsd:anyURI ; fhir:l <http://ecqi.healthit.gov/ecqms/Library/CQMCommon?version=1.4.000> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library QICoreCommon" ] ; fhir:resource [ fhir:v "http://ecqi.healthit.gov/ecqms/Library/QICoreCommon|1.5.000"^^xsd:anyURI ; fhir:l <http://ecqi.healthit.gov/ecqms/Library/QICoreCommon?version=1.5.000> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Code system AdministrativeGender" ] ; fhir:resource [ fhir:v "http://hl7.org/fhir/v3/AdministrativeGender"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/v3/AdministrativeGender> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Code system ActCode" ] ; fhir:resource [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActCode"^^xsd:anyURI ; fhir:l <http://terminology.hl7.org/CodeSystem/v3-ActCode> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Code system SNOMEDCT" ] ; fhir:resource [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ; fhir:l <http://snomed.info/sct> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Value set Psych Visit Diagnostic Evaluation" ] ; fhir:resource [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1492"^^xsd:anyURI ; fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1492> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Value set Emergency Department Visit" ] ; fhir:resource [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1010"^^xsd:anyURI ; fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1010> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Value set Office Visit" ] ; fhir:resource [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001"^^xsd:anyURI ; fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Value set Outpatient Consultation" ] ; fhir:resource [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1008"^^xsd:anyURI ; fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1008> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Value set Psych Visit Psychotherapy" ] ; fhir:resource [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1496"^^xsd:anyURI ; fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1496> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Value set Psychoanalysis" ] ; fhir:resource [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1141"^^xsd:anyURI ; fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1141> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Value set Telehealth Services" ] ; fhir:resource [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1031"^^xsd:anyURI ; fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1031> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Value set Major Depressive Disorder Active" ] ; fhir:resource [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1491"^^xsd:anyURI ; fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1491> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Value set Payer Type" ] ; fhir:resource [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"^^xsd:anyURI ; fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591> ] ] ) ; ( fhir:parameter [ fhir:name [ fhir:v "Measurement Period" ] ; fhir:use [ fhir:v "in" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "1" ] ; fhir:type [ fhir:v "Period" ] ] [ fhir:name [ fhir:v "SDE Sex" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "1" ] ; fhir:type [ fhir:v "Coding" ] ] [ fhir:name [ fhir:v "Numerator" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "*" ] ; fhir:type [ fhir:v "Resource" ] ] [ fhir:name [ fhir:v "Denominator" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "*" ] ; fhir:type [ fhir:v "Resource" ] ] [ fhir:name [ fhir:v "SDE Payer" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "*" ] ; fhir:type [ fhir:v "Resource" ] ] [ fhir:name [ fhir:v "Initial Population" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "*" ] ; fhir:type [ fhir:v "Resource" ] ] [ fhir:name [ fhir:v "SDE Ethnicity" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "1" ] ; fhir:type [ fhir:v "Resource" ] ] [ fhir:name [ fhir:v "SDE Race" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "1" ] ; fhir:type [ fhir:v "Resource" ] ] ) ; ( fhir:dataRequirement [ fhir:type [ fhir:v "Patient" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient> ] ) ; ( fhir:mustSupport [ fhir:v "ethnicity" ] [ fhir:v "race" ] ) ] [ fhir:type [ fhir:v "Condition" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition> ] ) ; ( fhir:mustSupport [ fhir:v "id" ] [ fhir:v "id.value" ] [ fhir:v "code" ] ) ] [ fhir:type [ fhir:v "Encounter" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter> ] ) ; ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "condition" ] [ fhir:v "condition.reference" ] [ fhir:v "condition.reference.value" ] [ fhir:v "status" ] [ fhir:v "status.value" ] [ fhir:v "class" ] [ fhir:v "reasonCode" ] [ 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.1492"^^xsd:anyURI ; fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1492> ] ] ) ] [ fhir:type [ fhir:v "Encounter" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter> ] ) ; ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "condition" ] [ fhir:v "condition.reference" ] [ fhir:v "condition.reference.value" ] [ fhir:v "status" ] [ fhir:v "status.value" ] [ fhir:v "class" ] [ fhir:v "reasonCode" ] [ 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.1010"^^xsd:anyURI ; fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1010> ] ] ) ] [ fhir:type [ fhir:v "Encounter" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter> ] ) ; ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "condition" ] [ fhir:v "condition.reference" ] [ fhir:v "condition.reference.value" ] [ fhir:v "status" ] [ fhir:v "status.value" ] [ fhir:v "class" ] [ fhir:v "reasonCode" ] [ 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.1001"^^xsd:anyURI ; fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001> ] ] ) ] [ fhir:type [ fhir:v "Encounter" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter> ] ) ; ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "condition" ] [ fhir:v "condition.reference" ] [ fhir:v "condition.reference.value" ] [ fhir:v "status" ] [ fhir:v "status.value" ] [ fhir:v "class" ] [ fhir:v "reasonCode" ] [ 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.1008"^^xsd:anyURI ; fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1008> ] ] ) ] [ fhir:type [ fhir:v "Encounter" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter> ] ) ; ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "condition" ] [ fhir:v "condition.reference" ] [ fhir:v "condition.reference.value" ] [ fhir:v "status" ] [ fhir:v "status.value" ] [ fhir:v "class" ] [ fhir:v "reasonCode" ] [ 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.1496"^^xsd:anyURI ; fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1496> ] ] ) ] [ fhir:type [ fhir:v "Encounter" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter> ] ) ; ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "condition" ] [ fhir:v "condition.reference" ] [ fhir:v "condition.reference.value" ] [ fhir:v "status" ] [ fhir:v "status.value" ] [ fhir:v "class" ] [ fhir:v "reasonCode" ] [ 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.1141"^^xsd:anyURI ; fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1141> ] ] ) ] [ fhir:type [ fhir:v "Encounter" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter> ] ) ; ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "condition" ] [ fhir:v "condition.reference" ] [ fhir:v "condition.reference.value" ] [ fhir:v "status" ] [ fhir:v "status.value" ] [ fhir:v "class" ] [ fhir:v "reasonCode" ] [ 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.1031"^^xsd:anyURI ; fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1031> ] ] ) ] [ fhir:type [ fhir:v "Procedure" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure> ] ) ; ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "status" ] [ fhir:v "status.value" ] [ fhir:v "performed" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "code" ] ; ( fhir:code [ a sct:225337009 ; fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ; fhir:l <http://snomed.info/sct> ] ; fhir:code [ fhir:v "225337009" ] ; fhir:display [ fhir:v "Suicide risk assessment (procedure)" ] ] ) ] [ fhir:path [ fhir:v "status.value" ] ; ( fhir:code [ fhir:code [ fhir:v "completed" ] ] ) ] ) ] [ fhir:type [ fhir:v "Coverage" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage> ] ) ; ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "type" ] ; fhir:valueSet [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"^^xsd:anyURI ; fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591> ] ] ) ] ) ] ) ; # fhir:extension ( [ fhir:id [ fhir:v "supplementalDataGuidance" ] ; ( fhir:extension [ fhir:url [ fhir:v "guidance"^^xsd:anyURI ; fhir:l fhir:guidance ] ; fhir:value [ a fhir:String ; fhir:v "test1 test 2\n test 3 test4" ] ] [ fhir:url [ fhir:v "usage"^^xsd:anyURI ; fhir:l fhir:usage ] ; fhir:value [ a fhir:CodeableConcept ; ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ; fhir:l <http://terminology.hl7.org/CodeSystem/measure-data-usage> ] ; fhir:code [ fhir:v "supplemental-data" ] ; fhir:display [ fhir:v "Supplemental Data" ] ] ) ; fhir:text [ fhir:v "Supplemental Data Guidance" ] ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-supplementalDataGuidance"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-supplementalDataGuidance> ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-softwaresystem"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-softwaresystem> ] ; fhir:value [ a fhir:Reference ; fhir:l fhir:Device/cqf-tooling ; fhir:reference [ fhir:v "Device/cqf-tooling" ] ] ] [ fhir:id [ fhir:v "effective-data-requirements" ] ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-effectiveDataRequirements"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-effectiveDataRequirements> ] ; fhir:value [ a fhir:Reference ; fhir:l <#effective-data-requirements> ; fhir:reference [ fhir:v "#effective-data-requirements" ] ] ] ) ; # fhir:url [ fhir:v "http://ecqi.healthit.gov/ecqms/Measure/AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR"^^xsd:anyURI ; fhir:l <http://ecqi.healthit.gov/ecqms/Measure/AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR> ] ; # fhir:identifier ( [ fhir:use [ fhir:v "usual" ] ; fhir:type [ ( fhir:coding [ fhir:system [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type> ] ; fhir:code [ fhir:v "short-name" ] ] ) ] ; fhir:system [ fhir:v "https://madie.cms.gov/measure/shortName"^^xsd:anyURI ; fhir:l <https://madie.cms.gov/measure/shortName> ] ; fhir:value [ fhir:v "CMS161FHIR" ] ] [ fhir:use [ fhir:v "official" ] ; fhir:type [ ( fhir:coding [ fhir:system [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type> ] ; fhir:code [ fhir:v "version-independent" ] ] ) ] ; fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ; fhir:l <urn:ietf:rfc:3986> ] ; fhir:value [ fhir:v "urn:uuid:9e056df9-6c0c-4847-a88e-bc9932dd69bd" ] ] [ fhir:use [ fhir:v "official" ] ; fhir:type [ ( fhir:coding [ fhir:system [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type> ] ; fhir:code [ fhir:v "version-specific" ] ] ) ] ; fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ; fhir:l <urn:ietf:rfc:3986> ] ; fhir:value [ fhir:v "urn:uuid:2c928085806c39a20180859994bf050e" ] ] [ fhir:use [ fhir:v "official" ] ; fhir:type [ ( fhir:coding [ fhir:system [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type> ] ; fhir:code [ fhir:v "endorser" ] ] ) ] ; fhir:system [ fhir:v "https://madie.cms.gov/measure/nqfId"^^xsd:anyURI ; fhir:l <https://madie.cms.gov/measure/nqfId> ] ; fhir:value [ fhir:v "0104e" ] ; fhir:assigner [ fhir:display [ fhir:v "NQF" ] ] ] [ fhir:use [ fhir:v "official" ] ; fhir:type [ ( fhir:coding [ fhir:system [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/CodeSystem/identifier-type> ] ; fhir:code [ fhir:v "publisher" ] ] ) ] ; fhir:system [ fhir:v "https://madie.cms.gov/measure/cmsId"^^xsd:anyURI ; fhir:l <https://madie.cms.gov/measure/cmsId> ] ; fhir:value [ fhir:v "161FHIR" ] ; fhir:assigner [ fhir:display [ fhir:v "CMS" ] ] ] ) ; # fhir:version [ fhir:v "0.0.004"] ; # fhir:name [ fhir:v "AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR"] ; # fhir:title [ fhir:v "Adult Major Depressive Disorder (MDD): Suicide Risk AssessmentFHIR"] ; # fhir:status [ fhir:v "draft"] ; # fhir:experimental [ fhir:v false] ; # fhir:date [ fhir:v "2023-10-27T08:12:31+00:00"^^xsd:dateTime] ; # fhir:publisher [ fhir:v "Mathematica"] ; # fhir:contact ( [ ( fhir:telecom [ fhir:system [ fhir:v "url" ] ; fhir:value [ fhir:v "https://www.mathematica.org/" ] ] ) ] ) ; # fhir:description [ fhir:v "Percentage of all patient visits for those patients that are 17 years of age or older at the start of the measurement period in which a new or recurrent diagnosis of major depressive disorder (MDD) was identified and a suicide risk assessment was completed during the visit"] ; # fhir:useContext ( [ fhir:code [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/usage-context-type"^^xsd:anyURI ; fhir:l <http://terminology.hl7.org/CodeSystem/usage-context-type> ] ; fhir:code [ fhir:v "program" ] ] ; fhir:value [ a fhir:CodeableConcept ; ( fhir:coding [ fhir:system [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/CodeSystem/quality-programs"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/CodeSystem/quality-programs> ] ; fhir:code [ fhir:v "ep-ec" ] ; fhir:display [ fhir:v "EP/EC" ] ] ) ] ] ) ; # fhir:purpose [ fhir:v "UNKNOWN"] ; # fhir:usage [ fhir:v "This eCQM is an episode-based measure and should be reported for each instance of a new or recurrent episode of major depressive disorder (MDD) during the measurement period. This measure should be reported for each eligible encounter during which a new or recurrent episode of MDD is identified in adults that turn 18 or older during the measurement period.\n\nAs the guidelines state, it is important to assess for additional factors which may increase or decrease suicide risk, such as presence of additional symptoms (e.g., psychosis, severe anxiety, hopelessness, severe chronic pain); presence of substance abuse; history and seriousness of previous attempts, particularly, recent suicidal behavior; current stressors and potential protective factors (e.g., positive reasons for living, strong social support); family history of suicide or mental illness or recent exposure to suicide; impulsivity and potential for risk to others, including history of violence or violent or homicidal ideas, plans, or intentions; and putting one's affairs in order (e.g., giving away possessions, writing a will). In addition, although the measure focuses on the initial visit, it is critical that suicide risk be monitored especially for the 90 days following the initial visit and throughout MDD treatment.\n\nIt is expected that a suicide risk assessment will be completed at the visit during which a new diagnosis is made or at the visit during which a recurrent episode is first identified (i.e., at the initial evaluation). For the purposes of this measure, an episode of MDD would be considered to be recurrent if a patient has not had an MDD-related encounter in the past 105 days. If there is a gap of 105 or more days between visits for MDD, that would imply a recurrent episode. The 105-day look-back period is an operational provision and not a clinical recommendation, or definition of relapse, remission, or recurrence.\n\nIn recognition of the growing use of integrated and team-based care, the diagnosis of depression and the assessment for suicide risk need not be performed by the same provider or clinician.\n\nSuicide risk assessments completed via telehealth services can also meet numerator performance.\n\nUse of a standardized tool(s) or instrument(s) to assess suicide risk will meet numerator performance. Standardized tools can be mapped to the concept \"Intervention, Performed\": \"Suicide risk assessment (procedure)\" included in the numerator logic below, as no individual suicide risk assessment tool or instrument would satisfy the requirements alone.\n\nTo ensure all patients with MDD are assessed for suicide risk, there are two clinical quality measures addressing suicide risk assessment; CMS177-Child and Adolescent Major Depressive Disorder (MDD): Suicide Risk Assessment covers children and adolescents aged 6 through 16 at the start of the measurement period, and CMS161 covers the adult population aged 17 years and older at the start of the measurement period.\n\nThis FHIR-based measure has been derived from the QDM-based measure: CMS161v12.\n\nPlease refer to the HL7 QI-Core Implementation Guide (http://hl7.org/fhir/us/qicore/index.html) for more information on QI-Core and mapping recommendations from QDM to QI-Core 4.1.1 (http://hl7.org/fhir/us/qicore/qdm-to-qicore.html)."] ; # fhir:copyright [ fhir:v "Copyright 2023 Mathematica Inc. All Rights Reserved.\nThe PCPI and American Medical Association's (AMA) significant past efforts and contributions to the development and updating of the Measure is acknowledged."] ; # fhir:approvalDate [ fhir:v "2023-08-14"^^xsd:date] ; # fhir:lastReviewDate [ fhir:v "2023-08-14"^^xsd:date] ; # fhir:effectivePeriod [ fhir:start [ fhir:v "2024-01-01"^^xsd:date ] ; fhir:end [ fhir:v "2024-12-31"^^xsd:date ] ] ; # fhir:author ( [ fhir:name [ fhir:v "Mathematica" ] ; ( fhir:telecom [ fhir:system [ fhir:v "url" ] ; fhir:value [ fhir:v "https://www.mathematica.org/" ] ] ) ] [ fhir:name [ fhir:v "American Medical Association (AMA)" ] ; ( fhir:telecom [ fhir:system [ fhir:v "url" ] ; fhir:value [ fhir:v "https://www.ama-assn.org/" ] ] ) ] ) ; # fhir:library ( [ fhir:v "http://ecqi.healthit.gov/ecqms/Library/AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR"^^xsd:anyURI ; fhir:l <http://ecqi.healthit.gov/ecqms/Library/AdultMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR> ] ) ; # fhir:disclaimer [ fhir:v "The Measure is not a clinical guideline, does not establish a standard of medical care, and has not been tested for all potential applications. \n\nThe Measure, while copyrighted, can be reproduced and distributed, without modification, for noncommercial purposes, e.g., use by health care providers in connection with their practices. Commercial use is defined as the sale, license, or distribution of the Measure for commercial gain, or incorporation of the Measure into a product or service that is sold, licensed or distributed for commercial gain. \n\nCommercial uses of the Measure require a license agreement between the user and Mathematica. Neither Mathematica, the PCPI, nor the American Medical Association (AMA), nor the former AMA-convened Physician Consortium for Performance Improvement(R) (AMA-PCPI), nor their members shall be responsible for any use of the Measure.\n\nMathematica encourages use of the Measure by other health care professionals, where appropriate.\n\nTHE MEASURE AND SPECIFICATIONS ARE PROVIDED \"AS IS\" WITHOUT WARRANTY OF ANY KIND.\n\nLimited proprietary coding may be contained in the Measure specifications for convenience. A license agreement must be entered prior to a third party's use of Current Procedural Terminology (CPT[R]) or other proprietary code set contained in the Measure. Any other use of CPT or other coding by a third party is strictly prohibited. Mathematica, the AMA, and former members of the PCPI disclaim all liability for use or accuracy of any CPT(R) or other coding contained in the specifications. \n\nCPT(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.\n\nDue to technical limitations, registered trademarks are indicated by (R) or [R]."] ; # fhir:rationale [ fhir:v "This measure aims to improve rates of clinician assessment of suicide risk during an encounter where a new or recurrent episode of major depressive disorder (MDD) is identified. In an epidemiologic study of mental illness in the United States with a large, representative sample, 69% of respondents with lifetime suicide attempts had also met diagnostic criteria for MDD. When considering other mood disorders related to depression, such as dysthymia and bipolar disorders, this rate increases to 74% (Bolton & Robinson, 2010). In a study of individuals who had died by suicide and were enrolled in one of eight major health systems in the United States, individuals with a depressive disorder diagnosis had 7.20 increased odds of dying by suicide within one year, after adjusting for age and sociodemographic factors (Yeh et al., 2019). A recent meta-analysis (Moitra et al., 2021) presented similar findings in which depressive disorder conferred a predictive relative risk for suicide of 7.64 after adjusting for relevant factors.\n\nSuicide is associated with increased use of healthcare services, which provides an opportunity for intervention through assessment and intervention. Individuals who die by suicide are more likely to have any healthcare utilization (Ahmedani et al., 2019) and a higher frequency of healthcare visits than the general population (Chock, Bommersbach, Geske, & Bostwick, 2015). A study of individuals who died by suicide and were enrolled within one of eight health systems in the Mental Health Research Network in the United States found that 50% of these individuals had been seen in a healthcare setting within four weeks prior to death (Ahmedani et al., 2014). Better assessment and identification of suicide risk in the healthcare setting should lead to improved connection to treatment and reduction in suicide attempts and deaths by suicide. A recent analysis of depression severity and suicidal ideation symptom trajectories (Witt et al., 2021) found that suicidal ideation among children and young adults (15-25 years) might not improve with depression symptom severity. This evidence suggests the potential utility of continued suicide risk screening after improvements in depression symptoms."] ; # fhir:clinicalRecommendationStatement [ fhir:v "A careful and ongoing evaluation of suicide risk is necessary for all patients with major depressive disorder (American Psychiatric Association, 2010a).\n\nSuch an assessment includes specific inquiry about suicidal thoughts, intent, plans, means, and behaviors; identification of specific psychiatric symptoms (e.g., psychosis, severe anxiety, substance use, hopelessness, insomnia, agitation) or general medical conditions that may increase the likelihood of acting on suicidal ideas; assessment of past and, particularly, recent suicidal behavior; delineation of current stressors and potential protective factors (e.g., positive reasons for living, strong social support); and identification of any family history of suicide or mental illness (American Psychiatric Association, 2010a; Department of Veterans Affairs and Department of Defense, 2019).\n\nAs part of the assessment process, impulsivity and potential for risk to others should also be evaluated, including any history of violence or violent or homicidal ideas, plans, or intentions, or the availability of firearms (American Psychiatric Association, 2010a; Department of Veterans Affairs and Department of Defense, 2019).\n\nThe patient's risk of harm to him- or herself and to others should also be monitored as treatment proceeds (American Psychiatric Association, 2010a).\n\nGuidelines for Selecting a Treatment Setting for Patients at Risk for Suicide or Suicidal Behaviors (from American Psychiatric Association’s Practice Guideline for Assessment and Treatment of Patients With Suicidal Behaviors, 2010b):\n\nADMISSION GENERALLY INDICATED\nAfter a suicide attempt or aborted suicide attempt if:\n- Patient is psychotic\n- Attempt was violent, near-lethal, or premeditated\n- Precautions were taken to avoid rescue or discovery\n- Persistent plan and/or intent is present\n- Distress is increased or patient regrets surviving\n- Patient is male, older than age 45 years, especially with new onset of psychiatric illness or suicidal thinking\n- Patient has limited family and/or social support, including lack of stable living situation\n- Current impulsive behavior, severe agitation, poor judgment, or refusal of help is evident\n- Patient has change in mental status with a metabolic, toxic, infectious, or other etiology requiring further workup in a structured setting\n\nIn the presence of suicidal ideation with:\n- Specific plan with high lethality\n- High suicidal intent\n\nADMISSION MAY BE NECESSARY\nAfter a suicide attempt or aborted suicide attempt, except in circumstances for which admission is generally indicated\n\nIn the presence of suicidal ideation with:\n- Psychosis\n- Major psychiatric disorder\n- Past attempts, particularly if medically serious\n- Possibly contributing medical condition (e.g., acute neurological disorder, cancer, infection)\n- Lack of response to or inability to cooperate with partial hospital or outpatient treatment\n- Need for supervised setting for medication trial or electroconvulsive therapy (ECT)\n- Need for skilled observation, clinical tests, or diagnostic assessments that require a structured setting\n- Limited family and/or social support, including lack of stable living situation\n- Lack of an ongoing clinician-patient relationship or lack of access to timely outpatient follow-up\n- Evidence of putting one's affairs in order (e.g., giving away possessions, writing a will)\n\nIn the absence of suicide attempts or reported suicidal ideation/plan/intent but evidence from the psychiatric evaluation and/or history from others suggests a high level of suicide risk and a recent acute increase in risk\n\nRELEASE FROM EMERGENCY DEPARTMENT WITH FOLLOW-UP RECOMMENDATIONS MAY BE POSSIBLE\nAfter a suicide attempt or in the presence of suicidal ideation/plan when:\n- Suicidality is a reaction to precipitating events (e.g., exam failure, relationship difficulties), particularly if the patient's view of situation has changed since coming to emergency department\n- Plan/method and intent have low lethality\n- Patient has stable and supportive living situation\n- Patient is able to cooperate with recommendations for follow-up, with treater contacted, if possible, if patient is currently in treatment\n\nOUTPATIENT TREATMENT MAY BE MORE BENEFICIAL THAN HOSPITALIZATION\n\nPatient has chronic suicidal ideation and/or self-injury without prior medically serious attempts, if a safe and supportive living situation is available and outpatient psychiatric care is ongoing"] ; # fhir:group ( [ fhir:id [ fhir:v "6419eb169ef3a941fbe47b3b" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoring"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoring> ] ; fhir:value [ a fhir:CodeableConcept ; ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-scoring"^^xsd:anyURI ; fhir:l <http://terminology.hl7.org/CodeSystem/measure-scoring> ] ; fhir:code [ fhir:v "proportion" ] ; fhir:display [ fhir:v "Proportion" ] ] ) ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis> ] ; fhir:value [ a fhir:Code ; fhir:v "Encounter" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-type"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-type> ] ; fhir:value [ a fhir:CodeableConcept ; ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-type"^^xsd:anyURI ; fhir:l <http://terminology.hl7.org/CodeSystem/measure-type> ] ; fhir:code [ fhir:v "process" ] ; fhir:display [ fhir:v "Process" ] ] ) ] ] ) ; fhir:description [ fhir:v "CMS161FHIR" ] ; ( fhir:population [ fhir:id [ fhir:v "0d3520c9-ba24-4caf-87fb-e8277a5848fc" ] ; fhir:code [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ; fhir:l <http://terminology.hl7.org/CodeSystem/measure-population> ] ; fhir:code [ fhir:v "initial-population" ] ; fhir:display [ fhir:v "Initial Population" ] ] ) ] ; fhir:description [ fhir:v "Patient visits for patients that are 17 years of age or older at the start of the measurement period during which a new diagnosis of MDD, single or recurrent episode, was identified" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "Initial Population" ] ] ] [ fhir:id [ fhir:v "dadb23d6-32b1-4508-8e66-155d1ea1d9cb" ] ; fhir:code [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ; fhir:l <http://terminology.hl7.org/CodeSystem/measure-population> ] ; fhir:code [ fhir:v "denominator" ] ; fhir:display [ fhir:v "Denominator" ] ] ) ] ; fhir:description [ fhir:v "Equals Initial Population" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "Denominator" ] ] ] [ fhir:id [ fhir:v "b36eebb3-6f28-4ef0-af25-98d1bf1e7edc" ] ; fhir:code [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ; fhir:l <http://terminology.hl7.org/CodeSystem/measure-population> ] ; fhir:code [ fhir:v "denominator-exclusion" ] ; fhir:display [ fhir:v "Denominator Exclusion" ] ] ) ] ; fhir:description [ fhir:v "None" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ] ] [ fhir:id [ fhir:v "5072c83f-c169-4f31-b5d0-857fd1d141a0" ] ; fhir:code [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ; fhir:l <http://terminology.hl7.org/CodeSystem/measure-population> ] ; fhir:code [ fhir:v "numerator" ] ; fhir:display [ fhir:v "Numerator" ] ] ) ] ; fhir:description [ fhir:v "Patient visits during which a new diagnosis of MDD, single or recurrent episode, was identified and a suicide risk assessment was completed during the visit" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "Numerator" ] ] ] [ fhir:id [ fhir:v "f0562aa4-2642-47e7-bd49-3fade03805b4" ] ; fhir:code [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ; fhir:l <http://terminology.hl7.org/CodeSystem/measure-population> ] ; fhir:code [ fhir:v "numerator-exclusion" ] ; fhir:display [ fhir:v "Numerator Exclusion" ] ] ) ] ; fhir:description [ fhir:v "Not Applicable" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ] ] [ fhir:id [ fhir:v "7cef58d0-dea6-4d10-a2f2-d8e7ca8dadb9" ] ; fhir:code [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ; fhir:l <http://terminology.hl7.org/CodeSystem/measure-population> ] ; fhir:code [ fhir:v "denominator-exception" ] ; fhir:display [ fhir:v "Denominator Exception" ] ] ) ] ; fhir:description [ fhir:v "None" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ] ] ) ] ) ; # fhir:supplementalData ( [ fhir:id [ fhir:v "sde-ethnicity" ] ; ( fhir:usage [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ; fhir:l <http://terminology.hl7.org/CodeSystem/measure-data-usage> ] ; fhir:code [ fhir:v "supplemental-data" ] ] ) ] ) ; fhir:description [ fhir:v "SDE Ethnicity" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "SDE Ethnicity" ] ] ] [ fhir:id [ fhir:v "sde-payer" ] ; ( fhir:usage [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ; fhir:l <http://terminology.hl7.org/CodeSystem/measure-data-usage> ] ; fhir:code [ fhir:v "supplemental-data" ] ] ) ] ) ; fhir:description [ fhir:v "SDE Payer" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "SDE Payer" ] ] ] [ fhir:id [ fhir:v "sde-race" ] ; ( fhir:usage [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ; fhir:l <http://terminology.hl7.org/CodeSystem/measure-data-usage> ] ; fhir:code [ fhir:v "supplemental-data" ] ] ) ] ) ; fhir:description [ fhir:v "SDE Race" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "SDE Race" ] ] ] [ fhir:id [ fhir:v "sde-sex" ] ; ( fhir:usage [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ; fhir:l <http://terminology.hl7.org/CodeSystem/measure-data-usage> ] ; fhir:code [ fhir:v "supplemental-data" ] ] ) ] ) ; fhir:description [ fhir:v "SDE Sex" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "SDE Sex" ] ] ] ) . #
IG © 2023+ cqframework. Package gov.healthit.ecqi.ecqms#2023.0.0 based on FHIR 4.0.1. Generated 2026-05-13
Links: Table of Contents |
QA Report
| Version History
|