<Measure xmlns="http://hl7.org/fhir">
   <id value="CMS68FHIRDocumentationCurrentMeds"></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">Documentation of Current Medications in the Medical RecordFHIR</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">CMS68FHIR</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">GUID (Version Independent)</th> 
                  <td class="content-container">urn:uuid:8fbf4570-1db0-4d90-9900-39a7fa635c75</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">GUID (Version Specific)</th> 
                  <td class="content-container">urn:uuid:15214cf9-f81e-4f3a-9746-a6a7c0daa51d</td> 
               </tr>  
               <tr> 
                  <th scope="row" class="row-header">CMS Identifier</th> 
                  <td class="content-container">68FHIR</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">Centers for Medicare &amp; Medicaid Services (CMS)</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Developer</th> 
                  <td class="content-container">American Institutes for Research (AIR)</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Description</th> 
                  <td class="content-container">
                     <p>Percentage of visits for which the eligible clinician attests to documenting a list of current medications using all immediate resources available on the date of the encounter</p>
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Copyright</th> 
                  <td class="content-container">
                     <p>This electronic clinical quality measure (Measure) and related data specifications are owned and stewarded by the Centers for Medicare &amp; Medicaid Services (CMS). CMS contracted (Contract # 75FCMC18D0027/ Task Order #: 75FCMC24F0144) with the American Institutes for Research (AIR) to develop this electronic measure. AIR is not responsible for any use of the Measure. AIR makes no representations, warranties, or endorsement about the quality of any organization or physician that uses or reports performance measures and AIR has no liability to anyone who relies on such measures or specifications.</p> 
                     <p>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. AIR disclaims all liability for use or accuracy of any third-party codes contained in the specifications.</p> 
                     <p>CPT(R) contained in the Measure specifications is copyright 2004-2024 American Medical Association. LOINC(R) copyright 2004-2024 Regenstrief Institute, Inc. This material contains SNOMED Clinical Terms(R) (SNOMED CT[R]) copyright 2004-2024 International Health Terminology Standards Development Organisation.</p>
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Disclaimer</th> 
                  <td class="content-container">
                     <p>This performance Measure is not a clinical guideline, does not establish a standard of medical care, and has not been tested for all potential applications.</p> 
                     <p>THE MEASURE AND SPECIFICATIONS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.</p> 
                     <p>Due to technical limitations, registered trademarks are indicated by (R) or [R] and unregistered trademarks are indicated by (TM) or [TM].</p>
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Rationale</th> 
                  <td class="content-container">
                     <p>According to the National Center for Health Statistics, during the years of 2013-2016, 48.4% of patients (both male and female) were prescribed at least one prescription medication with 12.6% taking 5 or more medications. Additionally, 89.8% of patients (both male and female) aged 65 years and older were prescribed at least one medication with 40.9% taking 5 or more medications (2018). In this context, maintaining an accurate and complete medication list has proven to be a challenging documentation endeavor for various health care provider settings. While most of outpatient encounters (two-thirds) result in providers prescribing at least one medication, hospitals have been the focus of medication safety efforts (Stock, Scott, &amp; Gurtel, 2009). Nassaralla, Naessens, Chaudhry, Hansen, and Scheitel (2007) caution that this is at odds with the current trend, where patients with chronic illnesses are increasingly being treated in the outpatient setting and require careful monitoring of multiple medications. Additionally, Nassaralla et al. (2007) reveal that it is in fact in outpatient settings where more fatal adverse drug events (ADE) occur when these are compared to those occurring in hospitals (1 of 131 outpatient deaths compared to 1 in 854 inpatient deaths). In the outpatient setting, ADEs occur 25% of the time and over one-third of these are considered preventable (Tache, Sonnichsen, &amp; Ashcroft, 2011). Particularly vulnerable are patients over 65 years, with evidence suggesting that the rate of ADEs per 10,000 person per year increases with age; 25-44 years old at 1.3; 45-64 at 2.2, and 65 + at 3.8 (Sarkar, López, Maselli, &amp; Gonzales, 2011). Other vulnerable groups include individuals who are chronically ill or disabled (Nabhanizadeh, Oppewal, Boot, &amp; Maes-Festen, 2019). These population groups are more likely to experience ADEs and subsequent hospitalization.</p> 
                     <p>A multiplicity of providers and inadequate care coordination among them has been identified as barriers to collecting complete and reliable medication records. A study conducted by Poornima et al. (2015) indicates that reconciliation and documentation continue to be poorly executed with discrepancies occurring in 92% of patients (74 of 80) admitted to the emergency room. Of 80 patients included in the study, the home medications were reordered for 65% of patients on their admission. Of the 65%, 29% had a change in their dosing interval, while 23% had a change in their route of administration, and 13% had a change in dose. A total of 361 medication discrepancies, or the difference between the medications patients were taking before admission and those listed in their admission orders, were identified in at least 74 patients. The study found that "Through an appropriate reconciliation programme, around 80% of errors relating to medication and the potential harm caused by these errors could be reduced" (Poornima et al., 2015). Presley et al. (2020) also recognized specific barriers to sufficient medication documentation and reconciliation in rural and resource-limited care settings.</p> 
                     <p>Documentation of current medications in the medical record facilitates the process of medication review and reconciliation by the provider, which is necessary for reducing ADEs and promoting medication safety. The need for provider to provider coordination regarding medication records, and the existing gap in implementation, is highlighted in the American Medical Association's Physician's Role in Medication Reconciliation, which states that "critical patient information, including medical and medication histories, current medications the patient is receiving and taking, and sources of medications, is essential to the delivery of safe medical care. However, interruptions in the continuity of care and information gaps in patient health records are common and significantly affect patient outcomes" (2007). This is because clinical decisions based on information that is incomplete and/or inaccurate are likely to lead to medication error and ADEs. Weeks, Corbette, and Stream (2010) noted similar barriers and identified the utilization of health information technology as an opportunity for facilitating the creation of universal medication lists. One 2015 meta-analysis showed an association between electronic health record (EHR) documentation with an overall risk ratio (RR) of 0.46 (95% CI = 0.38 to 0.55; P &lt; 0.001) and ADEs with an overall RR of 0.66 (95% CI = 0.44 to 0.99; P = 0.045). This meta-analysis provides evidence that the use of the EHR can improve the quality of healthcare delivered to patients by reducing medication errors and ADEs (Campanella et al., 2016).</p>
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Clinical Recommendation Statement</th> 
                  <td class="content-container">
                     <p>The Joint Commission's 2023 Ambulatory Health Care National Patient Safety Goals guide clinicians to maintain and communicate accurate patient medication information (2023). Specifically, the section NPSG.03.06.01 "Maintain and communicate accurate patient medication information" states the following: "Obtain and/or update information on the medications the patient is currently taking. This information is documented in a list or other format that is useful to those who manage medication. Compare the medication information the patient brought to the organization with the medications ordered for the patient by the organization in order to identify and resolve discrepancies.”</p> 
                     <p>The Joint Commission's 2023 Hospital National Patient Safety Goals also addressed documenting current medications (2023). Specifically, the section NPSG.03.06.01 "Maintain and communicate accurate patient information" states the following: "Obtain information on the medications the patient is currently taking when they are admitted to the hospital or is seen in an outpatient setting. This information is documented in a list or other format that is useful to those who manage medications."</p> 
                     <p>The National Quality Forum's Safe Practices for Better Healthcare (2010), states the following: "The healthcare organization must develop, reconcile, and communicate an accurate patient medication list throughout the continuum of care."</p>
                  </td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  American Medical Association. (2007). The physician’s role in medication reconciliation: Issues, strategies, and safety principles. https://www.doctutor.es/wp-content/uploads/2013/09/med-rec-monograph.pdf   </td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  Campanella, P., Lovato, E., Marone, C., Fallacara, L., Mancuso, A., Ricciardi, W., &amp; Specchia, M. L. (2016). The impact of electronic health records on health care quality: A systematic review and meta-analysis. European Journal of Public Health, 26(1), 60-64. https://doi.org/10.1093/eurpub/ckv122    </td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  Nabhanizadeh, A., Oppewal, A., Boot, F. H., &amp; Maes-Festen, D. (2019). Effectiveness of medication reviews in identifying and reducing medication-related problems among people with intellectual disabilities: A systematic review. Journal of Applied Research in Intellectual Disabilities, 32(4), 750–761. https://doi.org/10.1111/jar.12580    </td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  Nassaralla, C. L., Naessens, J. M., Chaudhry, R., Hansen, M. A., &amp; Scheitel, S. M. (2007). Implementation of a medication reconciliation process in an ambulatory internal medicine clinic. Quality and Safety in Health Care, 16(2), 90-94. http://doi.org/10.1136/qshc.2006.021113    </td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  National Center for Health Statistics. (2018). Health, United States, 2018: Supplementary Table 38. Prescription drug use in the past 30 days, by sex, race and Hispanic origin, and age: United States, selected years 1988–1994 through 2013–2016 Retrieved from https://www.cdc.gov/nchs/data/hus/2018/038.pdf   </td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  National Quality Forum. (2010). Safe Practices for Better Healthcare - 2010 Update. Retrieved from https://www.leapfroggroup.org/sites/default/files/Files/NQF%20Safe%20Practices%20for%20Better%20Healthcare%202010_0.pdf   </td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  Poornima, P., Reshma, P., Ramakrishnan, T. V., Rani, N. V., Devi, G. S., Seshadri, P. (2015). Medication reconciliation and medication error prevention in an emergency department of a tertiary care hospital. Journal of Young Pharmacists, 7(3), 241-249. https://www.jyoungpharm.org/sites/default/files/JYP_7_3_15.pdf   </td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  Presley, C. A., Wooldridge, K. T., Byerly, S. H., Aylor, A. R., Kaboli, P. J., Roumie, C. L., Schnipper, J. L., Dittus, R. S., Mixon, A. S. (2020). The Rural VA Multi-Center Medication Reconciliation Quality Improvement Study (R-VA-MARQUIS). American Journal of Health-System Pharmacy, 77, 128-137. https://doi.org/10.1093/ajhp/zxz275   </td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  Sarkar, U., López, A., Maselli, J. H., Gonzales, R. (2011). Adverse drug events in U.S. adult ambulatory medical care. Health Services Research, 46(5), 1517-1533. http://doi.org/10.1111/j.1475-6773.2011.01269.x   </td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  Stock, R., Scott, J., &amp; Gurtel, S. (2009). Using an electronic prescribing system to ensure accurate medication lists in a large multidisciplinary medical group. The Joint Commission Journal on Quality and Patient Safety, 35(5), 271-277    </td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  Tache, S. V., Sonnichsen, A., &amp; Ashcroft, D. M. (2011). Prevalence of adverse drug events in ambulatory care: A systematic review. The Annals of Pharmacotherapy, 45(7-8), 977-989. http://doi.org/10.1345/aph.1P627    </td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  The Joint Commission. (2023). Ambulatory Health Care: 2023 National Patient Safety Goals. https://www.jointcommission.org/-/media/tjc/documents/standards/national-patient-safety-goals/2023/npsg_chapter_ahc_jul2023.pdf   </td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  The Joint Commission. (2023). Hospital: 2023 National Patient Safety Goals. https://www.jointcommission.org/-/media/tjc/documents/standards/national-patient-safety-goals/2023/npsg_chapter_hap_jul2023.pdf   </td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  Weeks, D. L., Corbette, C. F., &amp; Stream, G. (2010). Beliefs of ambulatory care physicians about accuracy of patient medication records and technology-enhanced solutions to improve accuracy. Journal for Healthcare Quality, 32(5), 12-21. http://doi.org/10.1111/j.1945-1474.2010.00097.x    </td> 
               </tr>  
               <tr> 
                  <th scope="row" class="row-header">Definition</th> 
                  <td class="content-container">Current Medications: 
                     <p>Medications the patient is presently taking including all prescriptions, over-the-counter products, herbals, vitamins, minerals, dietary (nutritional) supplements, and cannabis/cannabidiol (CBD) products with each medication's name, dosage, frequency and administered route</p>
                  </td> 
               </tr>  
               <tr> 
                  <th scope="row" class="row-header">Definition</th> 
                  <td class="content-container">Encounter to Document Medications: 
                     <p>An encounter performed during the measurement period where medications should be reviewed</p>
                  </td> 
               </tr>  
               <tr> 
                  <th scope="row" class="row-header">Definition</th> 
                  <td class="content-container">Route: 
                     <p>Documentation of the way the medication enters the body (some examples include but are not limited to: oral, sublingual, subcutaneous injections, and/or topical)</p>
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Guidance (Usage)</th> 
                  <td class="content-container">
                     <p>This eCQM is an episode-based measure. An episode is defined as each eligible encounter during the measurement period. This measure is to be reported for every eligible encounter during the measurement period.</p> 
                     <p>Eligible clinicians reporting this measure may document medication information received from the patient, authorized representative(s), caregiver(s) or other available healthcare resources.</p> 
                     <p>By reporting the action described in this measure, the provider attests to having documented a list of current medications utilizing all immediate resources available on the day of the encounter.</p> 
                     <p>This list must include all known prescriptions, over-the-counter products, herbals, vitamins, minerals, dietary (nutritional) supplements, cannabis/cannabidiol (CBD) products AND must contain the medications' name, dosage, frequency, and route of administration.</p> 
                     <p>This measure should also be reported if the eligible clinician documented the patient is not currently taking any medications.</p> 
                     <p>This FHIR-based measure has been derived from the QDM-based measure CMS 68v15. 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).</p>
                  </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">Summary</th> 
                  <td class="content-container">
                     <p>Percentage of visits for which the eligible clinician attests to documenting a list of current medications using all immediate resources available on the date of the encounter</p>
                  </td> 
               </tr>  
               <tr> 
                  <th scope="row" class="row-header">Basis</th> 
                  <td class="content-container">Encounter</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">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">
                        <p>All visits occurring during the 12-month measurement period</p>
                     </p>   
                     <em>Logic Definition</em>: 
                     <a href="#primary-cms68fhirdocumentationcurrentmeds-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">
                        <p>Equals Initial Population</p>
                     </p>   
                     <em>Logic Definition</em>: 
                     <a href="#primary-cms68fhirdocumentationcurrentmeds-denominator">Denominator</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">
                        <p>Eligible clinician attests to documenting the patient's current medications using all immediate resources available on the date of the encounter</p>
                     </p>   
                     <em>Logic Definition</em>: 
                     <a href="#primary-cms68fhirdocumentationcurrentmeds-numerator">Numerator</a>  
                  </td> 
               </tr>  
               <tr>  
                  <th scope="row" class="row-header">Denominator Exception</th> 
                  <td class="content-container"> 
                     <em>ID</em>: DenominatorException_1 
                     <br></br>  
                     <em>Description</em>: 
                     <p style="white-space: pre-line" class="tab-one">
                        <p>Documentation of acute health crisis where time is of the essence and delay of treatment would jeopardize the patient's health status</p>
                     </p>   
                     <em>Logic Definition</em>: 
                     <a href="#primary-cms68fhirdocumentationcurrentmeds-denominator-exceptions">Denominator Exceptions</a>  
                  </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="#cms68fhirdocumentationcurrentmeds-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="#cms68fhirdocumentationcurrentmeds-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="#cms68fhirdocumentationcurrentmeds-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="#cms68fhirdocumentationcurrentmeds-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/CMS68FHIRDocumentationCurrentMeds</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-cms68fhirdocumentationcurrentmeds-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":
  "Qualifying Encounter During Day of Measurement Period" QualifyingEncounter</code></pre> 
                  </td> 
               </tr>                          
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="primary-cms68fhirdocumentationcurrentmeds-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-cms68fhirdocumentationcurrentmeds-numerator"> </a>  Numerator  
                  </th> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Numerator":
  "Qualifying Encounter During Day of Measurement Period" QualifyingEncounter
    with [Procedure: "Documentation of current medications (procedure)"] MedicationsDocumented
      such that MedicationsDocumented.performed.toInterval ( ) starts during day of QualifyingEncounter.period
        and MedicationsDocumented.performed.toInterval ( ).hasEnd ( )
        and MedicationsDocumented.status = 'completed'</code></pre> 
                  </td> 
               </tr>                                  
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="primary-cms68fhirdocumentationcurrentmeds-denominator-exceptions"> </a>  Denominator Exception  
                  </th> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Denominator Exceptions":
  "Qualifying Encounter During Day of Measurement Period" QualifyingEncounter
    with [ProcedureNotDone: code ~ "Documentation of current medications (procedure)"] MedicationsNotDocumented
      such that MedicationsNotDocumented.recorded during day of QualifyingEncounter.period
        and MedicationsNotDocumented.status = 'not-done'
        and exists ( MedicationsNotDocumented.reasonCode reasonItem
            where reasonItem ~ "Acute health crisis (finding)"
        )</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="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="cms68fhirdocumentationcurrentmeds-sde-sex"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CMS68FHIRDocumentationCurrentMeds
                  </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="cms68fhirdocumentationcurrentmeds-qualifying-encounter-during-day-of-measurement-period"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CMS68FHIRDocumentationCurrentMeds
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Qualifying Encounter During Day of Measurement Period":
  ["Encounter": "Encounter to Document Medications"] ValidEncounter
    where ValidEncounter.status = 'finished'
      and ValidEncounter.period during day of "Measurement Period"</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="cms68fhirdocumentationcurrentmeds-numerator"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CMS68FHIRDocumentationCurrentMeds
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Numerator":
  "Qualifying Encounter During Day of Measurement Period" QualifyingEncounter
    with [Procedure: "Documentation of current medications (procedure)"] MedicationsDocumented
      such that MedicationsDocumented.performed.toInterval ( ) starts during day of QualifyingEncounter.period
        and MedicationsDocumented.performed.toInterval ( ).hasEnd ( )
        and MedicationsDocumented.status = 'completed'</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="cms68fhirdocumentationcurrentmeds-initial-population"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CMS68FHIRDocumentationCurrentMeds
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Initial Population":
  "Qualifying Encounter During Day of Measurement Period" QualifyingEncounter</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="cms68fhirdocumentationcurrentmeds-denominator"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CMS68FHIRDocumentationCurrentMeds
                  </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="cms68fhirdocumentationcurrentmeds-sde-payer"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CMS68FHIRDocumentationCurrentMeds
                  </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="cms68fhirdocumentationcurrentmeds-sde-ethnicity"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CMS68FHIRDocumentationCurrentMeds
                  </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="cms68fhirdocumentationcurrentmeds-sde-race"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CMS68FHIRDocumentationCurrentMeds
                  </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="cms68fhirdocumentationcurrentmeds-denominator-exceptions"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> CMS68FHIRDocumentationCurrentMeds
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Denominator Exceptions":
  "Qualifying Encounter During Day of Measurement Period" QualifyingEncounter
    with [ProcedureNotDone: code ~ "Documentation of current medications (procedure)"] MedicationsNotDocumented
      such that MedicationsNotDocumented.recorded during day of QualifyingEncounter.period
        and MedicationsNotDocumented.status = 'not-done'
        and exists ( MedicationsNotDocumented.reasonCode reasonItem
            where reasonItem ~ "Acute health crisis (finding)"
        )</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-hasend"> </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: Given an interval, returns true if the interval has an ending boundary specified
(i.e. the end of the interval is not null and not the maximum DateTime value)
*/
define fluent function hasEnd(period Interval&lt;DateTime&gt; ):
  not (
    end of period is null
      or end of period = maximum DateTime
  )</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="fhirhelpers-toconcept"> </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 [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.
*/
define function ToConcept(concept FHIR.CodeableConcept):
    if concept is null then
        null
    else
        System.Concept {
            codes: concept.coding C return ToCode(C),
            display: concept.text.value
        }</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">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Encounter to Document Medications  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1.1834 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1.1834</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">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>: Documentation of current medications (procedure) 
                     <br></br> 
                     <em>Code</em>: 428191000124101 
                     <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>: Acute health crisis (finding) 
                     <br></br> 
                     <em>Code</em>: 705016005 
                     <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 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 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.600.1.1834 
                     <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>Code(s)</em>:  http://snomed.info/sct#428191000124101: 'Documentation of current medications (procedure)'  
                     </span> 
                     <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>: Procedure 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedurenotdone 
                     <br></br>   
                     <em>Must Support Elements</em>: code, extension, status, status.value, reasonCode 
                     <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://snomed.info/sct#428191000124101: 'Documentation of current medications (procedure)'  
                     </span> 
                     <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://snomed.info/sct"></system>
               <code value="428191000124101"></code>
               <display value="Documentation of current medications (procedure)"></display>
            </valueCoding>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
               <system value="http://snomed.info/sct"></system>
               <code value="705016005"></code>
               <display value="Acute health crisis (finding)"></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="CMS68FHIRDocumentationCurrentMeds"></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="CMS68FHIRDocumentationCurrentMeds"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Qualifying Encounter During Day of Measurement Period"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Qualifying Encounter During Day of Measurement Period&quot;:
  [&quot;Encounter&quot;: &quot;Encounter to Document Medications&quot;] ValidEncounter
    where ValidEncounter.status = 'finished'
      and ValidEncounter.period during day of &quot;Measurement Period&quot;"></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="CMS68FHIRDocumentationCurrentMeds"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Numerator"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Numerator&quot;:
  &quot;Qualifying Encounter During Day of Measurement Period&quot; QualifyingEncounter
    with [Procedure: &quot;Documentation of current medications (procedure)&quot;] MedicationsDocumented
      such that MedicationsDocumented.performed.toInterval ( ) starts during day of QualifyingEncounter.period
        and MedicationsDocumented.performed.toInterval ( ).hasEnd ( )
        and MedicationsDocumented.status = 'completed'"></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="CMS68FHIRDocumentationCurrentMeds"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Initial Population"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Initial Population&quot;:
  &quot;Qualifying Encounter During Day of Measurement Period&quot; QualifyingEncounter"></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="CMS68FHIRDocumentationCurrentMeds"></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="5"></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="6"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="CMS68FHIRDocumentationCurrentMeds"></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="7"></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="8"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="CMS68FHIRDocumentationCurrentMeds"></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="9"></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="10"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="CMS68FHIRDocumentationCurrentMeds"></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="11"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="CMS68FHIRDocumentationCurrentMeds"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Denominator Exceptions"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Denominator Exceptions&quot;:
  &quot;Qualifying Encounter During Day of Measurement Period&quot; QualifyingEncounter
    with [ProcedureNotDone: code ~ &quot;Documentation of current medications (procedure)&quot;] MedicationsNotDocumented
      such that MedicationsNotDocumented.recorded during day of QualifyingEncounter.period
        and MedicationsNotDocumented.status = 'not-done'
        and exists ( MedicationsNotDocumented.reasonCode reasonItem
            where reasonItem ~ &quot;Acute health crisis (finding)&quot;
        )"></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="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="13"></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="14"></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="15"></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="hasEnd"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="/*
@description: Given an interval, returns true if the interval has an ending boundary specified
(i.e. the end of the interval is not null and not the maximum DateTime value)
*/
define fluent function hasEnd(period Interval&lt;DateTime&gt; ):
  not (
    end of period is null
      or end of period = maximum DateTime
  )"></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="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="17"></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="ToConcept"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="/*
@description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.
*/
define function ToConcept(concept FHIR.CodeableConcept):
    if concept is null then
        null
    else
        System.Concept {
            codes: concept.coding C return ToCode(C),
            display: concept.text.value
        }"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="18"></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 QICoreCommon"></display>
            <resource value="https://madie.cms.gov/Library/QICoreCommon|4.0.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="Value set Encounter to Document Medications"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1.1834"></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>
         <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="Numerator"></name>
            <use value="out"></use>
            <min value="0"></min>
            <max value="*"></max>
            <type value="Resource"></type>
         </parameter>
         <parameter>
            <name value="Denominator"></name>
            <use value="out"></use>
            <min value="0"></min>
            <max value="*"></max>
            <type value="Resource"></type>
         </parameter>
         <parameter>
            <name value="Initial Population"></name>
            <use value="out"></use>
            <min value="0"></min>
            <max value="*"></max>
            <type value="Resource"></type>
         </parameter>
         <parameter>
            <name value="Denominator Exceptions"></name>
            <use value="out"></use>
            <min value="0"></min>
            <max value="*"></max>
            <type value="Resource"></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>
         <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.600.1.1834"></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>
               <code>
                  <system value="http://snomed.info/sct"></system>
                  <code value="428191000124101"></code>
                  <display value="Documentation of current medications (procedure)"></display>
               </code>
            </codeFilter>
         </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="Procedure"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedurenotdone"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="extension"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <mustSupport value="reasonCode"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <code>
                  <system value="http://snomed.info/sct"></system>
                  <code value="428191000124101"></code>
                  <display value="Documentation of current medications (procedure)"></display>
               </code>
            </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="Current Medications"></valueString>
      </extension>
      <extension url="definition">
         <valueMarkdown value="Medications the patient is presently taking including all prescriptions, over-the-counter products, herbals, vitamins, minerals, dietary (nutritional) supplements, and cannabis/cannabidiol (CBD) products with each medication's name, dosage, frequency and administered route
"></valueMarkdown>
      </extension>
   </extension>
   <extension url="http://hl7.org/fhir/StructureDefinition/cqf-definitionTerm">
      <extension url="term">
         <valueString value="Encounter to Document Medications"></valueString>
      </extension>
      <extension url="definition">
         <valueMarkdown value="An encounter performed during the measurement period where medications should be reviewed
"></valueMarkdown>
      </extension>
   </extension>
   <extension url="http://hl7.org/fhir/StructureDefinition/cqf-definitionTerm">
      <extension url="term">
         <valueString value="Route"></valueString>
      </extension>
      <extension url="definition">
         <valueMarkdown value="Documentation of the way the medication enters the body (some examples include but are not limited to: oral, sublingual, subcutaneous injections, and/or topical)
"></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/CMS68FHIRDocumentationCurrentMeds"></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="CMS68FHIR"></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:8fbf4570-1db0-4d90-9900-39a7fa635c75"></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:15214cf9-f81e-4f3a-9746-a6a7c0daa51d"></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="68FHIR"></value>
      <assigner>
         <display value="CMS"></display>
      </assigner>
   </identifier>
   <version value="1.0.000"></version>
   <name value="CMS68FHIRDocumentationCurrentMeds"></name>
   <title value="Documentation of Current Medications in the Medical RecordFHIR
"></title>
   <status value="active"></status>
   <experimental value="false"></experimental>
   <date value="2025-08-21T13:34:21+00:00"></date>
   <publisher value="Centers for Medicare &amp;amp; Medicaid Services (CMS)"></publisher>
   <contact>
      <telecom>
         <system value="url"></system>
         <value value="https://www.cms.gov/"></value>
      </telecom>
   </contact>
   <description value="Percentage of visits for which the eligible clinician attests to documenting a list of current medications using all immediate resources available on the date of the encounter
"></description>
   <usage value="This eCQM is an episode-based measure. An episode is defined as each eligible encounter during the measurement period. This measure is to be reported for every eligible encounter during the measurement period.

Eligible clinicians reporting this measure may document medication information received from the patient, authorized representative(s), caregiver(s) or other available healthcare resources.

By reporting the action described in this measure, the provider attests to having documented a list of current medications utilizing all immediate resources available on the day of the encounter.

This list must include all known prescriptions, over-the-counter products, herbals, vitamins, minerals, dietary (nutritional) supplements, cannabis/cannabidiol (CBD) products AND must contain the medications' name, dosage, frequency, and route of administration.

This measure should also be reported if the eligible clinician documented the patient is not currently taking any medications.

This FHIR-based measure has been derived from the QDM-based measure CMS 68v15. 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 electronic clinical quality measure (Measure) and related data specifications are owned and stewarded by the Centers for Medicare \&amp; Medicaid Services (CMS). CMS contracted (Contract # 75FCMC18D0027/ Task Order #: 75FCMC24F0144) with the American Institutes for Research (AIR) to develop this electronic measure. AIR is not responsible for any use of the Measure. AIR makes no representations, warranties, or endorsement about the quality of any organization or physician that uses or reports performance measures and AIR has no liability to anyone who relies on such measures or specifications.

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. AIR disclaims all liability for use or accuracy of any third-party codes contained in the specifications.

CPT(R) contained in the Measure specifications is copyright 2004-2024 American Medical Association. LOINC(R) copyright 2004-2024 Regenstrief Institute, Inc. This material contains SNOMED Clinical Terms(R) (SNOMED CT\[R\]) copyright 2004-2024 International Health Terminology Standards Development Organisation.
"></copyright>
   <effectivePeriod>
      <start value="2026-01-01"></start>
      <end value="2026-12-31"></end>
   </effectivePeriod>
   <author>
      <name value="American Institutes for Research (AIR)"></name>
      <telecom>
         <system value="url"></system>
         <value value="https://www.air.org"></value>
      </telecom>
   </author>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="American Medical Association. (2007). The physician's role in medication reconciliation: Issues, strategies, and safety principles. https://www.doctutor.es/wp-content/uploads/2013/09/med-rec-monograph.pdf
"></citation>
   </relatedArtifact>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="Campanella, P., Lovato, E., Marone, C., Fallacara, L., Mancuso, A., Ricciardi, W., \&amp; Specchia, M. L. (2016). The impact of electronic health records on health care quality: A systematic review and meta-analysis. European Journal of Public Health, 26(1), 60-64. https://doi.org/10.1093/eurpub/ckv122
"></citation>
   </relatedArtifact>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="Nabhanizadeh, A., Oppewal, A., Boot, F. H., \&amp; Maes-Festen, D. (2019). Effectiveness of medication reviews in identifying and reducing medication-related problems among people with intellectual disabilities: A systematic review. Journal of Applied Research in Intellectual Disabilities, 32(4), 750--761. https://doi.org/10.1111/jar.12580
"></citation>
   </relatedArtifact>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="Nassaralla, C. L., Naessens, J. M., Chaudhry, R., Hansen, M. A., \&amp; Scheitel, S. M. (2007). Implementation of a medication reconciliation process in an ambulatory internal medicine clinic. Quality and Safety in Health Care, 16(2), 90-94. http://doi.org/10.1136/qshc.2006.021113
"></citation>
   </relatedArtifact>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="National Center for Health Statistics. (2018). Health, United States, 2018: Supplementary Table 38. Prescription drug use in the past 30 days, by sex, race and Hispanic origin, and age: United States, selected years 1988--1994 through 2013--2016 Retrieved from https://www.cdc.gov/nchs/data/hus/2018/038.pdf
"></citation>
   </relatedArtifact>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="National Quality Forum. (2010). Safe Practices for Better Healthcare - 2010 Update. Retrieved from https://www.leapfroggroup.org/sites/default/files/Files/NQF%20Safe%20Practices%20for%20Better%20Healthcare%202010_0.pdf
"></citation>
   </relatedArtifact>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="Poornima, P., Reshma, P., Ramakrishnan, T. V., Rani, N. V., Devi, G. S., Seshadri, P. (2015). Medication reconciliation and medication error prevention in an emergency department of a tertiary care hospital. Journal of Young Pharmacists, 7(3), 241-249. https://www.jyoungpharm.org/sites/default/files/JYP_7_3_15.pdf
"></citation>
   </relatedArtifact>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="Presley, C. A., Wooldridge, K. T., Byerly, S. H., Aylor, A. R., Kaboli, P. J., Roumie, C. L., Schnipper, J. L., Dittus, R. S., Mixon, A. S. (2020). The Rural VA Multi-Center Medication Reconciliation Quality Improvement Study (R-VA-MARQUIS). American Journal of Health-System Pharmacy, 77, 128-137. https://doi.org/10.1093/ajhp/zxz275
"></citation>
   </relatedArtifact>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="Sarkar, U., López, A., Maselli, J. H., Gonzales, R. (2011). Adverse drug events in U.S. adult ambulatory medical care. Health Services Research, 46(5), 1517-1533. http://doi.org/10.1111/j.1475-6773.2011.01269.x
"></citation>
   </relatedArtifact>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="Stock, R., Scott, J., \&amp; Gurtel, S. (2009). Using an electronic prescribing system to ensure accurate medication lists in a large multidisciplinary medical group. The Joint Commission Journal on Quality and Patient Safety, 35(5), 271-277
"></citation>
   </relatedArtifact>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="Tache, S. V., Sonnichsen, A., \&amp; Ashcroft, D. M. (2011). Prevalence of adverse drug events in ambulatory care: A systematic review. The Annals of Pharmacotherapy, 45(7-8), 977-989. http://doi.org/10.1345/aph.1P627
"></citation>
   </relatedArtifact>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="The Joint Commission. (2023). Ambulatory Health Care: 2023 National Patient Safety Goals. https://www.jointcommission.org/-/media/tjc/documents/standards/national-patient-safety-goals/2023/npsg_chapter_ahc_jul2023.pdf
"></citation>
   </relatedArtifact>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="The Joint Commission. (2023). Hospital: 2023 National Patient Safety Goals. https://www.jointcommission.org/-/media/tjc/documents/standards/national-patient-safety-goals/2023/npsg_chapter_hap_jul2023.pdf
"></citation>
   </relatedArtifact>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="Weeks, D. L., Corbette, C. F., \&amp; Stream, G. (2010). Beliefs of ambulatory care physicians about accuracy of patient medication records and technology-enhanced solutions to improve accuracy. Journal for Healthcare Quality, 32(5), 12-21. http://doi.org/10.1111/j.1945-1474.2010.00097.x
"></citation>
   </relatedArtifact>
   <library value="https://madie.cms.gov/Library/CMS68FHIRDocumentationCurrentMeds"></library>
   <disclaimer value="This performance Measure is not a clinical guideline, 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="According to the National Center for Health Statistics, during the years of 2013-2016, 48.4% of patients (both male and female) were prescribed at least one prescription medication with 12.6% taking 5 or more medications. Additionally, 89.8% of patients (both male and female) aged 65 years and older were prescribed at least one medication with 40.9% taking 5 or more medications (2018). In this context, maintaining an accurate and complete medication list has proven to be a challenging documentation endeavor for various health care provider settings. While most of outpatient encounters (two-thirds) result in providers prescribing at least one medication, hospitals have been the focus of medication safety efforts (Stock, Scott, \&amp; Gurtel, 2009). Nassaralla, Naessens, Chaudhry, Hansen, and Scheitel (2007) caution that this is at odds with the current trend, where patients with chronic illnesses are increasingly being treated in the outpatient setting and require careful monitoring of multiple medications. Additionally, Nassaralla et al. (2007) reveal that it is in fact in outpatient settings where more fatal adverse drug events (ADE) occur when these are compared to those occurring in hospitals (1 of 131 outpatient deaths compared to 1 in 854 inpatient deaths). In the outpatient setting, ADEs occur 25% of the time and over one-third of these are considered preventable (Tache, Sonnichsen, \&amp; Ashcroft, 2011). Particularly vulnerable are patients over 65 years, with evidence suggesting that the rate of ADEs per 10,000 person per year increases with age; 25-44 years old at 1.3; 45-64 at 2.2, and 65 + at 3.8 (Sarkar, López, Maselli, \&amp; Gonzales, 2011). Other vulnerable groups include individuals who are chronically ill or disabled (Nabhanizadeh, Oppewal, Boot, \&amp; Maes-Festen, 2019). These population groups are more likely to experience ADEs and subsequent hospitalization.

A multiplicity of providers and inadequate care coordination among them has been identified as barriers to collecting complete and reliable medication records. A study conducted by Poornima et al. (2015) indicates that reconciliation and documentation continue to be poorly executed with discrepancies occurring in 92% of patients (74 of 80) admitted to the emergency room. Of 80 patients included in the study, the home medications were reordered for 65% of patients on their admission. Of the 65%, 29% had a change in their dosing interval, while 23% had a change in their route of administration, and 13% had a change in dose. A total of 361 medication discrepancies, or the difference between the medications patients were taking before admission and those listed in their admission orders, were identified in at least 74 patients. The study found that &quot;Through an appropriate reconciliation programme, around 80% of errors relating to medication and the potential harm caused by these errors could be reduced&quot; (Poornima et al., 2015). Presley et al. (2020) also recognized specific barriers to sufficient medication documentation and reconciliation in rural and resource-limited care settings.

Documentation of current medications in the medical record facilitates the process of medication review and reconciliation by the provider, which is necessary for reducing ADEs and promoting medication safety. The need for provider to provider coordination regarding medication records, and the existing gap in implementation, is highlighted in the American Medical Association's Physician's Role in Medication Reconciliation, which states that &quot;critical patient information, including medical and medication histories, current medications the patient is receiving and taking, and sources of medications, is essential to the delivery of safe medical care. However, interruptions in the continuity of care and information gaps in patient health records are common and significantly affect patient outcomes&quot; (2007). This is because clinical decisions based on information that is incomplete and/or inaccurate are likely to lead to medication error and ADEs. Weeks, Corbette, and Stream (2010) noted similar barriers and identified the utilization of health information technology as an opportunity for facilitating the creation of universal medication lists. One 2015 meta-analysis showed an association between electronic health record (EHR) documentation with an overall risk ratio (RR) of 0.46 (95% CI = 0.38 to 0.55; P \&lt; 0.001) and ADEs with an overall RR of 0.66 (95% CI = 0.44 to 0.99; P = 0.045). This meta-analysis provides evidence that the use of the EHR can improve the quality of healthcare delivered to patients by reducing medication errors and ADEs (Campanella et al., 2016).
"></rationale>
   <clinicalRecommendationStatement value="The Joint Commission's 2023 Ambulatory Health Care National Patient Safety Goals guide clinicians to maintain and communicate accurate patient medication information (2023). Specifically, the section NPSG.03.06.01 &quot;Maintain and communicate accurate patient medication information&quot; states the following: &quot;Obtain and/or update information on the medications the patient is currently taking. This information is documented in a list or other format that is useful to those who manage medication. Compare the medication information the patient brought to the organization with the medications ordered for the patient by the organization in order to identify and resolve discrepancies.&quot;

The Joint Commission's 2023 Hospital National Patient Safety Goals also addressed documenting current medications (2023). Specifically, the section NPSG.03.06.01 &quot;Maintain and communicate accurate patient information&quot; states the following: &quot;Obtain information on the medications the patient is currently taking when they are admitted to the hospital or is seen in an outpatient setting. This information is documented in a list or other format that is useful to those who manage medications.&quot;

The National Quality Forum's Safe Practices for Better Healthcare (2010), states the following: &quot;The healthcare organization must develop, reconcile, and communicate an accurate patient medication list throughout the continuum of care.&quot;
"></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="Encounter"></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-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>
      <description value="Percentage of visits for which the eligible clinician attests to documenting a list of current medications using all immediate resources available on the date of the encounter
"></description>
      <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="All visits occurring during the 12-month 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="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="Eligible clinician attests to documenting the patient's current medications using all immediate resources available on the date of the encounter
"></description>
         <criteria>
            <language value="text/cql-identifier"></language>
            <expression value="Numerator"></expression>
         </criteria>
      </population>
      <population id="DenominatorException_1">
         <code>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
               <code value="denominator-exception"></code>
               <display value="Denominator Exception"></display>
            </coding>
         </code>
         <description value="Documentation of acute health crisis where time is of the essence and delay of treatment would jeopardize the patient's health status
"></description>
         <criteria>
            <language value="text/cql-identifier"></language>
            <expression value="Denominator Exceptions"></expression>
         </criteria>
      </population>
   </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>