<Measure xmlns="http://hl7.org/fhir">
   <id value="CMS137FHIRSUDTxInitEngagement"></id>
   <meta>
      <profile value="http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablemeasure"></profile>
      <profile value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm"></profile>
      <profile value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/publishable-measure-cqfm"></profile>
      <profile value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/executable-measure-cqfm"></profile>
      <profile value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cql-measure-cqfm"></profile>
      <profile value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/elm-measure-cqfm"></profile>
      <profile value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/proportion-measure-cqfm"></profile>
   </meta>
   <text>
      <status value="extensions"></status>
      <div xmlns="http://www.w3.org/1999/xhtml" class="col-12"> 
         <table class="narrative-table"> 
            <tbody> 
               <tr> 
                  <th colspan="2" scope="row" class="row-header">Metadata</th> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Title</th> 
                  <td class="content-container">Initiation and Engagement of Substance Use Disorder TreatmentFHIR</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Version</th> 
                  <td class="content-container">1.0.000</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Short Name</th> 
                  <td class="content-container">CMS137FHIR</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">GUID (Version Independent)</th> 
                  <td class="content-container">urn:uuid:7738a412-7fff-4276-a140-8ee4c08503a2</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">GUID (Version Specific)</th> 
                  <td class="content-container">urn:uuid:e156e1a3-4a76-4490-b3be-96a0d90f9b32</td> 
               </tr>  
               <tr> 
                  <th scope="row" class="row-header">CMS Identifier</th> 
                  <td class="content-container">137FHIR</td> 
               </tr>   
               <tr> 
                  <th scope="row" class="row-header">Effective Period</th> 
                  <td class="content-container">2026-01-01 through 2026-12-31</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Steward (Publisher)</th> 
                  <td class="content-container">National Committee for Quality Assurance</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Developer</th> 
                  <td class="content-container">National Committee for Quality Assurance</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Description</th> 
                  <td class="content-container">Percentage of patients 13 years of age and older with a new substance use disorder (SUD) episode who received the following (Two rates are reported): a. Percentage of patients who initiated treatment, including either an intervention or medication for the treatment of SUD, within 14 days of the new SUD episode. b. Percentage of patients who engaged in ongoing treatment, including two additional interventions or medication treatment events for SUD, or one long-acting medication event for the treatment of SUD, within 34 days of the initiation.</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Copyright</th> 
                  <td class="content-container">This Physician Performance Measure (Measure) and related data specifications are owned and were developed by the National Committee for Quality Assurance (NCQA). NCQA is not responsible for any use of the Measure. NCQA makes no representations, warranties or endorsements about the quality of any product, test or protocol identified as numerator compliant or otherwise identified as meeting the requirements of the measure or specification. NCQA makes no representations, warranties, or endorsement about the quality of any organization or physician that uses or reports performance measures and NCQA has no liability to anyone who relies on such measures or specifications. NCQA holds a copyright in the Measure. The Measure may be used for internal, noncommercial purposes (e.g., use by healthcare providers in connection with their practices) without obtaining approval from NCQA. All other uses, including a commercial use (including but not limited to vendors using or embedding the measures and specifications into any product or service to calculate measure results for customers for any purpose), must be approved by NCQA and are subject to a license at the discretion of NCQA. (C) 2012-2025 National Committee for Quality Assurance. All Rights Reserved. Limited proprietary coding is contained in the Measure specifications for user convenience. Users of proprietary code sets should obtain all necessary licenses from the owners of the code sets. NCQA disclaims all liability for use or accuracy of any third-party codes contained in the specifications. CPT(R) codes, descriptions and other data are copyright 2025. American Medical Association. All rights reserved. CPT is a trademark of the American Medical Association. Fee schedules, relative value units, conversion factors and/or related components are not assigned by the AMA, are not part of CPT, and the AMA is not recommending their use. The AMA does not directly or indirectly practice medicine or dispense medical services. The AMA assumes no liability for data contained or not contained herein. Applicable FARS/DFARS restrictions apply to government use. Some measure specifications contain coding from LOINC(R) (https://loinc.org). The LOINC table, LOINC codes, LOINC panels and form file, LOINC linguistic variants file, LOINC/RSNA Radiology Playbook, and LOINC/IEEE Medical Device Code Mapping Table are copyright 2004-2025 Regenstrief Institute, Inc. and the Logical Observation Identifiers Names and Codes (LOINC) Committee, and are available at no cost under the license at https://loinc.org/kb/license/. This material contains SNOMED Clinical Terms(R) (SNOMED CT[R]) copyright 2004-2024 International Health Terminology Standards Development Organisation. ICD-10 copyright 2025 World Health Organization. All Rights Reserved. Some measures use RxNorm, a standardized nomenclature and coding for clinical drugs and drug delivery devices, which is made publicly available courtesy of the U.S. National Library of Medicine (NLM), National Institutes of Health, Department of Health and Human Services. NLM is not responsible for the measures and does not endorse or recommend this or any other product. “HL7” is the registered trademark of Health Level Seven International.</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Disclaimer</th> 
                  <td class="content-container">The performance Measure is not a clinical guideline and does not establish a standard of medical care, and has not been tested for all potential applications. THE MEASURE AND SPECIFICATIONS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. Due to technical limitations, registered trademarks are indicated by (R) or [R] and unregistered trademarks are indicated by (TM) or [TM].</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Rationale</th> 
                  <td class="content-container">There are more deaths, illnesses and disabilities from substance abuse than from any other preventable health condition. In 2021, 46.3 million individuals in the U.S. age 12 or older (16.5 percent of the population) met the diagnosis criteria for having an SUD within the past year (Substance Abuse and Mental Health Services Administration [SAMHSA], 2022). Despite the high prevalence of SUD in the U.S., 94 percent of individuals aged 12 or older with an SUD did not receive any treatment (SAMHSA, 2022).</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Clinical Recommendation Statement</th> 
                  <td class="content-container">American Society of Addiction Medicine (2020) - All Food and Drug Administration approved medications for the treatment of opioid use disorder should be available to all patients. Clinicians should consider the patient’s preferences, past treatment history, current state of illness, and treatment setting when deciding between the use of methadone, buprenorphine, and naltrexone. - There is no recommended time limit for pharmacological treatment - Patients’ psychosocial needs should be assessed, and patients should be offered or referred to psychosocial treatment based on their individual needs. However, a patient’s decision to decline psychosocial treatment or the absence of available psychosocial treatment should not preclude or delay pharmacotherapy, with appropriate medication management. Motivational interviewing or enhancement can be used to encourage patients to engage in psychosocial treatment services appropriate for addressing individual needs. American Psychiatric Association (2018) - Patients with alcohol use disorder should have a documented comprehensive and person-centered treatment plan that includes evidence-based nonpharmacological and pharmacological treatments. [1C] - Naltrexone or acamprosate should be offered to patients with moderate to severe alcohol use disorder who have a goal of reducing alcohol consumption or achieving abstinence, prefer pharmacotherapy or have not responded to nonpharmacological treatments alone, and have no contraindications to the use of these medications. [1B] - Disulfiram should be offered to patients with moderate to severe alcohol use disorder who have a goal of achieving abstinence, prefer disulfiram or are intolerant to or have not responded to naltrexone and acamprosate, are capable of understanding the risks of alcohol consumption while taking disulfiram, and have no contraindications to the use of this medication. [2C] - Topiramate or gabapentin should be offered to patients with moderate to severe alcohol use disorder who have a goal of reducing alcohol consumption or achieving abstinence, prefer topiramate or gabapentin or are intolerant to or have not responded to naltrexone and acamprosate, and have no contraindications to the use of these medications. [2C] American Psychiatric Association (2006) - Because many substance use disorders are chronic, patients usually require long-term treatment, although the intensity and specific components of treatment may vary over time [I rating]. - It is important to intensify the monitoring for substance use during periods when the patient is at a high risk of relapsing, including during the early stages of treatment, times of transition to less intensive levels of care, and the first year after active treatment has ceased [I rating]. - Outpatient treatment of substance use disorders is appropriate for patients whose clinical condition or environmental circumstances do not require a more intensive level of care [I rating]. As in other treatment settings, a comprehensive approach is optimal, using, where indicated, a variety of psychotherapeutic and pharmacological interventions along with behavioral monitoring [I rating]. - Disulfiram is also recommended for patients with alcohol dependence [II rating]. - Naltrexone, injectable naltrexone, acamprosate, a y-aminobutyric acid (GABA) are recommended for patients with alcohol dependence [I rating]. Disulfiram is also recommended for patients with alcohol dependence [II rating]. - Methadone and buprenorphine are recommended for patients with opioid dependence [I rating]. - Naltrexone is an alternative strategy [I rating]. American Society of Addiction Medicine (2015) - Methadone and buprenorphine are recommended for opioid use disorder treatment and withdrawal management. - Naltrexone (oral; extended-release injectable) is recommended for relapse prevention. Michigan Quality Improvement Consortium (2021) - Patients with substance use disorder or risky substance use: Patient Education and Brief Intervention by a Primary Care Physician (PCP) or Trained Staff (e.g., Registered Nurse [RN], Master of Social Work [MSW]) - If diagnosed with substance use disorder or risky substance use, initiate an intervention within 14 days. - Frequent follow-up is helpful to support behavior change; preferably 2 visits within 30 days. - Refer to a substance abuse health specialist, an addiction physician specialist, or a physician experienced in pharmacologic management of addiction. Department of Veterans Affairs/Department of Defense (2015) - Offer referral to specialty SUD care for addiction treatment based on willingness to engage. [B] - For patients with moderate-severe alcohol use disorder, we recommend: Acamprosate, Disulfiram, Naltrexone- oral or extended release, or Topiramate. [A] - Medications should be offered in combined with addiction-focused counseling, offering one or more of the following interventions considering patient preference and provider training/competence: Behavioral Couples Therapy for alcohol use disorder, Cognitive Behavioral Therapy for substance use disorders, Community Reinforcement Approach, Motivational Enhancement Therapy, 12-Step Facilitation. [A] - For patients with opioid use disorder we recommend buprenorphine/naloxone or methadone in an Opioid Treatment Program. For patients for whom agonist treatment is contraindicated, unacceptable, unavailable, or discontinued, we recommend extended-release injectable naltrexone. [A] - For patients initiated in an intensive phase of outpatient or residential treatment, recommend ongoing systematic relapse prevention efforts or recovery support, individualized on the basis of treatment response. [A]</td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  American Psychiatric Association, Kleber, H. D., &amp; McIntyre, J. S. (2006). Practice Guideline for Treatment of Patients with Substance Use Disorders (pp. 1-276). Arlington, VA: American Psychiatric Association.    </td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  American Society of Addiction Medicine (ASAM). (2020). The ASAM National Practice Guideline for the Treatment of Opioid Use Disorder: 2020 Focused Update.   </td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  Department of Veteran Affairs, Department of Defense. (2015). VA/DoD Clinical Practice Guideline for the Management of Substance Use Disorders. Washington DC: Department of Veterans Affairs, Department of Defense.   </td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  Kampman, K., Jarvis, M. (2015). The ASAM National Practice Guideline for the Use of Medications in the Treatment of Addiction Involving Opioid Use. Journal of Addiction Medicine; 9(5), 358–367. https://doi.org/10.1097/ADM.0000000000000166   </td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  Michigan Quality Improvement Consortium. (2021). Screening, Diagnosis and Referral for Substance Use Disorders. Southfield, (MI): Michigan Quality Improvement Consortium. Retrieved from https://www.improve.health/wp-content/uploads/2023/04/mqicscreeningdiagnosisandreferralforsubstanceusedisordersFINAL-1.pdf   </td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  Reus, V. et al. (2018). Practice Guideline for the Pharmacological Treatment of Patients with Alcohol Use Disorder. American Journal of Psychiatry, 175(1), 86-90. https://doi.org/10.1176/appi.ajp.2017.1750101   </td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  Substance Abuse and Mental Health Services Administration (SAMHSA). (2022). Key substance use and mental health indicators in the United States: Results from the 2021 National Survey on Drug Use and Health (HHS Publication No. PEP22-07-01-005, NSDUH Series H-57). Center for Behavioral Health Statistics and Quality, Substance Abuse and Mental Health Services Administration. https://www.samhsa.gov/data/report/2021-nsduh-annual-national-report   </td> 
               </tr>  
               <tr> 
                  <th scope="row" class="row-header">Definition</th> 
                  <td class="content-container">Initiation of Treatment: The initiation of treatment is the first SUD treatment within 14 days of a new SUD episode. Treatment includes inpatient SUD admissions, outpatient visits, intensive outpatient encounters or partial hospitalizations, and medications for the treatment of SUD.</td> 
               </tr>  
               <tr> 
                  <th scope="row" class="row-header">Definition</th> 
                  <td class="content-container">New SUD Episode: The new SUD episode is the first encounter during the Intake Period with a diagnosis of SUD with no encounter or medication treatment for a diagnosis of SUD in the 60 days prior.</td> 
               </tr>  
               <tr> 
                  <th scope="row" class="row-header">Definition</th> 
                  <td class="content-container">The Intake Period: January 1-November 14 of the measurement year. The Intake Period is used to capture new SUD episodes. The November 14 cut-off date ensures that all services can occur before the measurement period ends.</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Guidance (Usage)</th> 
                  <td class="content-container">This eCQM is a patient-based measure. This FHIR-based measure has been derived from the QDM-based measure: CMS137v14. Please refer to the HL7 QI-Core Implementation Guide (https://hl7.org/fhir/us/qicore/STU6/) for more information on QI-Core and mapping recommendations from QDM to QI-Core STU 6. (https://hl7.org/fhir/us/qicore/STU6/qdm-to-qicore.html).</td> 
               </tr>  
               <tr> 
                  <th colspan="2" scope="row" class="row-header">Measure Group (Rate) (ID: Group_1)</th> 
               </tr>   
               <tr> 
                  <th scope="row" class="row-header">Basis</th> 
                  <td class="content-container">boolean</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Scoring</th> 
                  <td class="content-container">[http://terminology.hl7.org/CodeSystem/measure-scoring#proportion: 'Proportion']</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Type</th> 
                  <td class="content-container">[http://terminology.hl7.org/CodeSystem/measure-type#process: 'Process']</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Rate Aggregation</th> 
                  <td class="content-container">None</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Improvement Notation</th> 
                  <td class="content-container">[http://terminology.hl7.org/CodeSystem/measure-improvement-notation#increase: 'Increased score indicates improvement']</td> 
               </tr>  
               <tr>  
                  <th scope="row" class="row-header">Initial Population</th> 
                  <td class="content-container"> 
                     <em>ID</em>: InitialPopulation_1 
                     <br></br>  
                     <em>Description</em>: 
                     <p style="white-space: pre-line" class="tab-one">Patients 13 years of age and older as of the start of the measurement period who were diagnosed with a new SUD episode during a visit between January 1 and November 14 of the measurement period</p>   
                     <em>Logic Definition</em>: 
                     <a href="#primary-cms137fhirsudtxinitengagement-initial-population">Initial Population</a>  
                  </td> 
               </tr>  
               <tr>  
                  <th scope="row" class="row-header">Denominator</th> 
                  <td class="content-container"> 
                     <em>ID</em>: Denominator_1 
                     <br></br>  
                     <em>Description</em>: 
                     <p style="white-space: pre-line" class="tab-one">Equals Initial Population</p>   
                     <em>Logic Definition</em>: 
                     <a href="#primary-cms137fhirsudtxinitengagement-denominator">Denominator</a>  
                  </td> 
               </tr>  
               <tr>  
                  <th scope="row" class="row-header">Denominator Exclusion</th> 
                  <td class="content-container"> 
                     <em>ID</em>: DenominatorExclusion_1 
                     <br></br>  
                     <em>Description</em>: 
                     <p style="white-space: pre-line" class="tab-one">Exclude patients who are in hospice care for any part of the measurement period</p>   
                     <em>Logic Definition</em>: 
                     <a href="#primary-cms137fhirsudtxinitengagement-denominator-exclusions">Denominator Exclusions</a>  
                  </td> 
               </tr>  
               <tr>  
                  <th scope="row" class="row-header">Numerator</th> 
                  <td class="content-container"> 
                     <em>ID</em>: Numerator_1 
                     <br></br>  
                     <em>Description</em>: 
                     <p style="white-space: pre-line" class="tab-one">Initiation of treatment includes either an intervention or medication for the treatment of SUD within 14 days of the new SUD episode.</p>   
                     <em>Logic Definition</em>: 
                     <a href="#primary-cms137fhirsudtxinitengagement-numerator-1">Numerator 1</a>  
                  </td> 
               </tr>  
               <tr> 
                  <th scope="row" class="row-header">Stratifier</th> 
                  <td class="content-container"> 
                     <em>ID</em>: Stratification_1_1  
                     <br></br>   
                     <em>Description</em>: Report a total score, and each of the following strata: Stratum 1: Patients age 13-17 at the start of the measurement period  
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Stratifier</th> 
                  <td class="content-container"> 
                     <em>ID</em>: Stratification_1_2  
                     <br></br>   
                     <em>Description</em>: Stratum 2: Patients age 18-64 at the start of the measurement period  
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Stratifier</th> 
                  <td class="content-container"> 
                     <em>ID</em>: Stratification_1_3  
                     <br></br>   
                     <em>Description</em>: Stratum 3: Patients age 65 and older at the start of the measurement period  
                  </td> 
               </tr>  
               <tr> 
                  <th colspan="2" scope="row" class="row-header">Measure Group (Rate) (ID: Group_2)</th> 
               </tr>   
               <tr> 
                  <th scope="row" class="row-header">Basis</th> 
                  <td class="content-container">boolean</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Scoring</th> 
                  <td class="content-container">[http://terminology.hl7.org/CodeSystem/measure-scoring#proportion: 'Proportion']</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Type</th> 
                  <td class="content-container">[http://terminology.hl7.org/CodeSystem/measure-type#process: 'Process']</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Rate Aggregation</th> 
                  <td class="content-container">None</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Improvement Notation</th> 
                  <td class="content-container">[http://terminology.hl7.org/CodeSystem/measure-improvement-notation#increase: 'Increased score indicates improvement']</td> 
               </tr>  
               <tr>  
                  <th scope="row" class="row-header">Initial Population</th> 
                  <td class="content-container"> 
                     <em>ID</em>: InitialPopulation_2 
                     <br></br>  
                     <em>Description</em>: 
                     <p style="white-space: pre-line" class="tab-one">Patients 13 years of age and older as of the start of the measurement period who were diagnosed with a new SUD episode during a visit between January 1 and November 14 of the measurement period</p>   
                     <em>Logic Definition</em>: 
                     <a href="#primary-cms137fhirsudtxinitengagement-initial-population">Initial Population</a>  
                  </td> 
               </tr>  
               <tr>  
                  <th scope="row" class="row-header">Denominator</th> 
                  <td class="content-container"> 
                     <em>ID</em>: Denominator_2 
                     <br></br>  
                     <em>Description</em>: 
                     <p style="white-space: pre-line" class="tab-one">Equals Initial Population</p>   
                     <em>Logic Definition</em>: 
                     <a href="#primary-cms137fhirsudtxinitengagement-denominator">Denominator</a>  
                  </td> 
               </tr>  
               <tr>  
                  <th scope="row" class="row-header">Denominator Exclusion</th> 
                  <td class="content-container"> 
                     <em>ID</em>: DenominatorExclusion_2 
                     <br></br>  
                     <em>Description</em>: 
                     <p style="white-space: pre-line" class="tab-one">Exclude patients who are in hospice care for any part of the measurement period</p>   
                     <em>Logic Definition</em>: 
                     <a href="#primary-cms137fhirsudtxinitengagement-denominator-exclusions">Denominator Exclusions</a>  
                  </td> 
               </tr>  
               <tr>  
                  <th scope="row" class="row-header">Numerator</th> 
                  <td class="content-container"> 
                     <em>ID</em>: Numerator_2 
                     <br></br>  
                     <em>Description</em>: 
                     <p style="white-space: pre-line" class="tab-one">Engagement in ongoing SUD treatment within 34 days of initiation includes: 1. A long-acting SUD medication on the day after the initiation through 34 days after the initiation of treatment. 2. One of the following options on the day after the initiation of treatment through 34 days after the initiation of treatment: a) two engagement visits, b) two engagement medication treatment events, c) one engagement visit and one engagement medication treatment event.</p>   
                     <em>Logic Definition</em>: 
                     <a href="#primary-cms137fhirsudtxinitengagement-numerator-2">Numerator 2</a>  
                  </td> 
               </tr>  
               <tr> 
                  <th scope="row" class="row-header">Stratifier</th> 
                  <td class="content-container"> 
                     <em>ID</em>: Stratification_2_1  
                     <br></br>   
                     <em>Description</em>: Report a total score, and each of the following strata: Stratum 1: Patients age 13-17 at the start of the measurement period  
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Stratifier</th> 
                  <td class="content-container"> 
                     <em>ID</em>: Stratification_2_2  
                     <br></br>   
                     <em>Description</em>: Stratum 2: Patients age 18-64 at the start of the measurement period  
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Stratifier</th> 
                  <td class="content-container"> 
                     <em>ID</em>: Stratification_2_3  
                     <br></br>   
                     <em>Description</em>: Stratum 3: Patients age 65 and older at the start of the measurement period  
                  </td> 
               </tr>  
               <tr> 
                  <th scope="row" class="row-header">Supplemental Data Guidance</th> 
                  <td class="content-container">For every patient evaluated by this measure also identify payer, race, ethnicity and sex</td> 
               </tr> 
               <tr> 
                  <th colspan="2" scope="row" class="row-header">Supplemental Data Elements</th> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Supplemental Data Element</th> 
                  <td class="content-container"> 
                     <em>ID</em>: sde-ethnicity  
                     <br></br>   
                     <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#supplemental-data]  
                     <br></br>  
                     <em>Description</em>: SDE Ethnicity   
                     <br></br> 
                     <em>Logic Definition</em>: 
                     <a href="#cms137fhirsudtxinitengagement-sde-ethnicity">SDE Ethnicity</a>  
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Supplemental Data Element</th> 
                  <td class="content-container"> 
                     <em>ID</em>: sde-payer  
                     <br></br>   
                     <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#supplemental-data]  
                     <br></br>  
                     <em>Description</em>: SDE Payer   
                     <br></br> 
                     <em>Logic Definition</em>: 
                     <a href="#cms137fhirsudtxinitengagement-sde-payer">SDE Payer</a>  
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Supplemental Data Element</th> 
                  <td class="content-container"> 
                     <em>ID</em>: sde-race  
                     <br></br>   
                     <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#supplemental-data]  
                     <br></br>  
                     <em>Description</em>: SDE Race   
                     <br></br> 
                     <em>Logic Definition</em>: 
                     <a href="#cms137fhirsudtxinitengagement-sde-race">SDE Race</a>  
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Supplemental Data Element</th> 
                  <td class="content-container"> 
                     <em>ID</em>: sde-sex  
                     <br></br>   
                     <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#supplemental-data]  
                     <br></br>  
                     <em>Description</em>: SDE Sex   
                     <br></br> 
                     <em>Logic Definition</em>: 
                     <a href="#cms137fhirsudtxinitengagement-sde-sex">SDE Sex</a>  
                  </td> 
               </tr> 
               <tr> 
                  <th colspan="2" scope="row" class="row-header">Measure Logic</th> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Primary Library</th> 
                  <td class="content-container">https://madie.cms.gov/Library/CMS137FHIRSUDTxInitEngagement</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Contents</th> 
                  <td class="content-container"> 
                     <em>
                        <a href="#population-criteria">Population Criteria</a>
                     </em> 
                     <br></br> 
                     <em>
                        <a href="#definitions">Logic Definitions</a>
                     </em> 
                     <br></br> 
                     <em>
                        <a href="#terminology">Terminology</a>
                     </em> 
                     <br></br> 
                     <em>
                        <a href="#dependencies">Dependencies</a>
                     </em> 
                     <br></br> 
                     <em>
                        <a href="#data-requirements">Data Requirements</a>
                     </em> 
                     <br></br> 
                  </td> 
               </tr> 
               <tr> 
                  <th colspan="2" scope="row" class="row-header">
                     <a name="population-criteria"> </a>Population Criteria
                  </th> 
               </tr>   
               <tr> 
                  <th colspan="2" scope="row" class="row-header">Measure Group (Rate) (ID: Group_1)</th> 
               </tr>               
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="primary-cms137fhirsudtxinitengagement-initial-population"> </a>  Initial Population  
                  </th> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Initial Population":
  AgeInYearsAt(date from start of "Measurement Period") &gt;= 13
    and "First SUD Episode During Measurement Period" is not null
    and not exists "History of SUD Diagnosis or Treatment"</code></pre> 
                  </td> 
               </tr>                                              
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="primary-cms137fhirsudtxinitengagement-denominator"> </a>  Denominator  
                  </th> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Denominator":
  "Initial Population"</code></pre> 
                  </td> 
               </tr>                                                          
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="primary-cms137fhirsudtxinitengagement-denominator-exclusions"> </a>  Denominator Exclusion  
                  </th> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Denominator Exclusions":
  Hospice."Has Hospice Services"</code></pre> 
                  </td> 
               </tr>                                    
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="primary-cms137fhirsudtxinitengagement-numerator-1"> </a>  Numerator  
                  </th> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Numerator 1":
  exists "Treatment Initiation With Non Medication Intervention Dates"
    or exists "Treatment Initiation With Medication Order Dates"</code></pre> 
                  </td> 
               </tr>                                  
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="primary-cms137fhirsudtxinitengagement-stratification-1"> </a>  Stratifier  
                  </th> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Stratification 1":
  AgeInYearsAt(date from start of "Measurement Period") in Interval[13, 17]</code></pre> 
                  </td> 
               </tr>                                          
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="primary-cms137fhirsudtxinitengagement-stratification-2"> </a>  Stratifier  
                  </th> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Stratification 2":
  AgeInYearsAt(date from start of "Measurement Period") in Interval[18, 64]</code></pre> 
                  </td> 
               </tr>                                          
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="primary-cms137fhirsudtxinitengagement-stratification-3"> </a>  Stratifier  
                  </th> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Stratification 3":
  AgeInYearsAt(date from start of "Measurement Period") &gt;= 65</code></pre> 
                  </td> 
               </tr>                                        
               <tr> 
                  <th colspan="2" scope="row" class="row-header">Measure Group (Rate) (ID: Group_2)</th> 
               </tr>               
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="primary-cms137fhirsudtxinitengagement-initial-population"> </a>  Initial Population  
                  </th> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Initial Population":
  AgeInYearsAt(date from start of "Measurement Period") &gt;= 13
    and "First SUD Episode During Measurement Period" is not null
    and not exists "History of SUD Diagnosis or Treatment"</code></pre> 
                  </td> 
               </tr>                                              
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="primary-cms137fhirsudtxinitengagement-denominator"> </a>  Denominator  
                  </th> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Denominator":
  "Initial Population"</code></pre> 
                  </td> 
               </tr>                                                          
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="primary-cms137fhirsudtxinitengagement-denominator-exclusions"> </a>  Denominator Exclusion  
                  </th> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Denominator Exclusions":
  Hospice."Has Hospice Services"</code></pre> 
                  </td> 
               </tr>                                         
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="primary-cms137fhirsudtxinitengagement-numerator-2"> </a>  Numerator  
                  </th> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Numerator 2":
  "Has Treatment Engagement With Long Acting Medication"
    or "Has Two or More Treatment Engagements With Short Acting Medication or Non Medication Intervention"</code></pre> 
                  </td> 
               </tr>                             
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="primary-cms137fhirsudtxinitengagement-stratification-1"> </a>  Stratifier  
                  </th> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Stratification 1":
  AgeInYearsAt(date from start of "Measurement Period") in Interval[13, 17]</code></pre> 
                  </td> 
               </tr>                                          
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="primary-cms137fhirsudtxinitengagement-stratification-2"> </a>  Stratifier  
                  </th> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Stratification 2":
  AgeInYearsAt(date from start of "Measurement Period") in Interval[18, 64]</code></pre> 
                  </td> 
               </tr>                                          
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="primary-cms137fhirsudtxinitengagement-stratification-3"> </a>  Stratifier  
                  </th> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Stratification 3":
  AgeInYearsAt(date from start of "Measurement Period") &gt;= 65</code></pre> 
                  </td> 
               </tr>                                        
               <tr> 
                  <th colspan="2" scope="row" class="row-header">
                     <a name="definitions"> </a>Logic Definitions
                  </th> 
               </tr>              
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="hospice-has-hospice-services"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> Hospice
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Has Hospice Services":
  exists ((([Encounter: "Encounter Inpatient"]).isEncounterPerformed()) InpatientEncounter
      where (InpatientEncounter.hospitalization.dischargeDisposition ~ "Discharge to home for hospice care (procedure)"
          or InpatientEncounter.hospitalization.dischargeDisposition ~ "Discharge to healthcare facility for hospice care (procedure)"
      )
        and InpatientEncounter.period ends during day of "Measurement Period"
  )
    or exists ((([Encounter: "Hospice Encounter"]).isEncounterPerformed()) HospiceEncounter
        where HospiceEncounter.period overlaps day of "Measurement Period"
    )
    or exists ((([ObservationScreeningAssessment: "Hospice care [Minimum Data Set]"]).isAssessmentPerformed()) HospiceAssessment
        where HospiceAssessment.value ~ "Yes (qualifier value)"
          and HospiceAssessment.effective.toInterval() overlaps day of "Measurement Period"
    )
    or exists ((([ServiceRequest: "Hospice Care Ambulatory"]).isInterventionOrder()) HospiceOrder
        where HospiceOrder.authoredOn during day of "Measurement Period"
    )
    or exists ((([Procedure: "Hospice Care Ambulatory"]).isInterventionPerformed()) HospicePerformed
        where HospicePerformed.performed.toInterval() overlaps day of "Measurement Period"
    )
    or exists ((([ConditionProblemsHealthConcerns: "Hospice Diagnosis"]
        union [ConditionEncounterDiagnosis: "Hospice Diagnosis"]).verified()) HospiceCareDiagnosis
        where HospiceCareDiagnosis.prevalenceInterval() overlaps day of "Measurement Period"
    )</code></pre> 
                  </td> 
               </tr>          
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="supplementaldataelements-sde-sex"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> SupplementalDataElements
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "SDE Sex":
  case
    when Patient.sex = '248153007' then "Male (finding)"
    when Patient.sex = '248152002' then "Female (finding)"
    else null
  end</code></pre> 
                  </td> 
               </tr>        
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="supplementaldataelements-sde-payer"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> SupplementalDataElements
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "SDE Payer":
  [Coverage: type in "Payer Type"] Payer
    return {
      code: Payer.type,
      period: Payer.period
    }</code></pre> 
                  </td> 
               </tr>   
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="supplementaldataelements-sde-ethnicity"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> SupplementalDataElements
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "SDE Ethnicity":
  Patient.ethnicity E
    return Tuple {
      codes: { E.ombCategory } union E.detailed,
      display: E.text
    }</code></pre> 
                  </td> 
               </tr>   
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="supplementaldataelements-sde-race"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> SupplementalDataElements
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "SDE Race":
  Patient.race R
    return Tuple {
      codes: R.ombCategory union R.detailed,
      display: R.text
    }</code></pre> 
                  </td> 
               </tr>         
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="cms137fhirsudtxinitengagement-sde-sex"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CMS137FHIRSUDTxInitEngagement
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "SDE Sex":
  SDE."SDE Sex"</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="cms137fhirsudtxinitengagement-stratification-3"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CMS137FHIRSUDTxInitEngagement
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Stratification 3":
  AgeInYearsAt(date from start of "Measurement Period") &gt;= 65</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="cms137fhirsudtxinitengagement-stratification-2"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CMS137FHIRSUDTxInitEngagement
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Stratification 2":
  AgeInYearsAt(date from start of "Measurement Period") in Interval[18, 64]</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="cms137fhirsudtxinitengagement-stratification-1"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CMS137FHIRSUDTxInitEngagement
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Stratification 1":
  AgeInYearsAt(date from start of "Measurement Period") in Interval[13, 17]</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="cms137fhirsudtxinitengagement-qualifying-encounters"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CMS137FHIRSUDTxInitEngagement
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Qualifying Encounters":
  ( [Encounter: "Office Visit"]
      union [Encounter: "Emergency Department Evaluation and Management Visit"]
      union [Encounter: "Detoxification Visit"]
      union [Encounter: "Initial Hospital Inpatient Visit"]
      union [Encounter: "Discharge Services Hospital Inpatient Same Day Discharge"]
      union [Encounter: "Discharge Services Hospital Inpatient"]
      union [Encounter: "Telephone Visits"]
      union [Encounter: "Virtual Encounter"]
  ).isEncounterPerformed ( )</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="cms137fhirsudtxinitengagement-first-sud-episode-during-measurement-period"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CMS137FHIRSUDTxInitEngagement
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "First SUD Episode During Measurement Period":
  First(("Qualifying Encounters") ValidEncounters
      with(([ConditionEncounterDiagnosis: "Substance Use Disorder"]).verified()) SUDDiagnosis
        such that ValidEncounters.period during "Measurement Period"
          and SUDDiagnosis.prevalenceInterval() starts during ValidEncounters.period
          and SUDDiagnosis.prevalenceInterval() starts 47 days or more before day of 
          end of "Measurement Period"
      return {
        ValidEncounterDate: date from start of ValidEncounters.period,
        ValidEncounter: ValidEncounters
      }
      sort by ValidEncounterDate
  ).ValidEncounter</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="cms137fhirsudtxinitengagement-emergency-department-or-detoxification-visit"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CMS137FHIRSUDTxInitEngagement
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Emergency Department or Detoxification Visit":
  ( [Encounter: "Emergency Department Evaluation and Management Visit"]
      union [Encounter: "Detoxification Visit"]
  ).isEncounterPerformed ( )</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="cms137fhirsudtxinitengagement-history-of-sud-diagnosis-or-treatment"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CMS137FHIRSUDTxInitEngagement
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "History of SUD Diagnosis or Treatment":
  ( ( ( [Procedure: "Substance Use Disorder Treatment"]
        union [Procedure: "Psych Visit Psychotherapy"]
        union [Procedure: "Substance Use Disorder Long Acting Medication Administration"]
        union [Procedure: "Substance Use Disorder Short Acting Medication Administration"]
    ).isInterventionPerformed ( ) ) Interventions
      with "First SUD Episode During Measurement Period" FirstSUDEpisode
        such that Interventions.performed.toInterval ( ) starts 60 days or less before day of date from start of FirstSUDEpisode.period
  )
    union ( ( ( "Qualifying Encounters"
        except "Emergency Department or Detoxification Visit" ) QualifyingEncounter
        where QualifyingEncounter.encounterDiagnosis ( ).code in "Substance Use Disorder" ) SUDEncounterDx
        with "First SUD Episode During Measurement Period" FirstSUDEpisode
          such that SUDEncounterDx.period starts 60 days or less before day of date from start of FirstSUDEpisode.period
    )
    union ( ( ( [MedicationRequest: "Substance Use Disorder Long Acting Medication"]
          union [MedicationRequest: "Substance Use Disorder Short Acting Medication"]
      ).isMedicationOrder ( ) ) SUDMedication
        with "First SUD Episode During Measurement Period" FirstSUDEpisode
          such that SUDMedication.authoredOn 60 days or less before day of date from start of FirstSUDEpisode.period
    )</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="cms137fhirsudtxinitengagement-initial-population"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CMS137FHIRSUDTxInitEngagement
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Initial Population":
  AgeInYearsAt(date from start of "Measurement Period") &gt;= 13
    and "First SUD Episode During Measurement Period" is not null
    and not exists "History of SUD Diagnosis or Treatment"</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="cms137fhirsudtxinitengagement-denominator"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CMS137FHIRSUDTxInitEngagement
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Denominator":
  "Initial Population"</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="cms137fhirsudtxinitengagement-psychosocial-visit"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CMS137FHIRSUDTxInitEngagement
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Psychosocial Visit":
  ( ( [Procedure: "Substance Use Disorder Treatment"]
        union [Procedure: "Psych Visit Psychotherapy"]
    ).isInterventionPerformed ( )
  )
    union ( ( [Encounter: "Telephone Visits"]
        union [Encounter: "Virtual Encounter"]
    ).isEncounterPerformed ( ) ) TelehealthEncounter
      where TelehealthEncounter.encounterDiagnosis ( ).code in "Substance Use Disorder"</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="cms137fhirsudtxinitengagement-treatment-initiation-with-non-medication-intervention-dates"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CMS137FHIRSUDTxInitEngagement
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Treatment Initiation With Non Medication Intervention Dates":
  ( "Psychosocial Visit" PsychosocialVisitProcedure
      let treatmentDate: date from start of PsychosocialVisitProcedure.performed.toInterval ( )
      with "First SUD Episode During Measurement Period" FirstSUDEpisode
        such that treatmentDate during Interval[date from start of FirstSUDEpisode.period, date from start of FirstSUDEpisode.period + 14 days )
          and PsychosocialVisitProcedure.id !~ FirstSUDEpisode.id
      return all treatmentDate
  )
    union ( "Psychosocial Visit" PsychosocialVisitEncounter
        let treatmentDate: date from start of PsychosocialVisitEncounter.period
        with "First SUD Episode During Measurement Period" FirstSUDEpisode
          such that treatmentDate during Interval[date from start of FirstSUDEpisode.period, date from start of FirstSUDEpisode.period + 14 days )
            and PsychosocialVisitEncounter.id !~ FirstSUDEpisode.id
        return all treatmentDate
    )</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="cms137fhirsudtxinitengagement-treatment-initiation-with-medication-order-dates"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CMS137FHIRSUDTxInitEngagement
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Treatment Initiation With Medication Order Dates":
  ( ( ( [MedicationRequest: "Substance Use Disorder Short Acting Medication"]
        union [MedicationRequest: "Substance Use Disorder Long Acting Medication"]
    ).isMedicationOrder ( ) ) SUDMedication
      let treatmentDate: date from start of SUDMedication.authoredOn.toInterval ( )
      with "First SUD Episode During Measurement Period" FirstSUDEpisode
        such that treatmentDate during Interval[date from start of FirstSUDEpisode.period, date from start of FirstSUDEpisode.period + 14 days )
      return all treatmentDate
  )
    union ( ( ( [Procedure: "Substance Use Disorder Short Acting Medication Administration"]
          union [Procedure: "Substance Use Disorder Long Acting Medication Administration"]
      ).isProcedurePerformed ( ) ) SUDMedAdministration
        let treatmentDate: date from start of SUDMedAdministration.performed.toInterval ( )
        with "First SUD Episode During Measurement Period" FirstSUDEpisode
          such that treatmentDate during Interval[date from start of FirstSUDEpisode.period, date from start of FirstSUDEpisode.period + 14 days )
        return all treatmentDate
    )</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="cms137fhirsudtxinitengagement-numerator-1"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CMS137FHIRSUDTxInitEngagement
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Numerator 1":
  exists "Treatment Initiation With Non Medication Intervention Dates"
    or exists "Treatment Initiation With Medication Order Dates"</code></pre> 
                  </td> 
               </tr>  
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="cms137fhirsudtxinitengagement-sde-payer"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CMS137FHIRSUDTxInitEngagement
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "SDE Payer":
  SDE."SDE Payer"</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="cms137fhirsudtxinitengagement-has-treatment-engagement-with-long-acting-medication"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CMS137FHIRSUDTxInitEngagement
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Has Treatment Engagement With Long Acting Medication":
  exists ( ( ( ( [MedicationRequest: "Substance Use Disorder Long Acting Medication"] ).isMedicationOrder ( ) ) LongActingMedOrder
        with ( Min("Treatment Initiation With Non Medication Intervention Dates"
            union "Treatment Initiation With Medication Order Dates"
        ) ) InitiationTreatmentDate
          such that date from start of LongActingMedOrder.authoredOn.toInterval ( ) 34 days or less after InitiationTreatmentDate
    )
      union ( ( ( [Procedure: "Substance Use Disorder Long Acting Medication Administration"] ).isProcedurePerformed ( ) ) LongActingTreatment
          with ( Min("Treatment Initiation With Non Medication Intervention Dates"
              union "Treatment Initiation With Medication Order Dates"
          ) ) InitiationTreatmentDate
            such that date from start of LongActingTreatment.performed.toInterval ( ) 34 days or less after InitiationTreatmentDate
      )
  )</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="cms137fhirsudtxinitengagement-has-two-or-more-treatment-engagements-with-short-acting-medication-or-non-medication-intervention"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CMS137FHIRSUDTxInitEngagement
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Has Two or More Treatment Engagements With Short Acting Medication or Non Medication Intervention":
  Count((("Psychosocial Visit"
        union(([Procedure: "Substance Use Disorder Short Acting Medication Administration"]).isProcedurePerformed())) ShortActingTreatment
        with(Min("Treatment Initiation With Non Medication Intervention Dates"
            union "Treatment Initiation With Medication Order Dates"
        )) InitiationTreatmentDate
          such that date from start of ShortActingTreatment.performed.toInterval() 34 days or less after InitiationTreatmentDate
            or date from start of ShortActingTreatment.period 34 days or less after InitiationTreatmentDate
        return all ShortActingTreatment
    )
      union((([MedicationRequest: "Substance Use Disorder Short Acting Medication"]).isMedicationOrder()) ShortActingMedOrder
          with(Min("Treatment Initiation With Non Medication Intervention Dates"
              union "Treatment Initiation With Medication Order Dates"
          )) InitiationTreatmentDate
            such that date from start of ShortActingMedOrder.authoredOn.toInterval() 34 days or less after InitiationTreatmentDate
          return all ShortActingMedOrder
      )
  ) &gt;= 2</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="cms137fhirsudtxinitengagement-numerator-2"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CMS137FHIRSUDTxInitEngagement
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Numerator 2":
  "Has Treatment Engagement With Long Acting Medication"
    or "Has Two or More Treatment Engagements With Short Acting Medication or Non Medication Intervention"</code></pre> 
                  </td> 
               </tr>  
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="cms137fhirsudtxinitengagement-sde-ethnicity"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CMS137FHIRSUDTxInitEngagement
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "SDE Ethnicity":
  SDE."SDE Ethnicity"</code></pre> 
                  </td> 
               </tr>  
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="cms137fhirsudtxinitengagement-denominator-exclusions"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CMS137FHIRSUDTxInitEngagement
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Denominator Exclusions":
  Hospice."Has Hospice Services"</code></pre> 
                  </td> 
               </tr>  
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="cms137fhirsudtxinitengagement-sde-race"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CMS137FHIRSUDTxInitEngagement
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "SDE Race":
  SDE."SDE Race"</code></pre> 
                  </td> 
               </tr>                        
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="cqmcommon-encounterdiagnosis"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CQMCommon
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*  
@description: Returns the Condition resources referenced by the diagnosis element of the Encounter  
*/
define fluent function encounterDiagnosis(Encounter Encounter ):
  Encounter.reasonReference D
    return singleton from (([ConditionEncounterDiagnosis] union [ConditionProblemsHealthConcerns]) C where D.references(C.id))</code></pre> 
                  </td> 
               </tr>                    
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="qicorecommon-tointerval"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> QICoreCommon
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
@description: Normalizes a value that is a choice of timing-valued types to an equivalent interval
@comment: Normalizes a choice type of DateTime, Quanitty, Interval&lt;DateTime&gt;, or Interval&lt;Quantity&gt; types
to an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible
representations for timing-valued elements in QICore, allowing this function to be used across any resource.
The input can be provided as a DateTime, Quantity, Interval&lt;DateTime&gt; or Interval&lt;Quantity&gt;.
The intent of this function is to provide a clear and concise mechanism to treat single
elements that have multiple possible representations as intervals so that logic doesn't have to account
for the variability. More complex calculations (such as medication request period or dispense period
calculation) need specific guidance and consideration. That guidance may make use of this function, but
the focus of this function is on single element calculations where the semantics are unambiguous.
If the input is a DateTime, the result a DateTime Interval beginning and ending on that DateTime.
If the input is a Quantity, the quantity is expected to be a calendar-duration interpreted as an Age,
and the result is a DateTime Interval beginning on the Date the patient turned that age and ending immediately before one year later.
If the input is a DateTime Interval, the result is the input.
If the input is a Quantity Interval, the quantities are expected to be calendar-durations interpreted as an Age, and the result
is a DateTime Interval beginning on the date the patient turned the age given as the start of the quantity interval, and ending
immediately before one year later than the date the patient turned the age given as the end of the quantity interval.
If the input is a Timing, an error will be thrown indicating that Timing calculations are not implemented. Any other input will reslt in a null DateTime Interval
*/
define fluent function toInterval(choice Choice&lt;DateTime, Quantity, Interval&lt;DateTime&gt;, Interval&lt;Quantity&gt;, Timing&gt;):
  case
	  when choice is DateTime then
    	Interval[choice as DateTime, choice as DateTime]
		when choice is Interval&lt;DateTime&gt; then
  		choice as Interval&lt;DateTime&gt;
		when choice is Quantity then
		  Interval[Patient.birthDate + (choice as Quantity),
			  Patient.birthDate + (choice as Quantity) + 1 year)
		when choice is Interval&lt;Quantity&gt; then
		  Interval[Patient.birthDate + (choice.low as Quantity),
			  Patient.birthDate + (choice.high as Quantity) + 1 year)
		when choice is Timing then
      Message(null, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a Timing value is not supported') as Interval&lt;DateTime&gt;
		else
			null as Interval&lt;DateTime&gt;
	end</code></pre> 
                  </td> 
               </tr>  
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="qicorecommon-references"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> QICoreCommon
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
@description: Returns true if the given reference is to the given resourceId
@comment: Returns true if the `resourceId` parameter exactly equals the tail of the given reference.
NOTE: This function assumes resources from the same source server.
*/
define fluent function references(reference Reference, resourceId String):
  resourceId = Last(Split(reference.reference, '/'))</code></pre> 
                  </td> 
               </tr>                 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="fhirhelpers-tostring"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> FHIRHelpers
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToString(value uri): value.value</code></pre> 
                  </td> 
               </tr>  
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="fhirhelpers-tointerval"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> FHIRHelpers
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
@description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period)
value to a CQL DateTime Interval
@comment: If the start value of the given period is unspecified, the starting
boundary of the resulting interval will be open (meaning the start of the interval
is unknown, as opposed to interpreted as the beginning of time).
*/
define function ToInterval(period FHIR.Period):
    if period is null then
        null
    else
        if period."start" is null then
            Interval(period."start".value, period."end".value]
        else
            Interval[period."start".value, period."end".value]</code></pre> 
                  </td> 
               </tr>    
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="fhirhelpers-tocode"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> FHIRHelpers
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
@description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code.
*/
define function ToCode(coding FHIR.Coding):
    if coding is null then
        null
    else
        System.Code {
          code: coding.code.value,
          system: coding.system.value,
          version: coding.version.value,
          display: coding.display.value
        }</code></pre> 
                  </td> 
               </tr>                
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="status-isencounterperformed"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> Status
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">//Encounter, Performed
//General usage unless required otherwise by measure intent (e.g., follow-up encounters)
define fluent function isEncounterPerformed(Enc List&lt;Encounter&gt;):
  Enc E
    where E.status = 'finished'</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="status-verified"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> Status
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">//This library contains functions used to constrain FHIR resource elements for measures authored by NCQA, based on QICore 6.0.0 resources including IG and authoring patterns. The functions may appear similar to some QICoreCommon functions but differ in that they have constraints that are relevant for measures authored by NCQA.

//Condition
//Returns conditions in the given list that either have no verification status or have a verification status of confirmed, unconfirmed, provisional, or differential
define fluent function verified(conditions List&lt;Choice&lt;ConditionProblemsHealthConcerns, ConditionEncounterDiagnosis&gt;&gt;):
  conditions C
    where C.verificationStatus is not null implies
      (C.verificationStatus ~ "confirmed"
        or C.verificationStatus ~ "unconfirmed"
        or C.verificationStatus ~ "provisional"
        or C.verificationStatus ~ "differential"
      )</code></pre> 
                  </td> 
               </tr>  
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="status-isinterventionperformed"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> Status
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">//Intervention, Performed
define fluent function isInterventionPerformed(Proc List&lt;Procedure&gt;):
  Proc P
    where P.status ~ 'completed'</code></pre> 
                  </td> 
               </tr>   
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="status-ismedicationorder"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> Status
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">//Medication, Order
define fluent function isMedicationOrder(MedicationRequest List&lt;MedicationRequest&gt;):
  MedicationRequest M
    where M.status in { 'active', 'completed' }
    and M.intent in {'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order'}</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="status-isprocedureperformed"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> Status
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">//Procedure, Performed
define fluent function isProcedurePerformed(Proc List&lt;Procedure&gt;):
  Proc P
    where P.status ~ 'completed'</code></pre> 
                  </td> 
               </tr>  
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="status-isassessmentperformed"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> Status
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">//Assessment, Performed
define fluent function isAssessmentPerformed(Obs List&lt;ObservationScreeningAssessment&gt;):
  Obs O
    where O.status in { 'final', 'amended', 'corrected' }</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="status-isinterventionorder"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> Status
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">//Intervention, Order
define fluent function isInterventionOrder(ServiceRequest List&lt;ServiceRequest&gt;):
  ServiceRequest S
    where S.status in { 'active', 'completed' }
      and S.intent in {'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order'}</code></pre> 
                  </td> 
               </tr>  
               <tr> 
                  <th colspan="2" scope="row" class="row-header">
                     <a name="terminology"> </a>Terminology
                  </th> 
               </tr>      
               <tr>  
                  <th scope="row" class="row-header">Code System</th> 
                  <td class="content-container"> 
                     <em>Description</em>: Code system SNOMEDCT  
                     <br></br>    
                     <em>Resource</em>: http://snomed.info/sct 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://snomed.info/sct</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Code System</th> 
                  <td class="content-container"> 
                     <em>Description</em>: Code system ConditionVerificationStatusCodes  
                     <br></br>    
                     <em>Resource</em>: http://terminology.hl7.org/CodeSystem/condition-ver-status 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://terminology.hl7.org/CodeSystem/condition-ver-status</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Code System</th> 
                  <td class="content-container"> 
                     <em>Description</em>: Code system LOINC  
                     <br></br>    
                     <em>Resource</em>: http://loinc.org 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://loinc.org</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Office Visit  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Emergency Department Evaluation and Management Visit  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1010 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1010</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Detoxification Visit  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1059 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1059</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Initial Hospital Inpatient Visit  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1004 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1004</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Discharge Services Hospital Inpatient Same Day Discharge  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1006 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1006</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Discharge Services Hospital Inpatient  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1007 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1007</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Telephone Visits  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Virtual Encounter  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1089 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1089</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Substance Use Disorder  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.106.12.1001 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.106.12.1001</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Substance Use Disorder Treatment  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.106.12.1005 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.106.12.1005</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Psych Visit Psychotherapy  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1496 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1496</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Substance Use Disorder Long Acting Medication Administration  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1156 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1156</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Substance Use Disorder Short Acting Medication Administration  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1157 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1157</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Substance Use Disorder Long Acting Medication  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1149 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1149</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Substance Use Disorder Short Acting Medication  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1150 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1150</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Payer Type  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Encounter Inpatient  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Hospice Encounter  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1003 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1003</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Hospice Care Ambulatory  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1584 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1584</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Hospice Diagnosis  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1165 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1165</tt> 
                  </td> 
               </tr>  
               <tr> 
                  <th scope="row" class="row-header">Direct Reference Code</th> 
                  <td class="content-container"> 
                     <em>Display</em>: Male (finding) 
                     <br></br> 
                     <em>Code</em>: 248153007 
                     <br></br> 
                     <em>System</em>: 
                     <tt>http://snomed.info/sct</tt> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Direct Reference Code</th> 
                  <td class="content-container"> 
                     <em>Display</em>: Female (finding) 
                     <br></br> 
                     <em>Code</em>: 248152002 
                     <br></br> 
                     <em>System</em>: 
                     <tt>http://snomed.info/sct</tt> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Direct Reference Code</th> 
                  <td class="content-container"> 
                     <em>Display</em>: confirmed 
                     <br></br> 
                     <em>Code</em>: confirmed 
                     <br></br> 
                     <em>System</em>: 
                     <tt>http://terminology.hl7.org/CodeSystem/condition-ver-status</tt> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Direct Reference Code</th> 
                  <td class="content-container"> 
                     <em>Display</em>: unconfirmed 
                     <br></br> 
                     <em>Code</em>: unconfirmed 
                     <br></br> 
                     <em>System</em>: 
                     <tt>http://terminology.hl7.org/CodeSystem/condition-ver-status</tt> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Direct Reference Code</th> 
                  <td class="content-container"> 
                     <em>Display</em>: provisional 
                     <br></br> 
                     <em>Code</em>: provisional 
                     <br></br> 
                     <em>System</em>: 
                     <tt>http://terminology.hl7.org/CodeSystem/condition-ver-status</tt> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Direct Reference Code</th> 
                  <td class="content-container"> 
                     <em>Display</em>: differential 
                     <br></br> 
                     <em>Code</em>: differential 
                     <br></br> 
                     <em>System</em>: 
                     <tt>http://terminology.hl7.org/CodeSystem/condition-ver-status</tt> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Direct Reference Code</th> 
                  <td class="content-container"> 
                     <em>Display</em>: Discharge to home for hospice care (procedure) 
                     <br></br> 
                     <em>Code</em>: 428361000124107 
                     <br></br> 
                     <em>System</em>: 
                     <tt>http://snomed.info/sct</tt> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Direct Reference Code</th> 
                  <td class="content-container"> 
                     <em>Display</em>: Discharge to healthcare facility for hospice care (procedure) 
                     <br></br> 
                     <em>Code</em>: 428371000124100 
                     <br></br> 
                     <em>System</em>: 
                     <tt>http://snomed.info/sct</tt> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Direct Reference Code</th> 
                  <td class="content-container"> 
                     <em>Display</em>: Hospice care [Minimum Data Set] 
                     <br></br> 
                     <em>Code</em>: 45755-6 
                     <br></br> 
                     <em>System</em>: 
                     <tt>http://loinc.org</tt> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Direct Reference Code</th> 
                  <td class="content-container"> 
                     <em>Display</em>: Yes (qualifier value) 
                     <br></br> 
                     <em>Code</em>: 373066001 
                     <br></br> 
                     <em>System</em>: 
                     <tt>http://snomed.info/sct</tt> 
                  </td> 
               </tr>  
               <tr> 
                  <th colspan="2" scope="row" class="row-header">
                     <a name="dependencies"> </a>Dependencies
                  </th> 
               </tr>  
               <tr> 
                  <th scope="row" class="row-header">Dependency</th> 
                  <td class="content-container"> 
                     <em>Description</em>: QICore model information  
                     <br></br>    
                     <em>Resource</em>: http://hl7.org/fhir/Library/QICore-ModelInfo 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://hl7.org/fhir/Library/QICore-ModelInfo</tt> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Dependency</th> 
                  <td class="content-container"> 
                     <em>Description</em>: Library SDE  
                     <br></br>    
                     <em>Resource</em>: https://madie.cms.gov/Library/SupplementalDataElements|5.1.000 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>https://madie.cms.gov/Library/SupplementalDataElements|5.1.000</tt> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Dependency</th> 
                  <td class="content-container"> 
                     <em>Description</em>: Library FHIRHelpers  
                     <br></br>    
                     <em>Resource</em>: https://madie.cms.gov/Library/FHIRHelpers|4.4.000 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>https://madie.cms.gov/Library/FHIRHelpers|4.4.000</tt> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Dependency</th> 
                  <td class="content-container"> 
                     <em>Description</em>: Library Status  
                     <br></br>    
                     <em>Resource</em>: https://madie.cms.gov/Library/Status|1.15.000 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>https://madie.cms.gov/Library/Status|1.15.000</tt> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Dependency</th> 
                  <td class="content-container"> 
                     <em>Description</em>: Library QICoreCommon  
                     <br></br>    
                     <em>Resource</em>: https://madie.cms.gov/Library/QICoreCommon|4.0.000 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>https://madie.cms.gov/Library/QICoreCommon|4.0.000</tt> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Dependency</th> 
                  <td class="content-container"> 
                     <em>Description</em>: Library CQMCommon  
                     <br></br>    
                     <em>Resource</em>: https://madie.cms.gov/Library/CQMCommon|4.1.000 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>https://madie.cms.gov/Library/CQMCommon|4.1.000</tt> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Dependency</th> 
                  <td class="content-container"> 
                     <em>Description</em>: Library Hospice  
                     <br></br>    
                     <em>Resource</em>: https://madie.cms.gov/Library/Hospice|6.18.000 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>https://madie.cms.gov/Library/Hospice|6.18.000</tt> 
                  </td> 
               </tr>              
               <tr> 
                  <th colspan="2" scope="row" class="row-header">
                     <a name="data-requirements"> </a>Data Requirements
                  </th> 
               </tr>  
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Patient 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient 
                     <br></br>   
                     <em>Must Support Elements</em>: extension, birthDate, birthDate.value, url 
                     <br></br>  
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Encounter 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter 
                     <br></br>   
                     <em>Must Support Elements</em>: type, status, status.value, period 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: type
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Encounter 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter 
                     <br></br>   
                     <em>Must Support Elements</em>: type, status, status.value, period 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: type
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1004 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Encounter 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter 
                     <br></br>   
                     <em>Must Support Elements</em>: type, status, status.value, period 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: type
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1006 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Encounter 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter 
                     <br></br>   
                     <em>Must Support Elements</em>: type, status, status.value, period 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: type
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1007 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Encounter 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter 
                     <br></br>   
                     <em>Must Support Elements</em>: type, status, status.value, period 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: type
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1010 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Encounter 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter 
                     <br></br>   
                     <em>Must Support Elements</em>: type, status, status.value, period 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: type
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1059 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Encounter 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter 
                     <br></br>   
                     <em>Must Support Elements</em>: type, status, status.value, period 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: type
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Encounter 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter 
                     <br></br>   
                     <em>Must Support Elements</em>: type, status, status.value, period 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: type
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1089 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Encounter 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter 
                     <br></br>   
                     <em>Must Support Elements</em>: type, hospitalization, hospitalization.dischargeDisposition, period, status, status.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: type
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Encounter 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter 
                     <br></br>   
                     <em>Must Support Elements</em>: type, period, status, status.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: type
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1003 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Condition 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-encounter-diagnosis 
                     <br></br>   
                     <em>Must Support Elements</em>: code 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.106.12.1001 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Condition 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-encounter-diagnosis 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Condition 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-encounter-diagnosis 
                     <br></br>   
                     <em>Must Support Elements</em>: code 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1165 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Condition 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-problems-health-concerns 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Condition 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-problems-health-concerns 
                     <br></br>   
                     <em>Must Support Elements</em>: code 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1165 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Procedure 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure 
                     <br></br>   
                     <em>Must Support Elements</em>: code, status, status.value, performed 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.106.12.1005 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Procedure 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure 
                     <br></br>   
                     <em>Must Support Elements</em>: code, status, status.value, performed 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1496 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Procedure 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure 
                     <br></br>   
                     <em>Must Support Elements</em>: code, status, status.value, performed 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1156 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Procedure 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure 
                     <br></br>   
                     <em>Must Support Elements</em>: code, status, status.value, performed 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1157 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Procedure 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure 
                     <br></br>   
                     <em>Must Support Elements</em>: code, performed, status, status.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1584 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: MedicationRequest 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest 
                     <br></br>   
                     <em>Must Support Elements</em>: medication, status, status.value, intent, intent.value, authoredOn, authoredOn.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: medication
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1149 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: MedicationRequest 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest 
                     <br></br>   
                     <em>Must Support Elements</em>: medication, status, status.value, intent, intent.value, authoredOn, authoredOn.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: medication
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1150 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: MedicationRequest 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest 
                     <br></br>   
                     <em>Must Support Elements</em>: medication.reference.value, status, status.value, intent, intent.value, authoredOn, authoredOn.value 
                     <br></br>  
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Medication 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication 
                     <br></br>   
                     <em>Must Support Elements</em>: id.value, code 
                     <br></br>  
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Coverage 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage 
                     <br></br>   
                     <em>Must Support Elements</em>: type, period 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: type
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Observation 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation-screening-assessment 
                     <br></br>   
                     <em>Must Support Elements</em>: code, value, effective, status, status.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>   
                     <span class="tab-one">
                        <em>Code(s)</em>:  http://loinc.org#45755-6: 'Hospice care [Minimum Data Set]'  
                     </span> 
                     <br></br>  
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: ServiceRequest 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest 
                     <br></br>   
                     <em>Must Support Elements</em>: code, authoredOn, authoredOn.value, status, status.value, intent, intent.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1584 
                     <br></br>   
                  </td> 
               </tr>  
               <tr> 
                  <th colspan="2" scope="row" class="row-header">Generated using version 0.4.8 of the sample-content-ig Liquid templates</th> 
               </tr> 
            </tbody> 
         </table> 
      </div>
   </text>
   <contained>
      <Library xmlns="http://hl7.org/fhir">
         <id value="effective-data-requirements"></id>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
               <system value="http://snomed.info/sct"></system>
               <code value="248153007"></code>
               <display value="Male (finding)"></display>
            </valueCoding>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
               <system value="http://snomed.info/sct"></system>
               <code value="248152002"></code>
               <display value="Female (finding)"></display>
            </valueCoding>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
               <system value="http://terminology.hl7.org/CodeSystem/condition-ver-status"></system>
               <code value="confirmed"></code>
               <display value="confirmed"></display>
            </valueCoding>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
               <system value="http://terminology.hl7.org/CodeSystem/condition-ver-status"></system>
               <code value="unconfirmed"></code>
               <display value="unconfirmed"></display>
            </valueCoding>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
               <system value="http://terminology.hl7.org/CodeSystem/condition-ver-status"></system>
               <code value="provisional"></code>
               <display value="provisional"></display>
            </valueCoding>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
               <system value="http://terminology.hl7.org/CodeSystem/condition-ver-status"></system>
               <code value="differential"></code>
               <display value="differential"></display>
            </valueCoding>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
               <system value="http://snomed.info/sct"></system>
               <code value="428361000124107"></code>
               <display value="Discharge to home for hospice care (procedure)"></display>
            </valueCoding>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
               <system value="http://snomed.info/sct"></system>
               <code value="428371000124100"></code>
               <display value="Discharge to healthcare facility for hospice care (procedure)"></display>
            </valueCoding>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
               <system value="http://loinc.org"></system>
               <code value="45755-6"></code>
               <display value="Hospice care [Minimum Data Set]"></display>
            </valueCoding>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
               <system value="http://snomed.info/sct"></system>
               <code value="373066001"></code>
               <display value="Yes (qualifier value)"></display>
            </valueCoding>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="SupplementalDataElements"></valueString>
            </extension>
            <extension url="name">
               <valueString value="SDE Sex"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;SDE Sex&quot;:
  case
    when Patient.sex = '248153007' then &quot;Male (finding)&quot;
    when Patient.sex = '248152002' then &quot;Female (finding)&quot;
    else null
  end"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="0"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="CMS137FHIRSUDTxInitEngagement"></valueString>
            </extension>
            <extension url="name">
               <valueString value="SDE Sex"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;SDE Sex&quot;:
  SDE.&quot;SDE Sex&quot;"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="1"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="CMS137FHIRSUDTxInitEngagement"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Stratification 3"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Stratification 3&quot;:
  AgeInYearsAt(date from start of &quot;Measurement Period&quot;) &gt;= 65"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="2"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="CMS137FHIRSUDTxInitEngagement"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Stratification 2"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Stratification 2&quot;:
  AgeInYearsAt(date from start of &quot;Measurement Period&quot;) in Interval[18, 64]"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="3"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="CMS137FHIRSUDTxInitEngagement"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Stratification 1"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Stratification 1&quot;:
  AgeInYearsAt(date from start of &quot;Measurement Period&quot;) in Interval[13, 17]"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="4"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="CMS137FHIRSUDTxInitEngagement"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Qualifying Encounters"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Qualifying Encounters&quot;:
  ( [Encounter: &quot;Office Visit&quot;]
      union [Encounter: &quot;Emergency Department Evaluation and Management Visit&quot;]
      union [Encounter: &quot;Detoxification Visit&quot;]
      union [Encounter: &quot;Initial Hospital Inpatient Visit&quot;]
      union [Encounter: &quot;Discharge Services Hospital Inpatient Same Day Discharge&quot;]
      union [Encounter: &quot;Discharge Services Hospital Inpatient&quot;]
      union [Encounter: &quot;Telephone Visits&quot;]
      union [Encounter: &quot;Virtual Encounter&quot;]
  ).isEncounterPerformed ( )"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="5"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="CMS137FHIRSUDTxInitEngagement"></valueString>
            </extension>
            <extension url="name">
               <valueString value="First SUD Episode During Measurement Period"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;First SUD Episode During Measurement Period&quot;:
  First((&quot;Qualifying Encounters&quot;) ValidEncounters
      with(([ConditionEncounterDiagnosis: &quot;Substance Use Disorder&quot;]).verified()) SUDDiagnosis
        such that ValidEncounters.period during &quot;Measurement Period&quot;
          and SUDDiagnosis.prevalenceInterval() starts during ValidEncounters.period
          and SUDDiagnosis.prevalenceInterval() starts 47 days or more before day of 
          end of &quot;Measurement Period&quot;
      return {
        ValidEncounterDate: date from start of ValidEncounters.period,
        ValidEncounter: ValidEncounters
      }
      sort by ValidEncounterDate
  ).ValidEncounter"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="6"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="CMS137FHIRSUDTxInitEngagement"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Emergency Department or Detoxification Visit"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Emergency Department or Detoxification Visit&quot;:
  ( [Encounter: &quot;Emergency Department Evaluation and Management Visit&quot;]
      union [Encounter: &quot;Detoxification Visit&quot;]
  ).isEncounterPerformed ( )"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="7"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="CMS137FHIRSUDTxInitEngagement"></valueString>
            </extension>
            <extension url="name">
               <valueString value="History of SUD Diagnosis or Treatment"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;History of SUD Diagnosis or Treatment&quot;:
  ( ( ( [Procedure: &quot;Substance Use Disorder Treatment&quot;]
        union [Procedure: &quot;Psych Visit Psychotherapy&quot;]
        union [Procedure: &quot;Substance Use Disorder Long Acting Medication Administration&quot;]
        union [Procedure: &quot;Substance Use Disorder Short Acting Medication Administration&quot;]
    ).isInterventionPerformed ( ) ) Interventions
      with &quot;First SUD Episode During Measurement Period&quot; FirstSUDEpisode
        such that Interventions.performed.toInterval ( ) starts 60 days or less before day of date from start of FirstSUDEpisode.period
  )
    union ( ( ( &quot;Qualifying Encounters&quot;
        except &quot;Emergency Department or Detoxification Visit&quot; ) QualifyingEncounter
        where QualifyingEncounter.encounterDiagnosis ( ).code in &quot;Substance Use Disorder&quot; ) SUDEncounterDx
        with &quot;First SUD Episode During Measurement Period&quot; FirstSUDEpisode
          such that SUDEncounterDx.period starts 60 days or less before day of date from start of FirstSUDEpisode.period
    )
    union ( ( ( [MedicationRequest: &quot;Substance Use Disorder Long Acting Medication&quot;]
          union [MedicationRequest: &quot;Substance Use Disorder Short Acting Medication&quot;]
      ).isMedicationOrder ( ) ) SUDMedication
        with &quot;First SUD Episode During Measurement Period&quot; FirstSUDEpisode
          such that SUDMedication.authoredOn 60 days or less before day of date from start of FirstSUDEpisode.period
    )"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="8"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="CMS137FHIRSUDTxInitEngagement"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Initial Population"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Initial Population&quot;:
  AgeInYearsAt(date from start of &quot;Measurement Period&quot;) &gt;= 13
    and &quot;First SUD Episode During Measurement Period&quot; is not null
    and not exists &quot;History of SUD Diagnosis or Treatment&quot;"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="9"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="CMS137FHIRSUDTxInitEngagement"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Denominator"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Denominator&quot;:
  &quot;Initial Population&quot;"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="10"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="CMS137FHIRSUDTxInitEngagement"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Psychosocial Visit"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Psychosocial Visit&quot;:
  ( ( [Procedure: &quot;Substance Use Disorder Treatment&quot;]
        union [Procedure: &quot;Psych Visit Psychotherapy&quot;]
    ).isInterventionPerformed ( )
  )
    union ( ( [Encounter: &quot;Telephone Visits&quot;]
        union [Encounter: &quot;Virtual Encounter&quot;]
    ).isEncounterPerformed ( ) ) TelehealthEncounter
      where TelehealthEncounter.encounterDiagnosis ( ).code in &quot;Substance Use Disorder&quot;"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="11"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="CMS137FHIRSUDTxInitEngagement"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Treatment Initiation With Non Medication Intervention Dates"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Treatment Initiation With Non Medication Intervention Dates&quot;:
  ( &quot;Psychosocial Visit&quot; PsychosocialVisitProcedure
      let treatmentDate: date from start of PsychosocialVisitProcedure.performed.toInterval ( )
      with &quot;First SUD Episode During Measurement Period&quot; FirstSUDEpisode
        such that treatmentDate during Interval[date from start of FirstSUDEpisode.period, date from start of FirstSUDEpisode.period + 14 days )
          and PsychosocialVisitProcedure.id !~ FirstSUDEpisode.id
      return all treatmentDate
  )
    union ( &quot;Psychosocial Visit&quot; PsychosocialVisitEncounter
        let treatmentDate: date from start of PsychosocialVisitEncounter.period
        with &quot;First SUD Episode During Measurement Period&quot; FirstSUDEpisode
          such that treatmentDate during Interval[date from start of FirstSUDEpisode.period, date from start of FirstSUDEpisode.period + 14 days )
            and PsychosocialVisitEncounter.id !~ FirstSUDEpisode.id
        return all treatmentDate
    )"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="12"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="CMS137FHIRSUDTxInitEngagement"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Treatment Initiation With Medication Order Dates"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Treatment Initiation With Medication Order Dates&quot;:
  ( ( ( [MedicationRequest: &quot;Substance Use Disorder Short Acting Medication&quot;]
        union [MedicationRequest: &quot;Substance Use Disorder Long Acting Medication&quot;]
    ).isMedicationOrder ( ) ) SUDMedication
      let treatmentDate: date from start of SUDMedication.authoredOn.toInterval ( )
      with &quot;First SUD Episode During Measurement Period&quot; FirstSUDEpisode
        such that treatmentDate during Interval[date from start of FirstSUDEpisode.period, date from start of FirstSUDEpisode.period + 14 days )
      return all treatmentDate
  )
    union ( ( ( [Procedure: &quot;Substance Use Disorder Short Acting Medication Administration&quot;]
          union [Procedure: &quot;Substance Use Disorder Long Acting Medication Administration&quot;]
      ).isProcedurePerformed ( ) ) SUDMedAdministration
        let treatmentDate: date from start of SUDMedAdministration.performed.toInterval ( )
        with &quot;First SUD Episode During Measurement Period&quot; FirstSUDEpisode
          such that treatmentDate during Interval[date from start of FirstSUDEpisode.period, date from start of FirstSUDEpisode.period + 14 days )
        return all treatmentDate
    )"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="13"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="CMS137FHIRSUDTxInitEngagement"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Numerator 1"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Numerator 1&quot;:
  exists &quot;Treatment Initiation With Non Medication Intervention Dates&quot;
    or exists &quot;Treatment Initiation With Medication Order Dates&quot;"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="14"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="SupplementalDataElements"></valueString>
            </extension>
            <extension url="name">
               <valueString value="SDE Payer"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;SDE Payer&quot;:
  [Coverage: type in &quot;Payer Type&quot;] Payer
    return {
      code: Payer.type,
      period: Payer.period
    }"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="15"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="CMS137FHIRSUDTxInitEngagement"></valueString>
            </extension>
            <extension url="name">
               <valueString value="SDE Payer"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;SDE Payer&quot;:
  SDE.&quot;SDE Payer&quot;"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="16"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="CMS137FHIRSUDTxInitEngagement"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Has Treatment Engagement With Long Acting Medication"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Has Treatment Engagement With Long Acting Medication&quot;:
  exists ( ( ( ( [MedicationRequest: &quot;Substance Use Disorder Long Acting Medication&quot;] ).isMedicationOrder ( ) ) LongActingMedOrder
        with ( Min(&quot;Treatment Initiation With Non Medication Intervention Dates&quot;
            union &quot;Treatment Initiation With Medication Order Dates&quot;
        ) ) InitiationTreatmentDate
          such that date from start of LongActingMedOrder.authoredOn.toInterval ( ) 34 days or less after InitiationTreatmentDate
    )
      union ( ( ( [Procedure: &quot;Substance Use Disorder Long Acting Medication Administration&quot;] ).isProcedurePerformed ( ) ) LongActingTreatment
          with ( Min(&quot;Treatment Initiation With Non Medication Intervention Dates&quot;
              union &quot;Treatment Initiation With Medication Order Dates&quot;
          ) ) InitiationTreatmentDate
            such that date from start of LongActingTreatment.performed.toInterval ( ) 34 days or less after InitiationTreatmentDate
      )
  )"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="17"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="CMS137FHIRSUDTxInitEngagement"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Has Two or More Treatment Engagements With Short Acting Medication or Non Medication Intervention"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Has Two or More Treatment Engagements With Short Acting Medication or Non Medication Intervention&quot;:
  Count(((&quot;Psychosocial Visit&quot;
        union(([Procedure: &quot;Substance Use Disorder Short Acting Medication Administration&quot;]).isProcedurePerformed())) ShortActingTreatment
        with(Min(&quot;Treatment Initiation With Non Medication Intervention Dates&quot;
            union &quot;Treatment Initiation With Medication Order Dates&quot;
        )) InitiationTreatmentDate
          such that date from start of ShortActingTreatment.performed.toInterval() 34 days or less after InitiationTreatmentDate
            or date from start of ShortActingTreatment.period 34 days or less after InitiationTreatmentDate
        return all ShortActingTreatment
    )
      union((([MedicationRequest: &quot;Substance Use Disorder Short Acting Medication&quot;]).isMedicationOrder()) ShortActingMedOrder
          with(Min(&quot;Treatment Initiation With Non Medication Intervention Dates&quot;
              union &quot;Treatment Initiation With Medication Order Dates&quot;
          )) InitiationTreatmentDate
            such that date from start of ShortActingMedOrder.authoredOn.toInterval() 34 days or less after InitiationTreatmentDate
          return all ShortActingMedOrder
      )
  ) &gt;= 2"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="18"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="CMS137FHIRSUDTxInitEngagement"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Numerator 2"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Numerator 2&quot;:
  &quot;Has Treatment Engagement With Long Acting Medication&quot;
    or &quot;Has Two or More Treatment Engagements With Short Acting Medication or Non Medication Intervention&quot;"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="19"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="SupplementalDataElements"></valueString>
            </extension>
            <extension url="name">
               <valueString value="SDE Ethnicity"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;SDE Ethnicity&quot;:
  Patient.ethnicity E
    return Tuple {
      codes: { E.ombCategory } union E.detailed,
      display: E.text
    }"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="20"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="CMS137FHIRSUDTxInitEngagement"></valueString>
            </extension>
            <extension url="name">
               <valueString value="SDE Ethnicity"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;SDE Ethnicity&quot;:
  SDE.&quot;SDE Ethnicity&quot;"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="21"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="Hospice"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Has Hospice Services"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Has Hospice Services&quot;:
  exists ((([Encounter: &quot;Encounter Inpatient&quot;]).isEncounterPerformed()) InpatientEncounter
      where (InpatientEncounter.hospitalization.dischargeDisposition ~ &quot;Discharge to home for hospice care (procedure)&quot;
          or InpatientEncounter.hospitalization.dischargeDisposition ~ &quot;Discharge to healthcare facility for hospice care (procedure)&quot;
      )
        and InpatientEncounter.period ends during day of &quot;Measurement Period&quot;
  )
    or exists ((([Encounter: &quot;Hospice Encounter&quot;]).isEncounterPerformed()) HospiceEncounter
        where HospiceEncounter.period overlaps day of &quot;Measurement Period&quot;
    )
    or exists ((([ObservationScreeningAssessment: &quot;Hospice care [Minimum Data Set]&quot;]).isAssessmentPerformed()) HospiceAssessment
        where HospiceAssessment.value ~ &quot;Yes (qualifier value)&quot;
          and HospiceAssessment.effective.toInterval() overlaps day of &quot;Measurement Period&quot;
    )
    or exists ((([ServiceRequest: &quot;Hospice Care Ambulatory&quot;]).isInterventionOrder()) HospiceOrder
        where HospiceOrder.authoredOn during day of &quot;Measurement Period&quot;
    )
    or exists ((([Procedure: &quot;Hospice Care Ambulatory&quot;]).isInterventionPerformed()) HospicePerformed
        where HospicePerformed.performed.toInterval() overlaps day of &quot;Measurement Period&quot;
    )
    or exists ((([ConditionProblemsHealthConcerns: &quot;Hospice Diagnosis&quot;]
        union [ConditionEncounterDiagnosis: &quot;Hospice Diagnosis&quot;]).verified()) HospiceCareDiagnosis
        where HospiceCareDiagnosis.prevalenceInterval() overlaps day of &quot;Measurement Period&quot;
    )"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="22"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="CMS137FHIRSUDTxInitEngagement"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Denominator Exclusions"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Denominator Exclusions&quot;:
  Hospice.&quot;Has Hospice Services&quot;"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="23"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="SupplementalDataElements"></valueString>
            </extension>
            <extension url="name">
               <valueString value="SDE Race"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;SDE Race&quot;:
  Patient.race R
    return Tuple {
      codes: R.ombCategory union R.detailed,
      display: R.text
    }"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="24"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="CMS137FHIRSUDTxInitEngagement"></valueString>
            </extension>
            <extension url="name">
               <valueString value="SDE Race"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;SDE Race&quot;:
  SDE.&quot;SDE Race&quot;"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="25"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="FHIRHelpers"></valueString>
            </extension>
            <extension url="name">
               <valueString value="ToString"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define function ToString(value uri): value.value"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="26"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="Status"></valueString>
            </extension>
            <extension url="name">
               <valueString value="isEncounterPerformed"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="//Encounter, Performed
//General usage unless required otherwise by measure intent (e.g., follow-up encounters)
define fluent function isEncounterPerformed(Enc List&lt;Encounter&gt;):
  Enc E
    where E.status = 'finished'"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="27"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="Status"></valueString>
            </extension>
            <extension url="name">
               <valueString value="verified"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="//This library contains functions used to constrain FHIR resource elements for measures authored by NCQA, based on QICore 6.0.0 resources including IG and authoring patterns. The functions may appear similar to some QICoreCommon functions but differ in that they have constraints that are relevant for measures authored by NCQA.

//Condition
//Returns conditions in the given list that either have no verification status or have a verification status of confirmed, unconfirmed, provisional, or differential
define fluent function verified(conditions List&lt;Choice&lt;ConditionProblemsHealthConcerns, ConditionEncounterDiagnosis&gt;&gt;):
  conditions C
    where C.verificationStatus is not null implies
      (C.verificationStatus ~ &quot;confirmed&quot;
        or C.verificationStatus ~ &quot;unconfirmed&quot;
        or C.verificationStatus ~ &quot;provisional&quot;
        or C.verificationStatus ~ &quot;differential&quot;
      )"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="28"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="FHIRHelpers"></valueString>
            </extension>
            <extension url="name">
               <valueString value="ToInterval"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="/*
@description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period)
value to a CQL DateTime Interval
@comment: If the start value of the given period is unspecified, the starting
boundary of the resulting interval will be open (meaning the start of the interval
is unknown, as opposed to interpreted as the beginning of time).
*/
define function ToInterval(period FHIR.Period):
    if period is null then
        null
    else
        if period.&quot;start&quot; is null then
            Interval(period.&quot;start&quot;.value, period.&quot;end&quot;.value]
        else
            Interval[period.&quot;start&quot;.value, period.&quot;end&quot;.value]"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="29"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="Status"></valueString>
            </extension>
            <extension url="name">
               <valueString value="isInterventionPerformed"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="//Intervention, Performed
define fluent function isInterventionPerformed(Proc List&lt;Procedure&gt;):
  Proc P
    where P.status ~ 'completed'"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="30"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="QICoreCommon"></valueString>
            </extension>
            <extension url="name">
               <valueString value="toInterval"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="/*
@description: Normalizes a value that is a choice of timing-valued types to an equivalent interval
@comment: Normalizes a choice type of DateTime, Quanitty, Interval&lt;DateTime&gt;, or Interval&lt;Quantity&gt; types
to an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible
representations for timing-valued elements in QICore, allowing this function to be used across any resource.
The input can be provided as a DateTime, Quantity, Interval&lt;DateTime&gt; or Interval&lt;Quantity&gt;.
The intent of this function is to provide a clear and concise mechanism to treat single
elements that have multiple possible representations as intervals so that logic doesn't have to account
for the variability. More complex calculations (such as medication request period or dispense period
calculation) need specific guidance and consideration. That guidance may make use of this function, but
the focus of this function is on single element calculations where the semantics are unambiguous.
If the input is a DateTime, the result a DateTime Interval beginning and ending on that DateTime.
If the input is a Quantity, the quantity is expected to be a calendar-duration interpreted as an Age,
and the result is a DateTime Interval beginning on the Date the patient turned that age and ending immediately before one year later.
If the input is a DateTime Interval, the result is the input.
If the input is a Quantity Interval, the quantities are expected to be calendar-durations interpreted as an Age, and the result
is a DateTime Interval beginning on the date the patient turned the age given as the start of the quantity interval, and ending
immediately before one year later than the date the patient turned the age given as the end of the quantity interval.
If the input is a Timing, an error will be thrown indicating that Timing calculations are not implemented. Any other input will reslt in a null DateTime Interval
*/
define fluent function toInterval(choice Choice&lt;DateTime, Quantity, Interval&lt;DateTime&gt;, Interval&lt;Quantity&gt;, Timing&gt;):
  case
	  when choice is DateTime then
    	Interval[choice as DateTime, choice as DateTime]
		when choice is Interval&lt;DateTime&gt; then
  		choice as Interval&lt;DateTime&gt;
		when choice is Quantity then
		  Interval[Patient.birthDate + (choice as Quantity),
			  Patient.birthDate + (choice as Quantity) + 1 year)
		when choice is Interval&lt;Quantity&gt; then
		  Interval[Patient.birthDate + (choice.low as Quantity),
			  Patient.birthDate + (choice.high as Quantity) + 1 year)
		when choice is Timing then
      Message(null, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a Timing value is not supported') as Interval&lt;DateTime&gt;
		else
			null as Interval&lt;DateTime&gt;
	end"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="31"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="CQMCommon"></valueString>
            </extension>
            <extension url="name">
               <valueString value="encounterDiagnosis"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="/*  
@description: Returns the Condition resources referenced by the diagnosis element of the Encounter  
*/
define fluent function encounterDiagnosis(Encounter Encounter ):
  Encounter.reasonReference D
    return singleton from (([ConditionEncounterDiagnosis] union [ConditionProblemsHealthConcerns]) C where D.references(C.id))"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="32"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="QICoreCommon"></valueString>
            </extension>
            <extension url="name">
               <valueString value="references"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="/*
@description: Returns true if the given reference is to the given resourceId
@comment: Returns true if the `resourceId` parameter exactly equals the tail of the given reference.
NOTE: This function assumes resources from the same source server.
*/
define fluent function references(reference Reference, resourceId String):
  resourceId = Last(Split(reference.reference, '/'))"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="33"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="Status"></valueString>
            </extension>
            <extension url="name">
               <valueString value="isMedicationOrder"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="//Medication, Order
define fluent function isMedicationOrder(MedicationRequest List&lt;MedicationRequest&gt;):
  MedicationRequest M
    where M.status in { 'active', 'completed' }
    and M.intent in {'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order'}"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="34"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="Status"></valueString>
            </extension>
            <extension url="name">
               <valueString value="isProcedurePerformed"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="//Procedure, Performed
define fluent function isProcedurePerformed(Proc List&lt;Procedure&gt;):
  Proc P
    where P.status ~ 'completed'"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="35"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="FHIRHelpers"></valueString>
            </extension>
            <extension url="name">
               <valueString value="ToCode"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="/*
@description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code.
*/
define function ToCode(coding FHIR.Coding):
    if coding is null then
        null
    else
        System.Code {
          code: coding.code.value,
          system: coding.system.value,
          version: coding.version.value,
          display: coding.display.value
        }"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="36"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="Status"></valueString>
            </extension>
            <extension url="name">
               <valueString value="isAssessmentPerformed"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="//Assessment, Performed
define fluent function isAssessmentPerformed(Obs List&lt;ObservationScreeningAssessment&gt;):
  Obs O
    where O.status in { 'final', 'amended', 'corrected' }"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="37"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="Status"></valueString>
            </extension>
            <extension url="name">
               <valueString value="isInterventionOrder"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="//Intervention, Order
define fluent function isInterventionOrder(ServiceRequest List&lt;ServiceRequest&gt;):
  ServiceRequest S
    where S.status in { 'active', 'completed' }
      and S.intent in {'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order'}"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="38"></valueInteger>
            </extension>
         </extension>
         <name value="EffectiveDataRequirements"></name>
         <status value="active"></status>
         <type>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/library-type"></system>
               <code value="module-definition"></code>
            </coding>
         </type>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="QICore model information"></display>
            <resource value="http://hl7.org/fhir/Library/QICore-ModelInfo"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Library SDE"></display>
            <resource value="https://madie.cms.gov/Library/SupplementalDataElements|5.1.000"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Library FHIRHelpers"></display>
            <resource value="https://madie.cms.gov/Library/FHIRHelpers|4.4.000"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Library Status"></display>
            <resource value="https://madie.cms.gov/Library/Status|1.15.000"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Library QICoreCommon"></display>
            <resource value="https://madie.cms.gov/Library/QICoreCommon|4.0.000"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Library CQMCommon"></display>
            <resource value="https://madie.cms.gov/Library/CQMCommon|4.1.000"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Library Hospice"></display>
            <resource value="https://madie.cms.gov/Library/Hospice|6.18.000"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Code system SNOMEDCT"></display>
            <resource value="http://snomed.info/sct"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Code system ConditionVerificationStatusCodes"></display>
            <resource value="http://terminology.hl7.org/CodeSystem/condition-ver-status"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Code system LOINC"></display>
            <resource value="http://loinc.org"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Office Visit"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Emergency Department Evaluation and Management Visit"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1010"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Detoxification Visit"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1059"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Initial Hospital Inpatient Visit"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1004"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Discharge Services Hospital Inpatient Same Day Discharge"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1006"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Discharge Services Hospital Inpatient"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1007"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Telephone Visits"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Virtual Encounter"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1089"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Substance Use Disorder"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.106.12.1001"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Substance Use Disorder Treatment"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.106.12.1005"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Psych Visit Psychotherapy"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1496"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Substance Use Disorder Long Acting Medication Administration"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1156"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Substance Use Disorder Short Acting Medication Administration"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1157"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Substance Use Disorder Long Acting Medication"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1149"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Substance Use Disorder Short Acting Medication"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1150"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Payer Type"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Encounter Inpatient"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Hospice Encounter"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1003"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Hospice Care Ambulatory"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1584"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Hospice Diagnosis"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1165"></resource>
         </relatedArtifact>
         <parameter>
            <name value="Measurement Period"></name>
            <use value="in"></use>
            <min value="0"></min>
            <max value="1"></max>
            <type value="Period"></type>
         </parameter>
         <parameter>
            <name value="Denominator"></name>
            <use value="out"></use>
            <min value="0"></min>
            <max value="1"></max>
            <type value="boolean"></type>
         </parameter>
         <parameter>
            <name value="Numerator 1"></name>
            <use value="out"></use>
            <min value="0"></min>
            <max value="1"></max>
            <type value="boolean"></type>
         </parameter>
         <parameter>
            <name value="Numerator 2"></name>
            <use value="out"></use>
            <min value="0"></min>
            <max value="1"></max>
            <type value="boolean"></type>
         </parameter>
         <parameter>
            <name value="Initial Population"></name>
            <use value="out"></use>
            <min value="0"></min>
            <max value="1"></max>
            <type value="boolean"></type>
         </parameter>
         <parameter>
            <name value="Denominator Exclusions"></name>
            <use value="out"></use>
            <min value="0"></min>
            <max value="1"></max>
            <type value="boolean"></type>
         </parameter>
         <parameter>
            <name value="SDE Sex"></name>
            <use value="out"></use>
            <min value="0"></min>
            <max value="1"></max>
            <type value="Coding"></type>
         </parameter>
         <parameter>
            <name value="SDE Payer"></name>
            <use value="out"></use>
            <min value="0"></min>
            <max value="*"></max>
            <type value="Resource"></type>
         </parameter>
         <parameter>
            <name value="SDE Ethnicity"></name>
            <use value="out"></use>
            <min value="0"></min>
            <max value="1"></max>
            <type value="Resource"></type>
         </parameter>
         <parameter>
            <name value="SDE Race"></name>
            <use value="out"></use>
            <min value="0"></min>
            <max value="1"></max>
            <type value="Resource"></type>
         </parameter>
         <parameter>
            <name value="Stratification 3"></name>
            <use value="out"></use>
            <min value="0"></min>
            <max value="1"></max>
            <type value="boolean"></type>
         </parameter>
         <parameter>
            <name value="Stratification 2"></name>
            <use value="out"></use>
            <min value="0"></min>
            <max value="1"></max>
            <type value="boolean"></type>
         </parameter>
         <parameter>
            <name value="Stratification 1"></name>
            <use value="out"></use>
            <min value="0"></min>
            <max value="1"></max>
            <type value="boolean"></type>
         </parameter>
         <dataRequirement>
            <type value="Patient"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"></profile>
            <mustSupport value="extension"></mustSupport>
            <mustSupport value="birthDate"></mustSupport>
            <mustSupport value="birthDate.value"></mustSupport>
            <mustSupport value="url"></mustSupport>
         </dataRequirement>
         <dataRequirement>
            <type value="Encounter"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"></profile>
            <mustSupport value="type"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <mustSupport value="period"></mustSupport>
            <codeFilter>
               <path value="type"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Encounter"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"></profile>
            <mustSupport value="type"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <mustSupport value="period"></mustSupport>
            <codeFilter>
               <path value="type"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1004"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Encounter"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"></profile>
            <mustSupport value="type"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <mustSupport value="period"></mustSupport>
            <codeFilter>
               <path value="type"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1006"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Encounter"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"></profile>
            <mustSupport value="type"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <mustSupport value="period"></mustSupport>
            <codeFilter>
               <path value="type"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1007"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Encounter"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"></profile>
            <mustSupport value="type"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <mustSupport value="period"></mustSupport>
            <codeFilter>
               <path value="type"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1010"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Encounter"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"></profile>
            <mustSupport value="type"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <mustSupport value="period"></mustSupport>
            <codeFilter>
               <path value="type"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1059"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Encounter"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"></profile>
            <mustSupport value="type"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <mustSupport value="period"></mustSupport>
            <codeFilter>
               <path value="type"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Encounter"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"></profile>
            <mustSupport value="type"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <mustSupport value="period"></mustSupport>
            <codeFilter>
               <path value="type"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1089"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Encounter"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"></profile>
            <mustSupport value="type"></mustSupport>
            <mustSupport value="hospitalization"></mustSupport>
            <mustSupport value="hospitalization.dischargeDisposition"></mustSupport>
            <mustSupport value="period"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="type"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Encounter"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"></profile>
            <mustSupport value="type"></mustSupport>
            <mustSupport value="period"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="type"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1003"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Condition"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-encounter-diagnosis"></profile>
            <mustSupport value="code"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.106.12.1001"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Condition"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-encounter-diagnosis"></profile>
         </dataRequirement>
         <dataRequirement>
            <type value="Condition"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-encounter-diagnosis"></profile>
            <mustSupport value="code"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1165"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Condition"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-problems-health-concerns"></profile>
         </dataRequirement>
         <dataRequirement>
            <type value="Condition"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-problems-health-concerns"></profile>
            <mustSupport value="code"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1165"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Procedure"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <mustSupport value="performed"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.106.12.1005"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Procedure"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <mustSupport value="performed"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1496"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Procedure"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <mustSupport value="performed"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1156"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Procedure"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <mustSupport value="performed"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1157"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Procedure"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="performed"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1584"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="MedicationRequest"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"></profile>
            <mustSupport value="medication"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <mustSupport value="intent"></mustSupport>
            <mustSupport value="intent.value"></mustSupport>
            <mustSupport value="authoredOn"></mustSupport>
            <mustSupport value="authoredOn.value"></mustSupport>
            <codeFilter>
               <path value="medication"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1149"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="MedicationRequest"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"></profile>
            <mustSupport value="medication"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <mustSupport value="intent"></mustSupport>
            <mustSupport value="intent.value"></mustSupport>
            <mustSupport value="authoredOn"></mustSupport>
            <mustSupport value="authoredOn.value"></mustSupport>
            <codeFilter>
               <path value="medication"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1150"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="MedicationRequest"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"></profile>
            <mustSupport value="medication.reference.value"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <mustSupport value="intent"></mustSupport>
            <mustSupport value="intent.value"></mustSupport>
            <mustSupport value="authoredOn"></mustSupport>
            <mustSupport value="authoredOn.value"></mustSupport>
         </dataRequirement>
         <dataRequirement>
            <type value="Medication"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication"></profile>
            <mustSupport value="id.value"></mustSupport>
            <mustSupport value="code"></mustSupport>
         </dataRequirement>
         <dataRequirement>
            <type value="Coverage"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage"></profile>
            <mustSupport value="type"></mustSupport>
            <mustSupport value="period"></mustSupport>
            <codeFilter>
               <path value="type"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Observation"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation-screening-assessment"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="value"></mustSupport>
            <mustSupport value="effective"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <code>
                  <system value="http://loinc.org"></system>
                  <code value="45755-6"></code>
                  <display value="Hospice care [Minimum Data Set]"></display>
               </code>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="ServiceRequest"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="authoredOn"></mustSupport>
            <mustSupport value="authoredOn.value"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <mustSupport value="intent"></mustSupport>
            <mustSupport value="intent.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1584"></valueSet>
            </codeFilter>
         </dataRequirement>
      </Library>
   </contained>
   <extension id="supplementalDataGuidance" url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-supplementalDataGuidance">
      <extension url="guidance">
         <valueString value="For every patient evaluated by this measure also identify payer, race, ethnicity and sex"></valueString>
      </extension>
      <extension url="usage">
         <valueCodeableConcept>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/measure-data-usage"></system>
               <code value="supplemental-data"></code>
               <display value="Supplemental Data"></display>
            </coding>
            <text value="Supplemental Data Guidance"></text>
         </valueCodeableConcept>
      </extension>
   </extension>
   <extension url="http://hl7.org/fhir/StructureDefinition/cqf-definitionTerm">
      <extension url="term">
         <valueString value="Initiation of Treatment"></valueString>
      </extension>
      <extension url="definition">
         <valueMarkdown value="The initiation of treatment is the first SUD treatment within 14 days of a new SUD episode. Treatment includes inpatient SUD admissions, outpatient visits, intensive outpatient encounters or partial hospitalizations, and medications for the treatment of SUD."></valueMarkdown>
      </extension>
   </extension>
   <extension url="http://hl7.org/fhir/StructureDefinition/cqf-definitionTerm">
      <extension url="term">
         <valueString value="New SUD Episode"></valueString>
      </extension>
      <extension url="definition">
         <valueMarkdown value="The new SUD episode is the first encounter during the Intake Period with a diagnosis of SUD with no encounter or medication treatment for a diagnosis of SUD in the 60 days prior."></valueMarkdown>
      </extension>
   </extension>
   <extension url="http://hl7.org/fhir/StructureDefinition/cqf-definitionTerm">
      <extension url="term">
         <valueString value="The Intake Period"></valueString>
      </extension>
      <extension url="definition">
         <valueMarkdown value="January 1-November 14 of the measurement year. The Intake Period is used to capture new SUD episodes. The November 14 cut-off date ensures that all services can occur before the measurement period ends."></valueMarkdown>
      </extension>
   </extension>
   <extension url="http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements">
      <valueReference>
         <reference value="#effective-data-requirements"></reference>
      </valueReference>
   </extension>
   <url value="https://madie.cms.gov/Measure/CMS137FHIRSUDTxInitEngagement"></url>
   <identifier>
      <use value="usual"></use>
      <type>
         <coding>
            <system value="http://terminology.hl7.org/CodeSystem/artifact-identifier-type"></system>
            <code value="short-name"></code>
            <display value="Short Name"></display>
         </coding>
      </type>
      <system value="https://madie.cms.gov/measure/shortName"></system>
      <value value="CMS137FHIR"></value>
   </identifier>
   <identifier>
      <use value="official"></use>
      <type>
         <coding>
            <system value="http://terminology.hl7.org/CodeSystem/artifact-identifier-type"></system>
            <code value="version-independent"></code>
            <display value="Version Independent"></display>
         </coding>
      </type>
      <system value="urn:ietf:rfc:3986"></system>
      <value value="urn:uuid:7738a412-7fff-4276-a140-8ee4c08503a2"></value>
   </identifier>
   <identifier>
      <use value="official"></use>
      <type>
         <coding>
            <system value="http://terminology.hl7.org/CodeSystem/artifact-identifier-type"></system>
            <code value="version-specific"></code>
            <display value="Version Specific"></display>
         </coding>
      </type>
      <system value="urn:ietf:rfc:3986"></system>
      <value value="urn:uuid:e156e1a3-4a76-4490-b3be-96a0d90f9b32"></value>
   </identifier>
   <identifier>
      <use value="official"></use>
      <type>
         <coding>
            <system value="http://terminology.hl7.org/CodeSystem/artifact-identifier-type"></system>
            <code value="publisher"></code>
            <display value="Publisher"></display>
         </coding>
      </type>
      <system value="https://madie.cms.gov/measure/cmsId"></system>
      <value value="137FHIR"></value>
      <assigner>
         <display value="CMS"></display>
      </assigner>
   </identifier>
   <version value="1.0.000"></version>
   <name value="CMS137FHIRSUDTxInitEngagement"></name>
   <title value="Initiation and Engagement of Substance Use Disorder TreatmentFHIR"></title>
   <status value="active"></status>
   <experimental value="false"></experimental>
   <date value="2025-07-25T20:59:17+00:00"></date>
   <publisher value="National Committee for Quality Assurance"></publisher>
   <contact>
      <telecom>
         <system value="url"></system>
         <value value="https://www.ncqa.org/"></value>
      </telecom>
   </contact>
   <description value="Percentage of patients 13 years of age and older with a new substance use disorder (SUD) episode who received the following (Two rates are reported): a. Percentage of patients who initiated treatment, including either an intervention or medication for the treatment of SUD, within 14 days of the new SUD episode. b. Percentage of patients who engaged in ongoing treatment, including two additional interventions or medication treatment events for SUD, or one long-acting medication event for the treatment of SUD, within 34 days of the initiation."></description>
   <usage value="This eCQM is a patient-based measure. This FHIR-based measure has been derived from the QDM-based measure: CMS137v14. Please refer to the HL7 QI-Core Implementation Guide (https://hl7.org/fhir/us/qicore/STU6/) for more information on QI-Core and mapping recommendations from QDM to QI-Core STU 6. (https://hl7.org/fhir/us/qicore/STU6/qdm-to-qicore.html)."></usage>
   <copyright value="This Physician Performance Measure (Measure) and related data specifications are owned and were developed by the National Committee for Quality Assurance (NCQA). NCQA is not responsible for any use of the Measure. NCQA makes no representations, warranties or endorsements about the quality of any product, test or protocol identified as numerator compliant or otherwise identified as meeting the requirements of the measure or specification. NCQA makes no representations, warranties, or endorsement about the quality of any organization or physician that uses or reports performance measures and NCQA has no liability to anyone who relies on such measures or specifications. NCQA holds a copyright in the Measure. The Measure may be used for internal, noncommercial purposes (e.g., use by healthcare providers in connection with their practices) without obtaining approval from NCQA. All other uses, including a commercial use (including but not limited to vendors using or embedding the measures and specifications into any product or service to calculate measure results for customers for any purpose), must be approved by NCQA and are subject to a license at the discretion of NCQA. (C) 2012-2025 National Committee for Quality Assurance. All Rights Reserved. Limited proprietary coding is contained in the Measure specifications for user convenience. Users of proprietary code sets should obtain all necessary licenses from the owners of the code sets. NCQA disclaims all liability for use or accuracy of any third-party codes contained in the specifications. CPT(R) codes, descriptions and other data are copyright 2025. American Medical Association. All rights reserved. CPT is a trademark of the American Medical Association. Fee schedules, relative value units, conversion factors and/or related components are not assigned by the AMA, are not part of CPT, and the AMA is not recommending their use. The AMA does not directly or indirectly practice medicine or dispense medical services. The AMA assumes no liability for data contained or not contained herein. Applicable FARS/DFARS restrictions apply to government use. Some measure specifications contain coding from LOINC(R) (https://loinc.org). The LOINC table, LOINC codes, LOINC panels and form file, LOINC linguistic variants file, LOINC/RSNA Radiology Playbook, and LOINC/IEEE Medical Device Code Mapping Table are copyright 2004-2025 Regenstrief Institute, Inc. and the Logical Observation Identifiers Names and Codes (LOINC) Committee, and are available at no cost under the license at https://loinc.org/kb/license/. This material contains SNOMED Clinical Terms(R) (SNOMED CT[R]) copyright 2004-2024 International Health Terminology Standards Development Organisation. ICD-10 copyright 2025 World Health Organization. All Rights Reserved. Some measures use RxNorm, a standardized nomenclature and coding for clinical drugs and drug delivery devices, which is made publicly available courtesy of the U.S. National Library of Medicine (NLM), National Institutes of Health, Department of Health and Human Services. NLM is not responsible for the measures and does not endorse or recommend this or any other product. “HL7” is the registered trademark of Health Level Seven International."></copyright>
   <effectivePeriod>
      <start value="2026-01-01"></start>
      <end value="2026-12-31"></end>
   </effectivePeriod>
   <author>
      <name value="National Committee for Quality Assurance"></name>
      <telecom>
         <system value="url"></system>
         <value value="https://www.ncqa.org/"></value>
      </telecom>
   </author>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="American Psychiatric Association, Kleber, H. D., &amp;amp; McIntyre, J. S. (2006). Practice Guideline for Treatment of Patients with Substance Use Disorders (pp. 1-276). Arlington, VA: American Psychiatric Association."></citation>
   </relatedArtifact>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="American Society of Addiction Medicine (ASAM). (2020). The ASAM National Practice Guideline for the Treatment of Opioid Use Disorder: 2020 Focused Update."></citation>
   </relatedArtifact>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="Department of Veteran Affairs, Department of Defense. (2015). VA/DoD Clinical Practice Guideline for the Management of Substance Use Disorders. Washington DC: Department of Veterans Affairs, Department of Defense."></citation>
   </relatedArtifact>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="Kampman, K., Jarvis, M. (2015). The ASAM National Practice Guideline for the Use of Medications in the Treatment of Addiction Involving Opioid Use. Journal of Addiction Medicine; 9(5), 358–367. https://doi.org/10.1097/ADM.0000000000000166"></citation>
   </relatedArtifact>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="Michigan Quality Improvement Consortium. (2021). Screening, Diagnosis and Referral for Substance Use Disorders. Southfield, (MI): Michigan Quality Improvement Consortium. Retrieved from https://www.improve.health/wp-content/uploads/2023/04/mqicscreeningdiagnosisandreferralforsubstanceusedisordersFINAL-1.pdf"></citation>
   </relatedArtifact>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="Reus, V. et al. (2018). Practice Guideline for the Pharmacological Treatment of Patients with Alcohol Use Disorder. American Journal of Psychiatry, 175(1), 86-90. https://doi.org/10.1176/appi.ajp.2017.1750101"></citation>
   </relatedArtifact>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="Substance Abuse and Mental Health Services Administration (SAMHSA). (2022). Key substance use and mental health indicators in the United States: Results from the 2021 National Survey on Drug Use and Health (HHS Publication No. PEP22-07-01-005, NSDUH Series H-57). Center for Behavioral Health Statistics and Quality, Substance Abuse and Mental Health Services Administration. https://www.samhsa.gov/data/report/2021-nsduh-annual-national-report"></citation>
   </relatedArtifact>
   <library value="https://madie.cms.gov/Library/CMS137FHIRSUDTxInitEngagement"></library>
   <disclaimer value="The performance Measure is not a clinical guideline and does not establish a standard of medical care, and has not been tested for all potential applications. THE MEASURE AND SPECIFICATIONS ARE PROVIDED &quot;AS IS&quot; WITHOUT WARRANTY OF ANY KIND. Due to technical limitations, registered trademarks are indicated by (R) or [R] and unregistered trademarks are indicated by (TM) or [TM]."></disclaimer>
   <rationale value="There are more deaths, illnesses and disabilities from substance abuse than from any other preventable health condition. In 2021, 46.3 million individuals in the U.S. age 12 or older (16.5 percent of the population) met the diagnosis criteria for having an SUD within the past year (Substance Abuse and Mental Health Services Administration [SAMHSA], 2022). Despite the high prevalence of SUD in the U.S., 94 percent of individuals aged 12 or older with an SUD did not receive any treatment (SAMHSA, 2022)."></rationale>
   <clinicalRecommendationStatement value="American Society of Addiction Medicine (2020) - All Food and Drug Administration approved medications for the treatment of opioid use disorder should be available to all patients. Clinicians should consider the patient’s preferences, past treatment history, current state of illness, and treatment setting when deciding between the use of methadone, buprenorphine, and naltrexone. - There is no recommended time limit for pharmacological treatment - Patients’ psychosocial needs should be assessed, and patients should be offered or referred to psychosocial treatment based on their individual needs. However, a patient’s decision to decline psychosocial treatment or the absence of available psychosocial treatment should not preclude or delay pharmacotherapy, with appropriate medication management. Motivational interviewing or enhancement can be used to encourage patients to engage in psychosocial treatment services appropriate for addressing individual needs. American Psychiatric Association (2018) - Patients with alcohol use disorder should have a documented comprehensive and person-centered treatment plan that includes evidence-based nonpharmacological and pharmacological treatments. [1C] - Naltrexone or acamprosate should be offered to patients with moderate to severe alcohol use disorder who have a goal of reducing alcohol consumption or achieving abstinence, prefer pharmacotherapy or have not responded to nonpharmacological treatments alone, and have no contraindications to the use of these medications. [1B] - Disulfiram should be offered to patients with moderate to severe alcohol use disorder who have a goal of achieving abstinence, prefer disulfiram or are intolerant to or have not responded to naltrexone and acamprosate, are capable of understanding the risks of alcohol consumption while taking disulfiram, and have no contraindications to the use of this medication. [2C] - Topiramate or gabapentin should be offered to patients with moderate to severe alcohol use disorder who have a goal of reducing alcohol consumption or achieving abstinence, prefer topiramate or gabapentin or are intolerant to or have not responded to naltrexone and acamprosate, and have no contraindications to the use of these medications. [2C] American Psychiatric Association (2006) - Because many substance use disorders are chronic, patients usually require long-term treatment, although the intensity and specific components of treatment may vary over time [I rating]. - It is important to intensify the monitoring for substance use during periods when the patient is at a high risk of relapsing, including during the early stages of treatment, times of transition to less intensive levels of care, and the first year after active treatment has ceased [I rating]. - Outpatient treatment of substance use disorders is appropriate for patients whose clinical condition or environmental circumstances do not require a more intensive level of care [I rating]. As in other treatment settings, a comprehensive approach is optimal, using, where indicated, a variety of psychotherapeutic and pharmacological interventions along with behavioral monitoring [I rating]. - Disulfiram is also recommended for patients with alcohol dependence [II rating]. - Naltrexone, injectable naltrexone, acamprosate, a y-aminobutyric acid (GABA) are recommended for patients with alcohol dependence [I rating]. Disulfiram is also recommended for patients with alcohol dependence [II rating]. - Methadone and buprenorphine are recommended for patients with opioid dependence [I rating]. - Naltrexone is an alternative strategy [I rating]. American Society of Addiction Medicine (2015) - Methadone and buprenorphine are recommended for opioid use disorder treatment and withdrawal management. - Naltrexone (oral; extended-release injectable) is recommended for relapse prevention. Michigan Quality Improvement Consortium (2021) - Patients with substance use disorder or risky substance use: Patient Education and Brief Intervention by a Primary Care Physician (PCP) or Trained Staff (e.g., Registered Nurse [RN], Master of Social Work [MSW]) - If diagnosed with substance use disorder or risky substance use, initiate an intervention within 14 days. - Frequent follow-up is helpful to support behavior change; preferably 2 visits within 30 days. - Refer to a substance abuse health specialist, an addiction physician specialist, or a physician experienced in pharmacologic management of addiction. Department of Veterans Affairs/Department of Defense (2015) - Offer referral to specialty SUD care for addiction treatment based on willingness to engage. [B] - For patients with moderate-severe alcohol use disorder, we recommend: Acamprosate, Disulfiram, Naltrexone- oral or extended release, or Topiramate. [A] - Medications should be offered in combined with addiction-focused counseling, offering one or more of the following interventions considering patient preference and provider training/competence: Behavioral Couples Therapy for alcohol use disorder, Cognitive Behavioral Therapy for substance use disorders, Community Reinforcement Approach, Motivational Enhancement Therapy, 12-Step Facilitation. [A] - For patients with opioid use disorder we recommend buprenorphine/naloxone or methadone in an Opioid Treatment Program. For patients for whom agonist treatment is contraindicated, unacceptable, unavailable, or discontinued, we recommend extended-release injectable naltrexone. [A] - For patients initiated in an intensive phase of outpatient or residential treatment, recommend ongoing systematic relapse prevention efforts or recovery support, individualized on the basis of treatment response. [A]"></clinicalRecommendationStatement>
   <group id="Group_1">
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoring">
         <valueCodeableConcept>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/measure-scoring"></system>
               <code value="proportion"></code>
               <display value="Proportion"></display>
            </coding>
         </valueCodeableConcept>
      </extension>
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis">
         <valueCode value="boolean"></valueCode>
      </extension>
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-type">
         <valueCodeableConcept>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/measure-type"></system>
               <code value="process"></code>
               <display value="Process"></display>
            </coding>
         </valueCodeableConcept>
      </extension>
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-rateAggregation">
         <valueCode value="None"></valueCode>
      </extension>
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-improvementNotation">
         <valueCodeableConcept>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/measure-improvement-notation"></system>
               <code value="increase"></code>
               <display value="Increased score indicates improvement"></display>
            </coding>
         </valueCodeableConcept>
      </extension>
      <population id="InitialPopulation_1">
         <code>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
               <code value="initial-population"></code>
               <display value="Initial Population"></display>
            </coding>
         </code>
         <description value="Patients 13 years of age and older as of the start of the measurement period who were diagnosed with a new SUD episode during a visit between January 1 and November 14 of the measurement period"></description>
         <criteria>
            <language value="text/cql-identifier"></language>
            <expression value="Initial Population"></expression>
         </criteria>
      </population>
      <population id="Denominator_1">
         <code>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
               <code value="denominator"></code>
               <display value="Denominator"></display>
            </coding>
         </code>
         <description value="Equals Initial Population"></description>
         <criteria>
            <language value="text/cql-identifier"></language>
            <expression value="Denominator"></expression>
         </criteria>
      </population>
      <population id="DenominatorExclusion_1">
         <code>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
               <code value="denominator-exclusion"></code>
               <display value="Denominator Exclusion"></display>
            </coding>
         </code>
         <description value="Exclude patients who are in hospice care for any part of the measurement period"></description>
         <criteria>
            <language value="text/cql-identifier"></language>
            <expression value="Denominator Exclusions"></expression>
         </criteria>
      </population>
      <population id="Numerator_1">
         <code>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
               <code value="numerator"></code>
               <display value="Numerator"></display>
            </coding>
         </code>
         <description value="Initiation of treatment includes either an intervention or medication for the treatment of SUD within 14 days of the new SUD episode."></description>
         <criteria>
            <language value="text/cql-identifier"></language>
            <expression value="Numerator 1"></expression>
         </criteria>
      </population>
      <stratifier id="Stratification_1_1">
         <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-appliesTo">
            <valueCodeableConcept>
               <coding>
                  <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
                  <code value="initial-population"></code>
                  <display value="Initial Population"></display>
               </coding>
            </valueCodeableConcept>
         </extension>
         <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-appliesTo">
            <valueCodeableConcept>
               <coding>
                  <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
                  <code value="denominator"></code>
                  <display value="Denominator"></display>
               </coding>
            </valueCodeableConcept>
         </extension>
         <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-appliesTo">
            <valueCodeableConcept>
               <coding>
                  <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
                  <code value="denominator-exclusion"></code>
                  <display value="Denominator Exclusion"></display>
               </coding>
            </valueCodeableConcept>
         </extension>
         <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-appliesTo">
            <valueCodeableConcept>
               <coding>
                  <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
                  <code value="numerator"></code>
                  <display value="Numerator"></display>
               </coding>
            </valueCodeableConcept>
         </extension>
         <description value="Report a total score, and each of the following strata: Stratum 1: Patients age 13-17 at the start of the measurement period"></description>
         <criteria>
            <language value="text/cql-identifier"></language>
            <expression value="Stratification 1"></expression>
         </criteria>
      </stratifier>
      <stratifier id="Stratification_1_2">
         <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-appliesTo">
            <valueCodeableConcept>
               <coding>
                  <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
                  <code value="initial-population"></code>
                  <display value="Initial Population"></display>
               </coding>
            </valueCodeableConcept>
         </extension>
         <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-appliesTo">
            <valueCodeableConcept>
               <coding>
                  <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
                  <code value="denominator"></code>
                  <display value="Denominator"></display>
               </coding>
            </valueCodeableConcept>
         </extension>
         <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-appliesTo">
            <valueCodeableConcept>
               <coding>
                  <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
                  <code value="denominator-exclusion"></code>
                  <display value="Denominator Exclusion"></display>
               </coding>
            </valueCodeableConcept>
         </extension>
         <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-appliesTo">
            <valueCodeableConcept>
               <coding>
                  <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
                  <code value="numerator"></code>
                  <display value="Numerator"></display>
               </coding>
            </valueCodeableConcept>
         </extension>
         <description value="Stratum 2: Patients age 18-64 at the start of the measurement period"></description>
         <criteria>
            <language value="text/cql-identifier"></language>
            <expression value="Stratification 2"></expression>
         </criteria>
      </stratifier>
      <stratifier id="Stratification_1_3">
         <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-appliesTo">
            <valueCodeableConcept>
               <coding>
                  <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
                  <code value="initial-population"></code>
                  <display value="Initial Population"></display>
               </coding>
            </valueCodeableConcept>
         </extension>
         <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-appliesTo">
            <valueCodeableConcept>
               <coding>
                  <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
                  <code value="denominator"></code>
                  <display value="Denominator"></display>
               </coding>
            </valueCodeableConcept>
         </extension>
         <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-appliesTo">
            <valueCodeableConcept>
               <coding>
                  <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
                  <code value="denominator-exclusion"></code>
                  <display value="Denominator Exclusion"></display>
               </coding>
            </valueCodeableConcept>
         </extension>
         <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-appliesTo">
            <valueCodeableConcept>
               <coding>
                  <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
                  <code value="numerator"></code>
                  <display value="Numerator"></display>
               </coding>
            </valueCodeableConcept>
         </extension>
         <description value="Stratum 3: Patients age 65 and older at the start of the measurement period"></description>
         <criteria>
            <language value="text/cql-identifier"></language>
            <expression value="Stratification 3"></expression>
         </criteria>
      </stratifier>
   </group>
   <group id="Group_2">
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoring">
         <valueCodeableConcept>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/measure-scoring"></system>
               <code value="proportion"></code>
               <display value="Proportion"></display>
            </coding>
         </valueCodeableConcept>
      </extension>
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis">
         <valueCode value="boolean"></valueCode>
      </extension>
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-type">
         <valueCodeableConcept>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/measure-type"></system>
               <code value="process"></code>
               <display value="Process"></display>
            </coding>
         </valueCodeableConcept>
      </extension>
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-rateAggregation">
         <valueCode value="None"></valueCode>
      </extension>
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-improvementNotation">
         <valueCodeableConcept>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/measure-improvement-notation"></system>
               <code value="increase"></code>
               <display value="Increased score indicates improvement"></display>
            </coding>
         </valueCodeableConcept>
      </extension>
      <population id="InitialPopulation_2">
         <code>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
               <code value="initial-population"></code>
               <display value="Initial Population"></display>
            </coding>
         </code>
         <description value="Patients 13 years of age and older as of the start of the measurement period who were diagnosed with a new SUD episode during a visit between January 1 and November 14 of the measurement period"></description>
         <criteria>
            <language value="text/cql-identifier"></language>
            <expression value="Initial Population"></expression>
         </criteria>
      </population>
      <population id="Denominator_2">
         <code>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
               <code value="denominator"></code>
               <display value="Denominator"></display>
            </coding>
         </code>
         <description value="Equals Initial Population"></description>
         <criteria>
            <language value="text/cql-identifier"></language>
            <expression value="Denominator"></expression>
         </criteria>
      </population>
      <population id="DenominatorExclusion_2">
         <code>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
               <code value="denominator-exclusion"></code>
               <display value="Denominator Exclusion"></display>
            </coding>
         </code>
         <description value="Exclude patients who are in hospice care for any part of the measurement period"></description>
         <criteria>
            <language value="text/cql-identifier"></language>
            <expression value="Denominator Exclusions"></expression>
         </criteria>
      </population>
      <population id="Numerator_2">
         <code>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
               <code value="numerator"></code>
               <display value="Numerator"></display>
            </coding>
         </code>
         <description value="Engagement in ongoing SUD treatment within 34 days of initiation includes: 1. A long-acting SUD medication on the day after the initiation through 34 days after the initiation of treatment. 2. One of the following options on the day after the initiation of treatment through 34 days after the initiation of treatment: a) two engagement visits, b) two engagement medication treatment events, c) one engagement visit and one engagement medication treatment event."></description>
         <criteria>
            <language value="text/cql-identifier"></language>
            <expression value="Numerator 2"></expression>
         </criteria>
      </population>
      <stratifier id="Stratification_2_1">
         <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-appliesTo">
            <valueCodeableConcept>
               <coding>
                  <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
                  <code value="initial-population"></code>
                  <display value="Initial Population"></display>
               </coding>
            </valueCodeableConcept>
         </extension>
         <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-appliesTo">
            <valueCodeableConcept>
               <coding>
                  <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
                  <code value="denominator"></code>
                  <display value="Denominator"></display>
               </coding>
            </valueCodeableConcept>
         </extension>
         <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-appliesTo">
            <valueCodeableConcept>
               <coding>
                  <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
                  <code value="denominator-exclusion"></code>
                  <display value="Denominator Exclusion"></display>
               </coding>
            </valueCodeableConcept>
         </extension>
         <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-appliesTo">
            <valueCodeableConcept>
               <coding>
                  <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
                  <code value="numerator"></code>
                  <display value="Numerator"></display>
               </coding>
            </valueCodeableConcept>
         </extension>
         <description value="Report a total score, and each of the following strata: Stratum 1: Patients age 13-17 at the start of the measurement period"></description>
         <criteria>
            <language value="text/cql-identifier"></language>
            <expression value="Stratification 1"></expression>
         </criteria>
      </stratifier>
      <stratifier id="Stratification_2_2">
         <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-appliesTo">
            <valueCodeableConcept>
               <coding>
                  <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
                  <code value="initial-population"></code>
                  <display value="Initial Population"></display>
               </coding>
            </valueCodeableConcept>
         </extension>
         <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-appliesTo">
            <valueCodeableConcept>
               <coding>
                  <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
                  <code value="denominator"></code>
                  <display value="Denominator"></display>
               </coding>
            </valueCodeableConcept>
         </extension>
         <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-appliesTo">
            <valueCodeableConcept>
               <coding>
                  <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
                  <code value="denominator-exclusion"></code>
                  <display value="Denominator Exclusion"></display>
               </coding>
            </valueCodeableConcept>
         </extension>
         <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-appliesTo">
            <valueCodeableConcept>
               <coding>
                  <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
                  <code value="numerator"></code>
                  <display value="Numerator"></display>
               </coding>
            </valueCodeableConcept>
         </extension>
         <description value="Stratum 2: Patients age 18-64 at the start of the measurement period"></description>
         <criteria>
            <language value="text/cql-identifier"></language>
            <expression value="Stratification 2"></expression>
         </criteria>
      </stratifier>
      <stratifier id="Stratification_2_3">
         <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-appliesTo">
            <valueCodeableConcept>
               <coding>
                  <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
                  <code value="initial-population"></code>
                  <display value="Initial Population"></display>
               </coding>
            </valueCodeableConcept>
         </extension>
         <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-appliesTo">
            <valueCodeableConcept>
               <coding>
                  <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
                  <code value="denominator"></code>
                  <display value="Denominator"></display>
               </coding>
            </valueCodeableConcept>
         </extension>
         <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-appliesTo">
            <valueCodeableConcept>
               <coding>
                  <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
                  <code value="denominator-exclusion"></code>
                  <display value="Denominator Exclusion"></display>
               </coding>
            </valueCodeableConcept>
         </extension>
         <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-appliesTo">
            <valueCodeableConcept>
               <coding>
                  <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
                  <code value="numerator"></code>
                  <display value="Numerator"></display>
               </coding>
            </valueCodeableConcept>
         </extension>
         <description value="Stratum 3: Patients age 65 and older at the start of the measurement period"></description>
         <criteria>
            <language value="text/cql-identifier"></language>
            <expression value="Stratification 3"></expression>
         </criteria>
      </stratifier>
   </group>
   <supplementalData id="sde-ethnicity">
      <usage>
         <coding>
            <system value="http://terminology.hl7.org/CodeSystem/measure-data-usage"></system>
            <code value="supplemental-data"></code>
         </coding>
      </usage>
      <description value="SDE Ethnicity"></description>
      <criteria>
         <language value="text/cql-identifier"></language>
         <expression value="SDE Ethnicity"></expression>
      </criteria>
   </supplementalData>
   <supplementalData id="sde-payer">
      <usage>
         <coding>
            <system value="http://terminology.hl7.org/CodeSystem/measure-data-usage"></system>
            <code value="supplemental-data"></code>
         </coding>
      </usage>
      <description value="SDE Payer"></description>
      <criteria>
         <language value="text/cql-identifier"></language>
         <expression value="SDE Payer"></expression>
      </criteria>
   </supplementalData>
   <supplementalData id="sde-race">
      <usage>
         <coding>
            <system value="http://terminology.hl7.org/CodeSystem/measure-data-usage"></system>
            <code value="supplemental-data"></code>
         </coding>
      </usage>
      <description value="SDE Race"></description>
      <criteria>
         <language value="text/cql-identifier"></language>
         <expression value="SDE Race"></expression>
      </criteria>
   </supplementalData>
   <supplementalData id="sde-sex">
      <usage>
         <coding>
            <system value="http://terminology.hl7.org/CodeSystem/measure-data-usage"></system>
            <code value="supplemental-data"></code>
         </coding>
      </usage>
      <description value="SDE Sex"></description>
      <criteria>
         <language value="text/cql-identifier"></language>
         <expression value="SDE Sex"></expression>
      </criteria>
   </supplementalData>
</Measure>