<?xml version="1.0" encoding="UTF-8"?>

<Measure xmlns="http://hl7.org/fhir">
  <id value="CMS832FHIRHHAKI"/>
  <meta>
    <profile value="http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablemeasure"/>
    <profile value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm"/>
    <profile value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/publishable-measure-cqfm"/>
    <profile value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/executable-measure-cqfm"/>
    <profile value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cql-measure-cqfm"/>
    <profile value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/elm-measure-cqfm"/>
    <profile value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/proportion-measure-cqfm"/>
  </meta>
  <text>
    <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml">
  <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">Hospital Harm - Acute Kidney InjuryFHIR
</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">CMS832FHIR</td>


</tr>



  
<tr>


<th scope="row" class="row-header">GUID (Version Independent)</th>



<td class="content-container">urn:uuid:ceeb6884-0dc4-4f4d-be48-01a6a998b8d2</td>


</tr>



  
<tr>


<th scope="row" class="row-header">GUID (Version Specific)</th>



<td class="content-container">urn:uuid:a163adf2-7e72-4276-857e-4de5115b6bf3</td>


</tr>



  
    
    
<tr>


<th scope="row" class="row-header">CMS Identifier</th>



<td class="content-container">832FHIR</td>


</tr>

  


  
    
    
<tr>


<th scope="row" class="row-header">CMS Consensus Based Entity Identifier</th>



<td class="content-container">3713e</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;amp; Medicaid Services (CMS)</td>


</tr>






<tr>


<th scope="row" class="row-header">Developer</th>



<td class="content-container">Mathematica</td>


</tr>






<tr>


<th scope="row" class="row-header">Description</th>



<td class="content-container"><div><p>The measure assesses the number of inpatient hospitalizations for patients age 18 and older who have an acute kidney injury (AKI) stage 2 or greater that occurred during the encounter. AKI stage 2 or greater is defined as a substantial increase in serum creatinine value, or by the initiation of kidney dialysis (continuous renal replacement therapy (CRRT), hemodialysis, or peritoneal dialysis).</p>
</div></td>


</tr>



<tr>


<th scope="row" class="row-header">Copyright</th>



<td class="content-container"><div><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. Mathematica disclaims all liability for use or accuracy of any third-party codes contained in the specifications.</p>
<p>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. ICD-10 copyright 2024 World Health Organization. All Rights Reserved.</p>
</div></td>


</tr>


<tr>


<th scope="row" class="row-header">Disclaimer</th>



<td class="content-container"><div><p>This performance measure is not a clinical guideline and does not establish a standard of medical care, and has not been tested for all potential applications.</p>
<p>THE MEASURES AND SPECIFICATIONS ARE PROVIDED &quot;AS IS&quot; 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>
</div></td>


</tr>













<tr>


<th scope="row" class="row-header">Rationale</th>



<td class="content-container"><div><p>This measure focuses on stage 2 or greater acute kidney injury as an outcome in the hospital inpatient setting. The incidence of AKI in general hospitalized patients is 10%-20%, and among critically ill patients, the incidence of AKI has been reported as high as 45-50%; in cardiac surgery patients it ranges from 30%-50% (Thongprayoon et al., 2020). Less severe acute kidney injury and acute kidney injury requiring dialysis affect approximately 2,000 to 3,000 and 200 to 300 per million population per year, respectively. Acute kidney injury may result in the need for dialysis, and is associated with an increased risk of mortality (Schwager et al., 2023; Wilson et al., 2013).</p>
<p>&lt;br /&gt;</p>
<p>While not all instances of acute kidney injury are avoidable and may be due to natural progression of underlying illness or a complication of a necessary treatment such as chemotherapy, a proportion of acute kidney injury cases are preventable and treatable. The Kidney Disease: Improving Global Outcomes (KDIGO) guidelines suggest careful management of hemodynamic status, fluids, and vasoactive medications for the prevention of acute kidney injury (KDIGO, 2012). Several studies identified through systematic literature searches developed or evaluated the effectiveness of acute kidney injury electronic alert systems (Schwager et al., 2023; Selby et al., 2012; Ahmed et al., 2015; Porter et al., 2014; Wilson et al., 2014; Kirkendall et al., 2014; Cho et al., 2012). These studies used data elements for defining acute kidney injury that were already present and populated in the electronic health record (EHR). For acute kidney injury diagnosis, all except two were limited to using serum creatinine levels, suggesting that this is the most reliable and consistently available electronic data element for defining acute kidney injury.</p>
</div></td>


</tr>


<tr>


<th scope="row" class="row-header">Clinical Recommendation Statement</th>



<td class="content-container"><div><p>Serum creatinine is an accepted proxy for AKI (Ostermann et al., 2020; KDIGO, 2012). It is cited by many guidelines for defining and monitoring AKI (Lameire et al., 2021; Ostermann et al., 2020; Lopes &amp; Jorge, 2013; KDIGO, 2012). eGFR equations that incorporate creatinine and cystatin C but omit race are more accurate and lead to smaller differences between Black participants and non-Black participants than new equations without race with either creatinine or cystatin C alone (Inker et al., 2021). As a result, a new race-neutral eGFR equation that measures serum creatinine or cystatin C incorporates age, sex, and race to estimate measured GFR has been developed and is recommended by the Task Force from the National Kidney Foundation and American Society of Nephrology (Inker et al., 2021; Diao et al., 2021; Delgado et al., 2021; Delgado et al., 2022). It was recommended by the Task Force to use within the measure a Chronic Kidney Disease Epidemiology Collaboration (CKD-EPI) creatinine equation refit without the race variable. This functionality has been available to all laboratories in the United States (Delgado et al., 2021; Delgado et al., 2022), and has acceptable performance characteristics and potential consequences that do not disproportionately affect any one group of individuals.</p>
<p>&lt;br /&gt;</p>
<p>The KDIGO offers clinical practice guidelines for preventing and managing AKI:</p>
<p>&lt;br /&gt;</p>
<p>FLUIDS 3.1.1: In the absence of hemorrhagic shock, we suggest using isotonic crystalloids rather than colloids (albumin or starches) as initial management for expansion of intravascular volume in patients at risk for acute kidney injury or with acute kidney injury. (Level 2, grade B)</p>
<p>&lt;br /&gt;</p>
<p>VASOPRESSORS 3.1.2: We recommend the use of vasopressors in conjunction with fluids in patients with vasomotor shock with, or at risk for, acute kidney injury. (Level 1, grade C)</p>
<p>&lt;br /&gt;</p>
<p>PROTOCOLIZED HEMODYNAMIC MANAGEMENT 3.1.3: We suggest using protocol-based management of hemodynamic and oxygenation parameters to prevent development or worsening of acute kidney injury in high-risk patients in the perioperative setting (2C) or in patients with septic shock. (Level 2, grade C)</p>
<p>&lt;br /&gt;</p>
<p>KDIGO held a follow-up conference in April of 2019 to review key relevant literature published since the 2012 KDIGO clinical practice recommendations (Ostermann et al., 2020). The effectiveness of the 2012 KDIGO recommendations in preventing AKI was also noted to have been confirmed in small single-center randomized controlled trials (RCTs), such as the Prevention of AKI (PrevAKI) and the Biomarker Guided Intervention for Prevention of AKI (BigpAK) studies (Meersch et al., 2017; Gocze et al., 2018). In addition, results of RCTs have provided new data relevant to several facets of preventing and managing AKI, including early resuscitation, fluid therapy, prevention of contrast-associated AKI, and timing of acute renal replacement therapy (RRT) (Kellum et al., 2016; Nijssen et al., 2017; Self et al., 2018; Zarbock et al, 2016; Gaudry et al., 2016; Barbar et al., 2018).</p>
</div></td>


</tr>



<tr>
  
  
  
  

<th scope="row" class="row-header">Citation</th>


  
  
  
  <td class="content-container">
    
    
    
    <div><p>Ahmed, A., Vairavan, S., Akhoundi, A., Wilson, G., Chiofolo, C., Chbat, N., &amp; Kashani, K. (2015). Development and validation of electronic surveillance tool for acute kidney injury: A retrospective analysis. Journal of Critical Care, 30(5), 988-993. https://doi.org/10.1016/j.jcrc.2015.05.007</p>
</div>
    
    
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

<th scope="row" class="row-header">Citation</th>


  
  
  
  <td class="content-container">
    
    
    
    <div><p>Barbar, S.D., Clere-Jehl, R., Bourredjem, A., Hernu, R., Montin,i F., Bruyere, R., Lebert, C., Bohe, J., Badie, J., Erald,i J.P., Rigaud, J.P., Levy, B., Siam,i S., Louis, G., Bouadma, L., Constantin, J.M., Mercier, E., Klouche, K., du Cheyron, D., ... Quenot, J.P. (2018). IDEAL-ICU Trial Investigators and the CRICS TRIGGERSEP Network. Timing of renal-replacement therapy in patients with acute kidney injury and sepsis. The New England Journal of Medicine, 379(15), 1431-1442. https://doi.org/10.1056/NEJMoa1803213</p>
</div>
    
    
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

<th scope="row" class="row-header">Citation</th>


  
  
  
  <td class="content-container">
    
    
    
    <div><p>Cho, A., Lee, J.E., Yoon, J.Y., Jang, H.R., Huh, W., Kim, Y.G., &amp; Oh, H.Y. (2012). Effect of an electronic alert on risk of contrast-induced acute kidney injury in hospitalized patients undergoing computed tomography. American Journal of Kidney Diseases, 60(1), 74-81. http://dx.doi.org/10.1053/j.ajkd.2012.02.331</p>
</div>
    
    
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

<th scope="row" class="row-header">Citation</th>


  
  
  
  <td class="content-container">
    
    
    
    <div><p>Delgado, C., Baweja, M., Crews, D.C., Eneanya, N.D., Gadegbeku, C.A., Inker, L.A., Mendu, M L., Miller, W.G., Moxey-Mims, M.M., Roberts, G.V., St Peter, W.L., Warfield, C., &amp; Powe, N.R. (2021). A unifying approach for GFR estimation: Recommendations of the NKF-ASN task force on reassessing the inclusion of race in diagnosing kidney disease. Journal of the American Society of Nephrology, 32(12), 2994-3015. https://doi.org/10.1681/ASN.2021070988</p>
</div>
    
    
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

<th scope="row" class="row-header">Citation</th>


  
  
  
  <td class="content-container">
    
    
    
    <div><p>Delgado, C., Baweja, M., Crews, D.C., Eneanya, N.D., Gadegbeku, C.A., Inker, L.A., Mendu, M.L., Miller, W.G., Moxey-Mims, M.M., Roberts, G.V., St Peter, W.L., Warfield, C., &amp; Powe, N.R. (2022). A unifying approach for GFR estimation: Recommendations of the NKF-ASN task force on reassessing the inclusion of race in diagnosing kidney disease. American Journal of Kidney Diseases, 79(2), 268-288.e1. https://doi.org/10.1053/j.ajkd.2021.08.003</p>
</div>
    
    
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

<th scope="row" class="row-header">Citation</th>


  
  
  
  <td class="content-container">
    
    
    
    <div><p>Diao, J.A., Inker, L.A., Levey, A.S., Tighiouart, H., Powe, N.R., &amp; Manrai, A.K. (2021). In search of a better equation - Performance and equity in estimates of kidney function. The New England Journal of Medicine, 384(5), 396-399. https://doi.org/10.1056/NEJMp2028243</p>
</div>
    
    
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

<th scope="row" class="row-header">Citation</th>


  
  
  
  <td class="content-container">
    
    
    
    <div><p>Gaudry, S., Hajage, D., Schortgen, F., Martin-Lefevre, L., Pons, B., Boulet, E., Boyer, A., Chevrel, G., Lerolle, N., Carpentier, D., de Prost, N., Lautrette, A., Bretagnol, A., Mayaux, J., Nseir, S., Megarbane, B., Thirion, M., Forel, J.M., Maize,l J., ... Dreyfuss, D. (2016). Initiation strategies for renal-replacement therapy in the intensive care unit. New England Journal of Medicine, 375(2), 122-133. https://doi.org/10.1056/NEJMoa1603017</p>
</div>
    
    
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

<th scope="row" class="row-header">Citation</th>


  
  
  
  <td class="content-container">
    
    
    
    <div><p>Gocze, I., Jauch, D., Gotz, M., Kennedy, P., Jung, B., Zeman, F., Gnewuch, C., Graf, B. M., Gnann, W., Banas, B., Bein, T., Schlitt, H. J., &amp; Bergler, T. (2018). Biomarker-guided intervention to prevent acute kidney injury after major surgery: The prospective randomized BigpAK study. Annals of Surgery, 267(6), 1013-1020. https://doi.org/10.1097/SLA.0000000000002485</p>
</div>
    
    
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

<th scope="row" class="row-header">Citation</th>


  
  
  
  <td class="content-container">
    
    
    
    <div><p>Inker, L.A., Eneanya, N.D., Coresh, J., Tighiouart, H., Wang, D., Sang, Y., Crews, D.C., Doria, A., Estrella, M.M., Froissart, M., Grams, M.E., Greene, T., Grubb, A., Gudnason, V., Gutierrez, O.M., Kalil, R., Karger, A.B., Mauer, M., Navis, G., ... Levey, A.S. (2021). New creatinine- and cystatin c-based equations to estimate GFR without race. New England Journal of Medicine, 385(19), 1737-1749. https://doi.org/10.1056/NEJMoa2102953</p>
</div>
    
    
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

<th scope="row" class="row-header">Citation</th>


  
  
  
  <td class="content-container">
    
    
    
    <div><p>Kellum, J.A., Chawla, L.S., Keener, C., Singbartl, K., Palevsky, P.M., Pike, F.L., Yealy, D.M., Huang, D.T., Angus, D.C., &amp; ProCESS and ProGReSS-AKI Investigators. (2016). The effects of alternative resuscitation strategies on acute kidney injury in patients with septic shock. American Journal of Respiratory and Critical Care Medicine, 193(3), 281-287. https://doi.org/10.1164/rccm.201505-0995OC</p>
</div>
    
    
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

<th scope="row" class="row-header">Citation</th>


  
  
  
  <td class="content-container">
    
    
    
    <div><p>Kidney Disease: Improving Global Outcomes (KDIGO) Acute Kidney Injury Work Group. (2012). KDIGO 2012 clinical practice guideline for acute kidney injury. Kidney International, Supplements, 2(1), 1-141. doi:10.1038/kisup.2012.2</p>
</div>
    
    
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

<th scope="row" class="row-header">Citation</th>


  
  
  
  <td class="content-container">
    
    
    
    <div><p>Kirkendall, E.S., Spires, W.L., Mottes, T.A., Schaffzin, J.K., Barclay, C., &amp; Goldstein, S.L. (2014). Development and performance of electronic acute kidney injury triggers to identify pediatric patients at risk for nephrotoxic medication-associated harm. Applied Clinical Informatics, 5(2), 313-333. https://doi.org/10.4338/ACI-2013-12-RA-0102</p>
</div>
    
    
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

<th scope="row" class="row-header">Citation</th>


  
  
  
  <td class="content-container">
    
    
    
    <div><p>Lameire, N.H., Levin, A., Kellum, J.A., Cheung, M., Jadoul, M., Winkelmayer, W.C., Stevens, P.E., &amp; Conference Participants. (2021). Harmonizing acute and chronic kidney disease definition and classification: report of a Kidney Disease: Improving Global Outcomes (KDIGO) Consensus Conference. Kidney International, 100(3), 516-526. https://doi.org/10.1016/j.kint.2021.06.028</p>
</div>
    
    
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

<th scope="row" class="row-header">Citation</th>


  
  
  
  <td class="content-container">
    
    
    
    <div><p>Lopes, J.A., &amp; Jorge, S. (2013). The RIFLE and AKIN classifications for acute kidney injury: A critical and comprehensive review. Clinical Kidney Journal, 6(1), 8-14. https://doi.org/10.1093/ckj/sfs160</p>
</div>
    
    
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

<th scope="row" class="row-header">Citation</th>


  
  
  
  <td class="content-container">
    
    
    
    <div><p>Meersch, M., Schmidt, C., Hoffmeier, A., Van Aken, H., Wempe, C., Gerss, J., &amp; Zarbock, A. (2017). Prevention of cardiac surgery-associated AKI by implementing the KDIGO guidelines in high risk patients identified by biomarkers: the PrevAKI randomized controlled trial. Intensive Care Medicine, 43(11), 1551-1561. https://doi.org/10.1007/s00134-016-4670-3</p>
</div>
    
    
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

<th scope="row" class="row-header">Citation</th>


  
  
  
  <td class="content-container">
    
    
    
    <div><p>Nijssen, E.C., Rennenberg, R.J., Nelemans, P.J., Essers, B.A., Janssen, M.M., Vermeeren, M.A., Ommen, V.V., &amp; Wildberger, J.E. (2017). Prophylactic hydration to protect renal function from intravascular iodinated contrast material in patients at high risk of contrast-induced nephropathy (AMACING): a prospective, randomised, phase 3, controlled, open-label, non-inferiority trial. Lancet, 389(10076), 1312-1322. https://doi.org/10.1016/S0140-6736(17)30057-0</p>
</div>
    
    
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

<th scope="row" class="row-header">Citation</th>


  
  
  
  <td class="content-container">
    
    
    
    <div><p>Ostermann, M., Bellomo, R., Burdmann, E.A., Doi, K., Endre, Z.H., Goldstein, S.L., Kane-Gill, S.L., Liu, K.D., Prowle, J.R., Shaw, A.D., Srisawat, N., Cheung, M., Jadoul, M., Winkelmayer, W.C., Kellum, J.A., &amp; Conference Participants. (2020). Controversies in acute kidney injury: conclusions from a Kidney Disease: Improving Global Outcomes (KDIGO) Conference. Kidney international, 98(2), 294-309. https://doi.org/10.1016/j.kint.2020.04.020</p>
</div>
    
    
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

<th scope="row" class="row-header">Citation</th>


  
  
  
  <td class="content-container">
    
    
    
    <div><p>Porter, C.J., Juurlink, I., Bisset, L.H., Bavakunji, R., Mehta, R.L., &amp; Devonald, M.A. (2014). A real-time electronic alert to improve detection of acute kidney injury in a large teaching hospital. Nephrology Dialysis Transplantation, 29(10), 1888-1893. https://doi.org/10.1093/ndt/gfu082</p>
</div>
    
    
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

<th scope="row" class="row-header">Citation</th>


  
  
  
  <td class="content-container">
    
    
    
    <div><p>Schwager, E., Ghosh, E., Eshelman, L., Pasupathy, K.S., Barreto, E.F., &amp; Kashani, K. (2023). Accurate and interpretable prediction of ICU-acquired AKI. Journal of Critical Care, 75, 154278. https://doi.org/10.1016/j.jcrc.2023.154278</p>
</div>
    
    
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

<th scope="row" class="row-header">Citation</th>


  
  
  
  <td class="content-container">
    
    
    
    <div><p>Selby, N.M., Crowley, L., Fluck, R.J., McIntyre, C.W., Monaghan, J., Lawson, N., &amp; Kolhe, N.V. (2012). Use of electronic results reporting to diagnose and monitor AKI in hospitalized patients. Clinical Journal of The American Society of Nephrology, 7(4), 533-540. https://doi.org/10.2215/cjn.08970911</p>
</div>
    
    
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

<th scope="row" class="row-header">Citation</th>


  
  
  
  <td class="content-container">
    
    
    
    <div><p>Self, W.H., Semler, M.W., Wanderer, J.P., Wang, L., Byrne, D.W., Collins, S.P., Slovis, C.M., Lindsell, C.J., Ehrenfeld, J.M., Siew, E.D., Shaw, A.D., Bernard, G.R., Rice, T.W., &amp; SALT-ED Investigators. (2018). Balanced crystalloids versus saline in noncritically ill adults. The New England Journal of Medicine, 378(9), 819-828. https://doi.org/10.1056/NEJMoa1711586</p>
</div>
    
    
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

<th scope="row" class="row-header">Citation</th>


  
  
  
  <td class="content-container">
    
    
    
    <div><p>Thongprayoon, C., Hansrivijit, P., Kovvuru, K., Kanduri, S.R., Torres-Ortiz, A., Acharya, P., Gonzalez-Suarez, M.L., Kaewput, W., Bathini, T., &amp; Cheungpasitporn, W. (2020). Diagnostics, risk factors, treatment and outcomes of acute kidney injury in a new paradigm. Journal of Clinical Medicine. 9(4), 1104. https://doi.org/10.3390/jcm9041104</p>
</div>
    
    
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

<th scope="row" class="row-header">Citation</th>


  
  
  
  <td class="content-container">
    
    
    
    <div><p>Wilson, F. P., Yang, W., &amp; Feldman, H.I. (2013). Predictors of death and dialysis in severe AKI: The UPHS-AKI cohort. Clinical Journal of the American Society of Nephrology, 8(4), 527-537. https://doi.org/10.2215/cjn.06450612</p>
</div>
    
    
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

<th scope="row" class="row-header">Citation</th>


  
  
  
  <td class="content-container">
    
    
    
    <div><p>Wilson, F.P., Reese, P.P., Shashaty, M.G., Ellenberg, S.S., Gitelman, Y., Bansal, A.D., &amp; Fuchs, B. (2014). A trial of in-hospital, electronic alerts for acute kidney injury: Design and rationale. Clinical Trials, 11(5), 521-529. https://doi.org/10.1177/1740774514542619</p>
</div>
    
    
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

<th scope="row" class="row-header">Citation</th>


  
  
  
  <td class="content-container">
    
    
    
    <div><p>Zarbock, A., Kellum, J.A., Schmidt, C., Van Aken, H., Wempe, C., Pavenstadt, H., Boanta, A., Ger, J., &amp; Meersch, M. (2016). Effect of early vs delayed initiation of renal replacement therapy on mortality in critically ill patients with acute kidney injury: The ELAIN Randomized Clinical Trial. Journal of the American Medical Association, 315(20), 2190-2199. https://doi.org/10.1001/jama.2016.5828</p>
</div>
    
    
    
    
    
    
    
  </td>
</tr>







<tr>


<th scope="row" class="row-header">Guidance (Usage)</th>



<td class="content-container">A patient characteristic of male or female sex is required as part of the initial population criteria, as sex is crucial to this measure. For example:

&lt;br /&gt;

* The eGFR estimating equation that is used to identify AKI is sex-specific; and

* The reference ranges for the serum creatinine value are sex-specific, which matters because the serum creatinine must rise to a sex-specific abnormal value to be flagged as AKI.

  &lt;br /&gt;

Exclude encounters that do not have at least two serum creatine values within 48 hours of arrival. Two values are needed within this timeframe to determine if the patient has AKI or moderate-to-severe renal dysfunction on arrival.

&lt;br /&gt;

For encounters for patients without harm, as identified by 2 times increase in serum creatinine, query for initiation of renal dialysis during hospitalization, defined by the start of dialysis occurring during the encounter.

&lt;br /&gt;

* If dialysis starts more than 48 hours after the start of the encounter, this meets numerator criteria.

* If dialysis starts 48 hours or less after the start of the encounter, this meets denominator exclusion criteria.

&lt;br /&gt;

Encounters for patients with an increase in serum creatinine value of at least 0.3 between the index serum creatinine and any subsequent serum creatinine taken within 48 hours of the encounter start are excluded. Due to the variability of decimal precision within programming languages and calculation tools, the value of \&gt;=0.3 is expressed in the logic as \&gt;0.299.

&lt;br /&gt;

Note the measure is currently confined to using mg/dL as the unit of measurement for creatinine and mL/min as the unit of measurement for eGFR results.

&lt;br /&gt;

When reporting the first body temperature for risk adjustment, values from either Celsius or Fahrenheit readings are acceptable to report but Celsius readings are preferred.

&lt;br /&gt;

This dQM is an episode-based measure. An episode is defined as each inpatient hospitalization or encounter that ends during the measurement period.

&lt;br /&gt;

This FHIR-based measure has been derived from the QDM-based measure: CMS832v3. Please refer to the HL7 QI-Core Implementation Guide (https://hl7.org/fhir/us/qicore/STU6/) for more information on QI-Core and mapping recommendations from QDM to QI-Core STU 6 (https://hl7.org/fhir/us/qicore/STU6/qdm-to-qicore.html).
</td>


</tr>



  
  
  
    
    <tr>


<th colspan="2" scope="row" class="row-header">Measure Group (Rate) (ID: Group_1)</th>


</tr>
  
  
  
  
<tr>


<th scope="row" class="row-header">Basis</th>



<td class="content-container">Encounter</td>


</tr>



  
<tr>


<th scope="row" class="row-header">Scoring</th>



<td class="content-container">
    Proportion


</td>


</tr>





  
<tr>


<th scope="row" class="row-header">Improvement Notation</th>



<td class="content-container">
    Decreased score indicates improvement


</td>


</tr>






<tr>


<th scope="row" class="row-header">Type</th>



<td class="content-container">
    Outcome


</td>


</tr>



  
<tr>


<th scope="row" class="row-header">Rate Aggregation</th>



<td class="content-container">None
</td>


</tr>



  
  

    
      
        
  
    
    
    <tr>
      
        

<th scope="row" class="row-header">Initial Population</th>


      
      <td class="content-container">
        
        <em>ID</em>: InitialPopulation_1
        <br/>
        
        
          <em>Description</em>:
          <p style="white-space: pre-line" class="tab-one">Inpatient hospitalizations that end during the measurement period for patients 18 years of age or older without an obstetrical or pregnancy related condition, with a length of stay of 48 hours or longer, and who had at least one serum creatinine value after 48 hours from the start of the hospitalization
</p>
        
        
          
            
              
              <em>Criteria</em>: <a href="#Group_1-InitialPopulation_1">Initial Population</a> 
            
          
          
        
        
        
      </td>
    </tr>
  

      
    

    
      
        
  
    
    
    <tr>
      
        

<th scope="row" class="row-header">Denominator</th>


      
      <td class="content-container">
        
        <em>ID</em>: Denominator_1
        <br/>
        
        
          <em>Description</em>:
          <p style="white-space: pre-line" class="tab-one">Equals Initial Population
</p>
        
        
          
            
              
              <em>Criteria</em>: <a href="#Group_1-Denominator_1">Denominator</a> 
            
          
          
        
        
        
      </td>
    </tr>
  

      
    

    
      
        
  
    
    
    <tr>
      
        

<th scope="row" class="row-header">Denominator Exclusion</th>


      
      <td class="content-container">
        
        <em>ID</em>: DenominatorExclusion_1
        <br/>
        
        
          <em>Description</em>:
          <p style="white-space: pre-line" class="tab-one">Inpatient hospitalizations for patients with an increase in serum creatinine value of at least 0.3 mg/dL between the index serum creatinine and a subsequent serum creatinine taken within 48 hours of the encounter start.

Inpatient hospitalizations for patients with the index eGFR value of \&lt;60 mL/min within 48 hours of the encounter start.

Inpatient hospitalizations for patients who have less than two serum creatinine results within the first 48 hours of the encounter start.

Inpatient hospitalizations for patients who have kidney dialysis (CRRT, hemodialysis or peritoneal dialysis) initiated 48 hours or less after the encounter start, and who do not have evidence of a 2 times increase in serum creatinine.

Inpatient hospitalizations for patients with at least one specified diagnosis present on admission during the encounter that puts them at extremely high risk for AKI:

* &lt;br /&gt;

* Hemolytic Uremic Syndrome (HUS)

* &lt;br /&gt;

* Large Body Surface Area (BSA) Burns

* &lt;br /&gt;

* Traumatic Avulsion of Kidney

* &lt;br /&gt;

* Rapidly Progressive Nephritic Syndrome

* &lt;br /&gt;

* Thrombotic Thrombocytopenic Purpura

* &lt;br /&gt;

* Out of Hospital Cardiac Arrest (OHCA)

Inpatient hospitalizations for patients who have at least one specified procedure that starts during the encounter that puts them at extremely high risk for AKI:

* &lt;br /&gt;

* Extracorporeal membrane oxygenation (ECMO)

* &lt;br /&gt;

* Intra-Aortic Balloon Pump

* &lt;br /&gt;

* Resuscitative Endovascular Balloon Occlusion of the Aorta (REBOA)

* &lt;br /&gt;

* Nephrectomy

</p>
        
        
          
            
              
              <em>Criteria</em>: <a href="#Group_1-DenominatorExclusion_1">Denominator Exclusion</a> 
            
          
          
        
        
        
      </td>
    </tr>
  

      
    

    
      
    

    
      
        
  
    
    
    <tr>
      
        

<th scope="row" class="row-header">Numerator</th>


      
      <td class="content-container">
        
        <em>ID</em>: Numerator_1
        <br/>
        
        
          <em>Description</em>:
          <p style="white-space: pre-line" class="tab-one">Inpatient hospitalizations for patients who develop AKI stage 2 or greater during the encounter, as evidenced by:

A subsequent increase in serum creatinine value at least 2 times higher than the lowest serum creatinine value, and the increased value is greater than the highest sex-specific normal value for serum creatinine.

Or:

Kidney dialysis (CRRT, hemodialysis, or peritoneal dialysis) initiated more than 48 hours after the start of the encounter. Evidence of a 2 times increase in serum creatinine is not required.

Only one harm is counted per encounter.
</p>
        
        
          
            
              
              <em>Criteria</em>: <a href="#Group_1-Numerator_1">Numerator</a> 
            
          
          
        
        
        
      </td>
    </tr>
  

      
    

    
      
    

  


  







  
    
    
    
    
    
<tr>


<th scope="row" class="row-header"/>



<td class="content-container">&lt;p&gt;For every patient evaluated by this measure also identify payer, race, ethnicity and sex&lt;/p&gt;</td>


</tr>

  

  
    
    
    
    
    
<tr>


<th scope="row" class="row-header"/>



<td class="content-container">&lt;p&gt;Sex and Age&lt;/p&gt;
&lt;p&gt;First vital signs since the encounter start:&lt;/p&gt;
&lt;ul&gt;
 &lt;li&gt;Heart Rate: {Beats}/min&lt;/li&gt;
 &lt;li&gt;Respiratory Rate: {Breaths}/min&lt;/li&gt;
 &lt;li&gt;Systolic Blood Pressure: mm[Hg]&lt;/li&gt;
 &lt;li&gt;Temperature: Cel [degF]&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The estimated glomerular filtration rate (eGFR) is calculated using the index serum creatinine, patient sex, and age-based formula.&lt;/p&gt;
&lt;p&gt;Patient sex collected for risk adjustment and to calculate the eGFR is determined by the &quot;Federal Administrative Sex&quot; value set, which is also used to derive the supplemental data element of patient sex for the measure.&lt;/p&gt;
&lt;p&gt;All encounter diagnoses along with their present on admission (POA) indicators are being collected for the development of baseline risk adjustment model with initial focus on any encounter diagnoses captured for:&lt;/p&gt;
&lt;ul&gt;
 &lt;li&gt;Cancer (leukemia, lymphoma, or metastatic cancer)&lt;/li&gt;
 &lt;li&gt;Diabetes&lt;/li&gt;
 &lt;li&gt;Heart failure&lt;/li&gt;
 &lt;li&gt;Hypertension&lt;/li&gt;
 &lt;li&gt;Obesity&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Encounter length of stay (days)&lt;/p&gt;
&lt;p&gt;Please see the included Hospital Harm - Acute Kidney Injury Risk Adjustment Methodology Report.&lt;/p&gt;</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/>
      
    
    
      
        
          <em>Usage Code</em>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}">Supplemental Data</span>
        
        <br/>
      
    
    
      <em>Description</em>: SDE Ethnicity

    
    
      
        <br/>
        
          
          <em>Logic Definition</em>: <a href="#cms832fhirhhaki-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/>
      
    
    
      
        
          <em>Usage Code</em>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}">Supplemental Data</span>
        
        <br/>
      
    
    
      <em>Description</em>: SDE Payer

    
    
      
        <br/>
        
          
          <em>Logic Definition</em>: <a href="#cms832fhirhhaki-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/>
      
    
    
      
        
          <em>Usage Code</em>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}">Supplemental Data</span>
        
        <br/>
      
    
    
      <em>Description</em>: SDE Race

    
    
      
        <br/>
        
          
          <em>Logic Definition</em>: <a href="#cms832fhirhhaki-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/>
      
    
    
      
        
          <em>Usage Code</em>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}">Supplemental Data</span>
        
        <br/>
      
    
    
      <em>Description</em>: SDE Sex

    
    
      
        <br/>
        
          
          <em>Logic Definition</em>: <a href="#cms832fhirhhaki-sde-sex">SDE Sex</a> 
        
      
    
  </td>
</tr>

<tr>
  

<th scope="row" class="row-header">Supplemental Data Element</th>


  <td class="content-container">
    
      <em>ID</em>: risk-variable-estimated-glomerular-filtration-rate-for-females
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}">Supplemental Data</span>
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Estimated Glomerular Filtration Rate For Females

    
    
      
        <br/>
        
          
          <em>Logic Definition</em>: <a href="#cms832fhirhhaki-risk-variable-estimated-glomerular-filtration-rate-for-females">Risk Variable Estimated Glomerular Filtration Rate For Females</a> 
        
      
    
  </td>
</tr>

<tr>
  

<th scope="row" class="row-header">Supplemental Data Element</th>


  <td class="content-container">
    
      <em>ID</em>: risk-variable-estimated-glomerular-filtration-rate-for-males
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}">Supplemental Data</span>
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Estimated Glomerular Filtration Rate For Males

    
    
      
        <br/>
        
          
          <em>Logic Definition</em>: <a href="#cms832fhirhhaki-risk-variable-estimated-glomerular-filtration-rate-for-males">Risk Variable Estimated Glomerular Filtration Rate For Males</a> 
        
      
    
  </td>
</tr>

<tr>
  

<th scope="row" class="row-header">Supplemental Data Element</th>


  <td class="content-container">
    
      <em>ID</em>: risk-variable-all-encounter-diagnoses-with-poa-indication
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}">Supplemental Data</span>
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable All Encounter Diagnoses With POA Indication

    
    
      
        <br/>
        
          
          <em>Logic Definition</em>: <a href="#cms832fhirhhaki-risk-variable-all-encounter-diagnoses-with-poa-indication">Risk Variable All Encounter Diagnoses With POA Indication</a> 
        
      
    
  </td>
</tr>

<tr>
  

<th scope="row" class="row-header">Supplemental Data Element</th>


  <td class="content-container">
    
      <em>ID</em>: risk-variable-first-heart-rate-in-encounter
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}">Supplemental Data</span>
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable First Heart Rate In Encounter

    
    
      
        <br/>
        
          
          <em>Logic Definition</em>: <a href="#cms832fhirhhaki-risk-variable-first-heart-rate-in-encounter">Risk Variable First Heart Rate In Encounter</a> 
        
      
    
  </td>
</tr>

<tr>
  

<th scope="row" class="row-header">Supplemental Data Element</th>


  <td class="content-container">
    
      <em>ID</em>: risk-variable-first-respiratory-rate-in-encounter
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}">Supplemental Data</span>
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable First Respiratory Rate In Encounter

    
    
      
        <br/>
        
          
          <em>Logic Definition</em>: <a href="#cms832fhirhhaki-risk-variable-first-respiratory-rate-in-encounter">Risk Variable First Respiratory Rate In Encounter</a> 
        
      
    
  </td>
</tr>

<tr>
  

<th scope="row" class="row-header">Supplemental Data Element</th>


  <td class="content-container">
    
      <em>ID</em>: risk-variable-first-systolic-blood-pressure-in-encounter
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}">Supplemental Data</span>
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable First Systolic Blood Pressure In Encounter

    
    
      
        <br/>
        
          
          <em>Logic Definition</em>: <a href="#cms832fhirhhaki-risk-variable-first-systolic-blood-pressure-in-encounter">Risk Variable First Systolic Blood Pressure In Encounter</a> 
        
      
    
  </td>
</tr>

<tr>
  

<th scope="row" class="row-header">Supplemental Data Element</th>


  <td class="content-container">
    
      <em>ID</em>: risk-variable-first-temperature-in-encounter
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}">Supplemental Data</span>
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable First Temperature In Encounter

    
    
      
        <br/>
        
          
          <em>Logic Definition</em>: <a href="#cms832fhirhhaki-risk-variable-first-temperature-in-encounter">Risk Variable First Temperature In Encounter</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"><code>https://madie.cms.gov/Library/CMS832FHIRHHAKI</code></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/>
    <em><a href="#definitions">Logic Definitions</a></em>
    <br/>
    <em><a href="#terminology">Terminology</a></em>
    <br/>
    <em><a href="#dependencies">Dependencies</a></em>
    <br/>
    <em><a href="#data-requirements">Data Requirements</a></em>
    <br/>
    <em><a href="#parameters">Parameters</a></em>
    <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">
    
    Initial Population
    
  </th>
</tr>
<tr>

  <td>
    
    
    
    
      
      <a name="Group_1-InitialPopulation_1"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Initial Population&quot;:
  &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot;</code></pre>
    
      
      <a href="#cms832fhirhhaki-initial-population"><em>Definition</em></a>
    
  </td>

</tr>

          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
      
    
  

      
    

    
      
          
    
      
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
            
              
            
            
            
            <tr>
  <th scope="row" rowspan="2" class="row-header">
    
    Denominator
    
  </th>
</tr>
<tr>

  <td>
    
    
    
    
      
      <a name="Group_1-Denominator_1"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Denominator&quot;:
  &quot;Initial Population&quot;</code></pre>
    
      
      <a href="#cms832fhirhhaki-denominator"><em>Definition</em></a>
    
  </td>

</tr>

          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
      
    
  

      
    

    
      
          
    
      
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
            
              
            
            
            
            <tr>
  <th scope="row" rowspan="2" class="row-header">
    
    Denominator Exclusion
    
  </th>
</tr>
<tr>

  <td>
    
    
    
    
      
      <a name="Group_1-DenominatorExclusion_1"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Denominator Exclusion&quot;:
  &quot;Encounter With Less Than 2 Creatinine Results Within 48 Hours Of Arrival&quot;
    union &quot;Encounter With Index eGFR Less Than 60 Within First 48 Hours&quot;
    union &quot;Encounter With 0.3 mg dL Or More Increase In Creatinine&quot;
    union &quot;Encounter With Kidney Dialysis Started 48 Hours Or Less After Arrival Without High Creatinine&quot;
    union &quot;Encounter With High Risk Diagnosis For AKI&quot;
    union &quot;Encounter With High Risk Procedures For AKI&quot;</code></pre>
    
      
      <a href="#cms832fhirhhaki-denominator-exclusion"><em>Definition</em></a>
    
  </td>

</tr>

          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
      
    
  

      
    

    
      
    

    
      
          
    
      
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
            
              
            
            
            
            <tr>
  <th scope="row" rowspan="2" class="row-header">
    
    Numerator
    
  </th>
</tr>
<tr>

  <td>
    
    
    
    
      
      <a name="Group_1-Numerator_1"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Numerator&quot;:
  &quot;Encounter With 2 Times Serum Creatinine Increase&quot;
    union &quot;Encounter With Kidney Dialysis Started More Than 48 Hours After Arrival Without High Creatinine&quot;</code></pre>
    
      
      <a href="#cms832fhirhhaki-numerator"><em>Definition</em></a>
    
  </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">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> SupplementalDataElements</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="supplementaldataelements-sde-race"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;SDE Race&quot;:
  (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">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> SupplementalDataElements</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="supplementaldataelements-sde-sex"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">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</code></pre>
  </td>

</tr>



        



        



        



        



        



        



        



        



        



        



        



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> SupplementalDataElements</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="supplementaldataelements-sde-payer"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;SDE Payer&quot;:
  [USQualityCore.Coverage: type in &quot;Payer Type&quot;] Payer
    return {
      code: Payer.type,
      period: Payer.period
    }</code></pre>
  </td>

</tr>



        



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> SupplementalDataElements</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="supplementaldataelements-sde-ethnicity"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;SDE Ethnicity&quot;:
  (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">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CQMCommon</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cqmcommon-hospitalizationwithobservation"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
@description: Hospitalization with Observation returns the total interval from the start of any immediately prior emergency department visit through the observation visit to the discharge of the given encounter
*/
define fluent function hospitalizationWithObservation(TheEncounter Encounter ):
  TheEncounter Visit
  		let ObsVisit: Last([Encounter: &quot;Observation Services&quot;] LastObs
  				where LastObs.status = 'finished'
            and LastObs.period ends 1 hour or less on or before start of Visit.period
  				sort by end of period
  			),
  			VisitStart: Coalesce(start of ObsVisit.period, start of Visit.period),
  			EDVisit: Last([Encounter: &quot;Emergency Department Visit&quot;] LastED
  				where LastED.status = 'finished'
            and LastED.period ends 1 hour or less on or before VisitStart
  				sort by end of period
  			)
  		return Interval[Coalesce(start of EDVisit.period, VisitStart), end of Visit.period]</code></pre>
  </td>

</tr>



        



        



        



        



        



        



        



        



        



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CQMCommon</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cqmcommon-encounterdiagnosis"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*  
@description: Returns the Condition resources referenced by the diagnosis element of the Encounter  
*/
define fluent function encounterDiagnosis(Encounter Encounter ):
  Encounter.reasonReference D
    return singleton from (([ConditionEncounterDiagnosis] union [ConditionProblemsHealthConcerns]) C where D.references(C.id))</code></pre>
  </td>

</tr>



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        




        
        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="fhirhelpers-tostring"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToString(value string): value.value</code></pre>
  </td>

</tr>



        



        



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="fhirhelpers-tostring"> </a>
    
    <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">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="fhirhelpers-tointerval"> </a>
    
    <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.&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]</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="fhirhelpers-tostring"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToString(value EncounterStatus): value.value</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="fhirhelpers-todate"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToDate(value date): value.value</code></pre>
  </td>

</tr>



        



        



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="fhirhelpers-todatetime"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToDateTime(value dateTime): value.value</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="fhirhelpers-todatetime"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToDateTime(value instant): value.value</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="fhirhelpers-toquantity"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
@description: Converts the given FHIR [Quantity](https://hl7.org/fhir/datatypes.html#Quantity) 
value to a CQL Quantity
@comment: If the given quantity has a comparator specified, a runtime error is raised. If the given quantity
has a system other than UCUM (i.e. `http://unitsofmeasure.org`) or CQL calendar units (i.e. `http://hl7.org/fhirpath/CodeSystem/calendar-units`)
an error is raised. For UCUM to calendar units, the `ToCalendarUnit` function is used.
@seealso: ToCalendarUnit
*/
define function ToQuantity(quantity FHIR.Quantity):
    case
        when quantity is null then null
        when quantity.value is null then null
        when quantity.comparator is not null then
            Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')
        when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'
              or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then
            System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }
        else
            Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' &amp; quantity.unit.value &amp; ' (' &amp; quantity.system.value &amp; '|' &amp; quantity.code.value &amp; ')')
    end</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="fhirhelpers-tocalendarunit"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
@description: Converts a UCUM definite duration unit to a CQL calendar duration
unit using conversions specified in the [quantities](https://cql.hl7.org/02-authorsguide.html#quantities) 
topic of the CQL specification.
@comment: Note that for durations above days (or weeks), the conversion is understood to be approximate
*/
define function ToCalendarUnit(unit System.String):
    case unit
        when 'ms' then 'millisecond'
        when 's' then 'second'
        when 'min' then 'minute'
        when 'h' then 'hour'
        when 'd' then 'day'
        when 'wk' then 'week'
        when 'mo' then 'month'
        when 'a' then 'year'
        else unit
    end</code></pre>
  </td>

</tr>



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="fhirhelpers-tostring"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToString(value ObservationStatus): value.value</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="fhirhelpers-toconcept"> </a>
    
    <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 scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="fhirhelpers-tocode"> </a>
    
    <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">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="fhirhelpers-tostring"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToString(value ProcedureStatus): value.value</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="fhirhelpers-tostring"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToString(value ClaimStatus): value.value</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="fhirhelpers-tostring"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToString(value Use): value.value</code></pre>
  </td>

</tr>



        



        



        



        



        



        



        




        
        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> FHIRCommon</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="fhircommon-ext"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
@description: Returns the single extension (if present) on the given resource with the specified url.
@comment: This function uses singleton from to ensure that a run-time exception is thrown if there
is more than one extension on the given resource with the specified url.
*/
define fluent function ext(domainResource DomainResource, url String):
  singleton from domainResource.exts(url)</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> FHIRCommon</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="fhircommon-exts"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
@description: Returns any extensions defined on the given resource with the specified url
*/
define fluent function exts(domainResource DomainResource, url String):
  domainResource.extension E
    where E.url = url
    return E</code></pre>
  </td>

</tr>



        



        



        



        



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> FHIRCommon</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="fhircommon-earliest"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
@description: Given an interval, return the starting point if the interval has a starting boundary specified,
otherwise, return the ending point
*/
define fluent function earliest(choice Choice&lt;FHIR.dateTime, FHIR.Period, FHIR.Age, FHIR.Range&gt;):
  (choice.toInterval()) period
    return
      if (period.hasStart()) then start of period
      else end of period</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> FHIRCommon</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="fhircommon-tointerval"> </a>
    
    <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 FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instance, FHIR.string, FHIR.Age, or FHIR.Range 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 FHIR, allowing this function to be used across any resource.

The input can be provided as a dateTime, Period, Timing, instant, string, Age, or Range.
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 Period, the result is a DateTime Interval.
If the input is a Timing, an error is raised indicating a single interval cannot be computed from a Timing.
If the input is an instant, the result is a DateTime Interval beginning and ending on that instant.
If the input is a string, an error is raised indicating a single interval cannot be computed from a string.
If the input is an Age, the result is a DateTime Interval beginning when the patient was the given Age,
and ending immediately prior to when the patient was the given Age plus one year.
If the input is a Range, the result is a DateTime Interval beginning when the patient was the Age given
by the low end of the Range, and ending immediately prior to when the patient was the Age given by the
high end of the Range plus one year.

NOTE: Due to the
complexity of determining a single interval from a Timing or String type, this function will throw a run-time exception if it is used
with a Timing or String.
*/
define fluent function toInterval(choice Choice&lt;FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instant, FHIR.string, FHIR.Age, FHIR.Range&gt;):
  case
    when choice is FHIR.dateTime then
      Interval[FHIRHelpers.ToDateTime(choice as FHIR.dateTime), FHIRHelpers.ToDateTime(choice as FHIR.dateTime)]
    when choice is FHIR.Period then
      FHIRHelpers.ToInterval(choice as FHIR.Period)
    when choice is FHIR.instant then
      Interval[FHIRHelpers.ToDateTime(choice as FHIR.instant), FHIRHelpers.ToDateTime(choice as FHIR.instant)]
    when choice is FHIR.Age then
      Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age),
        FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age) + 1 year)
    when choice is FHIR.Range then
      Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).low),
        FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).high) + 1 year)
    when choice is FHIR.Timing then
      Message(null as Interval&lt;DateTime&gt;, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a Timing value is not supported')
    when choice is FHIR.string then
      Message(null as Interval&lt;DateTime&gt;, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a String value is not supported')
    else
      null as Interval&lt;DateTime&gt;
  end</code></pre>
  </td>

</tr>



        



        



        



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> FHIRCommon</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="fhircommon-hasstart"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
@description: Given an interval, return true if the interval has a starting boundary specified
(i.e. the start of the interval is not null and not the minimum DateTime value)
*/
define fluent function hasStart(period Interval&lt;DateTime&gt;):
  not ( start of period is null
      or start of period = minimum DateTime
  )</code></pre>
  </td>

</tr>



        



        



        



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> FHIRCommon</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="fhircommon-references"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
@description: Returns true if the given reference is to the given resourceId
@comment: Returns true if the `resourceId` parameter exactly equals the tail of the given reference.
NOTE: This function assumes resources from the same source server.
*/
define fluent function references(reference FHIR.Reference, resourceId String):
  resourceId = Last(Split(reference.reference, '/'))</code></pre>
  </td>

</tr>



        



        



        



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> FHIRCommon</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="fhircommon-islaboratory"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
@description: Returns true if the given observation is a laboratory observation
*/
define fluent function isLaboratory(observation FHIR.Observation):
  exists (observation.category C
    where C ~ &quot;laboratory&quot;
  )</code></pre>
  </td>

</tr>



        



        



        



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> FHIRCommon</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="fhircommon-exts"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
@description: Returns any extensions defined on the given element with the specified url.
*/
define fluent function exts(element Element, url String):
  element.extension E
    where E.url = url
    return E</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> FHIRCommon</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="fhircommon-ext"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
@description: Returns the single extension (if present) on the given element with the specified url.
@comment: This function uses singleton from to ensure that a run-time exception is thrown if there
is more than one extension on the given element with the specified url.
*/
define fluent function ext(element Element, url String):
  singleton from element.exts(url)</code></pre>
  </td>

</tr>



        



        



        



        



        



        



        



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> FHIRCommon</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="fhircommon-references"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
@description: Returns true if any of the given references are to the given resource
@comment: Returns true if the `id` element of the given resource exactly equals the tail of any of the given references.
NOTE: This function assumes resources from the same source server.
*/
define fluent function references(references List&lt;FHIR.Reference&gt;, resource FHIR.Resource):
  exists (references R where R.references(resource))</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> FHIRCommon</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="fhircommon-references"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
@description: Returns true if the given reference is to the given resource
@comment: Returns true if the `id` element of the given resource exactly equals the tail of the given reference.
NOTE: This function assumes resources from the same source server.
*/
define fluent function references(reference FHIR.Reference, resource FHIR.Resource):
  resource.id = Last(Split(reference.reference, '/'))</code></pre>
  </td>

</tr>



        



        



        



        



        




        
        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> USCoreCommon</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="uscorecommon-sex"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
@description: Returns the sex element as defined for the USCore patient profile
*/
define fluent function sex(patient Patient):
  patient.ext('http://hl7.org/fhir/us/core/StructureDefinition/us-core-sex').value as FHIR.code</code></pre>
  </td>

</tr>



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> USCoreCommon</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="uscorecommon-race"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function race(patient Patient):
  (patient.ext('http://hl7.org/fhir/us/core/StructureDefinition/us-core-race')) E
    return {
      ombCategory: (E.exts('ombCategory')) o return o.value as FHIR.Coding,
      detailed: (E.exts('detailed')) d return d.value as FHIR.Coding,
      text: E.ext('text').value as FHIR.string
    }</code></pre>
  </td>

</tr>



        



        



        



        



        



        



        



        



        



        



        



        



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> USCoreCommon</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="uscorecommon-ethnicity"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function ethnicity(patient Patient):
  (patient.ext('http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity')) E
    return {
      ombCategory: E.ext('ombCategory').value as FHIR.Coding,
      detailed: (E.exts('detailed')) d return d.value as FHIR.Coding,
      text: E.ext('text').value as FHIR.string
    }</code></pre>
  </td>

</tr>



        



        



        




        
        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-encounter-with-age-18-and-length-of-stay-48-hours-or-more"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter With Age 18 And Length Of Stay 48 Hours Or More&quot;:
  [&quot;Encounter&quot;: &quot;Encounter Inpatient&quot;] InpatientEncounter
    where Patient.sex ( ) in { &quot;Male (finding)&quot;.code, &quot;Female (finding)&quot;.code }
      and InpatientEncounter.period ends during day of &quot;Measurement Period&quot;
      and InpatientEncounter.status = 'finished'
      and AgeInYearsAt(date from start of InpatientEncounter.period) &gt;= 18
      and ( duration in hours of InpatientEncounter.hospitalizationWithObservation ( ) &gt;= 48 )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-inpatient-encounter-with-creatinine"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Inpatient Encounter With Creatinine&quot;:
  from
    &quot;Encounter With Age 18 And Length Of Stay 48 Hours Or More&quot; Encounter48Hours,
    [&quot;LaboratoryResultObservation&quot;: &quot;Creatinine Mass Per Volume&quot;] CreatinineTest
    let HospitalizationPeriod: Encounter48Hours.hospitalizationWithObservation ( ),
    CreatinineTestStart: CreatinineTest.effective.earliest ( )
    where CreatinineTest.value as Quantity is not null
      and CreatinineTestStart during Interval[start of HospitalizationPeriod + 48 hours, end of HospitalizationPeriod]
      and CreatinineTest.status in { 'final', 'amended', 'corrected' }
    return Encounter48Hours</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-encounter-with-creatinine-and-without-obstetrical-conditions"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot;:
  &quot;Inpatient Encounter With Creatinine&quot; EncounterWithCreatinine
    where not ( EncounterWithCreatinine.reasonCode in &quot;Obstetrics and VTE Obstetrics&quot;
        or EncounterWithCreatinine.encounterDiagnosis ( ).code in &quot;Obstetrics and VTE Obstetrics&quot;
    )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-risk-variable-first-respiratory-rate-in-encounter"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable First Respiratory Rate In Encounter&quot;:
  &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter
    return Tuple {
      encounterId: QualifyingEncounter.id,
      firstRespiratoryRate: &quot;QualifyingEncounter&quot;.firstRespiratoryRate ( )
    }</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-qualifying-creatinine-lab-result-by-time"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Qualifying Creatinine Lab Result By Time&quot;:
  from
    &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter,
    [&quot;LaboratoryResultObservation&quot;: &quot;Creatinine Mass Per Volume&quot;] CreatinineTestByTime
    let CrEncId: QualifyingEncounter.id,
    CrHospPeriod: QualifyingEncounter.hospitalizationWithObservation ( ),
    CrLabId: CreatinineTestByTime.id,
    CrTime: CreatinineTestByTime.effective.earliest ( ),
    CrTimeIssued: CreatinineTestByTime.issued,
    CrResult: CreatinineTestByTime.value as Quantity,
    CrResultValue: CrResult.value,
    CrResultUnit: CrResult.unit
    where CrTime during CrHospPeriod
      and CreatinineTestByTime.isLaboratory ( )
      and CreatinineTestByTime.status in { 'final', 'amended', 'corrected' }
      and CrResultUnit = 'mg/dL'
      and CreatinineTestByTime.value is not null
      and CreatinineTestByTime.value as Quantity &gt; 0 'mg/dL'
    return Tuple {
      CrEncInPtId: CrEncId,
      CrHospitalization: CrHospPeriod,
      CrLabObsId: CrLabId,
      CrLabObsCategory: if CreatinineTestByTime.isLaboratory ( ) then 'laboratory' 
        else CreatinineTestByTime.isLaboratory ( ),
      CrLabObsCategory: CreatinineTestByTime.category,
      CrLabObsStatus: CreatinineTestByTime.status,
      CrLabResult: CrResult,
      CrLabResultUnit: CrResultUnit,
      CrLabResultValue: CrResultValue,
      CrLabTime: CrTime,
      CrLabTimeIssued: CrTimeIssued
    }
    sort by CrLabTime</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-risk-variable-estimated-glomerular-filtration-rate-for-males"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Estimated Glomerular Filtration Rate For Males&quot;:
  &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter
    return Tuple {
      encounterId: QualifyingEncounter.id,
      eGFR: &quot;QualifyingEncounter&quot;.maleeGFR ( )
    }</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-qualifying-blood-pressure-reading"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Qualifying Blood Pressure Reading&quot;:
  [&quot;USCore.BloodPressureProfile&quot;] BloodPressure
    where BloodPressure.effective.earliest ( ) during day of &quot;Measurement Period&quot;</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-risk-variable-first-systolic-blood-pressure-in-encounter"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable First Systolic Blood Pressure In Encounter&quot;:
  &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter
    return Tuple {
      encounterId: QualifyingEncounter.id,
      firstSystolicBP: &quot;QualifyingEncounter&quot;.firstSystolicBloodPressure ( )
    }</code></pre>
  </td>

</tr>



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-sde-race"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;SDE Race&quot;:
  SDE.&quot;SDE Race&quot;</code></pre>
  </td>

</tr>



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-sde-sex"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;SDE Sex&quot;:
  SDE.&quot;SDE Sex&quot;</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-risk-variable-estimated-glomerular-filtration-rate-for-females"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Estimated Glomerular Filtration Rate For Females&quot;:
  &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter
    return Tuple {
      encounterId: QualifyingEncounter.id,
      eGFR: &quot;QualifyingEncounter&quot;.femaleeGFR ( )
    }</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-risk-variable-first-heart-rate-in-encounter"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable First Heart Rate In Encounter&quot;:
  &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter
    return Tuple {
      encounterId: QualifyingEncounter.id,
      firstHeartRate: &quot;QualifyingEncounter&quot;.firstHeartRate ( )
    }</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-serum-creatinine-normal"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Serum Creatinine Normal&quot;:
  if ( Patient.sex ( ) = &quot;Female (finding)&quot;.code ) then 1.02 'mg/dL' 
    else 1.18 'mg/dL'</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-encounter-with-1.5-times-serum-creatinine-increase"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter With 1.5 Times Serum Creatinine Increase&quot;:
  from
    &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter,
    [&quot;LaboratoryResultObservation&quot;: &quot;Creatinine Mass Per Volume&quot;] HighCreatinineTest,
    [&quot;LaboratoryResultObservation&quot;: &quot;Creatinine Mass Per Volume&quot;] LowCreatinineTest
    let LowCreatinineTestTime: LowCreatinineTest.effective.earliest ( ),
    HighCreatinineTestTime: HighCreatinineTest.effective.earliest ( ),
    HospitalWithObservationPeriod: QualifyingEncounter.hospitalizationWithObservation ( )
    where ( HighCreatinineTest.value &gt; &quot;Serum Creatinine Normal&quot; )
      and LowCreatinineTest.status in { 'final', 'amended', 'corrected' }
      and HighCreatinineTest.status in { 'final', 'amended', 'corrected' }
      and HighCreatinineTest.value = &quot;QualifyingEncounter&quot;.highestSerumCreatinineResult ( )
      and LowCreatinineTest.value = &quot;QualifyingEncounter&quot;.lowestSerumCreatinineResult ( )
      and &quot;QualifyingEncounter&quot;.oneAndAHalfIncreaseInCreatinine ( ) &gt;= LowCreatinineTest.value
      and LowCreatinineTestTime 7 days or less before HighCreatinineTestTime
      and LowCreatinineTestTime during HospitalWithObservationPeriod
      and HighCreatinineTestTime during Interval[start of HospitalWithObservationPeriod + 48 hours, start of HospitalWithObservationPeriod + 30 days]
      and HighCreatinineTestTime during HospitalWithObservationPeriod
    return QualifyingEncounter</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-encounter-with-2-times-serum-creatinine-increase"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter With 2 Times Serum Creatinine Increase&quot;:
  from
    &quot;Encounter With 1.5 Times Serum Creatinine Increase&quot; EncounterWithHighCreatinine,
    [&quot;LaboratoryResultObservation&quot;: &quot;Creatinine Mass Per Volume&quot;] HighCreatinineTest,
    [&quot;LaboratoryResultObservation&quot;: &quot;Creatinine Mass Per Volume&quot;] LowCreatinineTest
    let LowCreatinineTestTime: LowCreatinineTest.effective.earliest ( ),
    HighCreatinineTestTime: HighCreatinineTest.effective.earliest ( ),
    HospitalWithObservationPeriod: EncounterWithHighCreatinine.hospitalizationWithObservation ( )
    where ( HighCreatinineTest.value &gt; &quot;Serum Creatinine Normal&quot; )
      and LowCreatinineTest.status in { 'final', 'amended', 'corrected' }
      and HighCreatinineTest.status in { 'final', 'amended', 'corrected' }
      and HighCreatinineTest.value = &quot;EncounterWithHighCreatinine&quot;.highestSerumCreatinineResult ( )
      and LowCreatinineTest.value = &quot;EncounterWithHighCreatinine&quot;.lowestSerumCreatinineResult ( )
      and ( HighCreatinineTest.value as Quantity ) &gt;= ( LowCreatinineTest.value as Quantity )
      and LowCreatinineTestTime 7 days or less before HighCreatinineTestTime
      and LowCreatinineTestTime during HospitalWithObservationPeriod
      and HighCreatinineTestTime during Interval[start of HospitalWithObservationPeriod + 48 hours, start of HospitalWithObservationPeriod + 30 days]
      and HighCreatinineTestTime during HospitalWithObservationPeriod
    return EncounterWithHighCreatinine</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-encounter-with-kidney-dialysis-started-more-than-48-hours-after-arrival"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter With Kidney Dialysis Started More Than 48 Hours After Arrival&quot;:
  from
    [&quot;Procedure&quot;: &quot;Hospital Based Dialysis Services&quot;] Dialysis,
    &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter
    let HospitalWithObservationPeriod: QualifyingEncounter.hospitalizationWithObservation ( )
    where Dialysis.performed.toInterval ( ) starts during Interval[start of HospitalWithObservationPeriod + 48 hours, end of HospitalWithObservationPeriod]
      and Dialysis.performed.toInterval ( ) starts during HospitalWithObservationPeriod
      and Dialysis.status = 'completed'
    return QualifyingEncounter</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-encounter-with-kidney-dialysis-started-more-than-48-hours-after-arrival-without-high-creatinine"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter With Kidney Dialysis Started More Than 48 Hours After Arrival Without High Creatinine&quot;:
  &quot;Encounter With Kidney Dialysis Started More Than 48 Hours After Arrival&quot; EncounterWithDialysisAfter48Hours
    where not ( exists ( &quot;Encounter With 2 Times Serum Creatinine Increase&quot; EncounterWithHighCreatinine
          where ( EncounterWithHighCreatinine.period includes EncounterWithDialysisAfter48Hours.period )
      )
    )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-numerator"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Numerator&quot;:
  &quot;Encounter With 2 Times Serum Creatinine Increase&quot;
    union &quot;Encounter With Kidney Dialysis Started More Than 48 Hours After Arrival Without High Creatinine&quot;</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-risk-variable-all-encounter-diagnoses-with-poa-indication"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable All Encounter Diagnoses With POA Indication&quot;:
  from
    &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter,
    [Claim] clm
    where clm.status = 'active'
      and clm.use = 'claim'
      and exists ( clm.item ClaimItem
          where ClaimItem.encounter.references ( QualifyingEncounter )
            and exists ( clm.diagnosis Dx
                where Dx.sequence in clm.item.diagnosisSequence
                  and Dx.onAdmission in &quot;Present on Admission or Clinically Undetermined&quot;
            )
      )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-initial-population"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Initial Population&quot;:
  &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot;</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-denominator"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Denominator&quot;:
  &quot;Initial Population&quot;</code></pre>
  </td>

</tr>



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-sde-payer"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;SDE Payer&quot;:
  SDE.&quot;SDE Payer&quot;</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-risk-variable-first-temperature-in-encounter"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable First Temperature In Encounter&quot;:
  &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter
    return Tuple {
      encounterId: QualifyingEncounter.id,
      firstTemperature: &quot;QualifyingEncounter&quot;.firstBodyTemperature ( )
    }</code></pre>
  </td>

</tr>



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-sde-ethnicity"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;SDE Ethnicity&quot;:
  SDE.&quot;SDE Ethnicity&quot;</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-encounter-with-less-than-2-creatinine-results-within-48-hours-of-arrival"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter With Less Than 2 Creatinine Results Within 48 Hours Of Arrival&quot;:
  &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter
    where ( Count(&quot;QualifyingEncounter&quot;.creatinineLabTestwithResultwithinFirst48Hours()) &lt; 2 )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-male-encounter-with-egfr-less-than-60"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Male Encounter With eGFR Less Than 60&quot;:
  &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter
    where &quot;QualifyingEncounter&quot;.maleeGFR ( ) is not null
      and &quot;QualifyingEncounter&quot;.maleeGFR ( ) as Decimal &lt; 60</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-female-encounter-with-egfr-less-than-60"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Female Encounter With eGFR Less Than 60&quot;:
  &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter
    where &quot;QualifyingEncounter&quot;.femaleeGFR ( ) is not null
      and &quot;QualifyingEncounter&quot;.femaleeGFR ( ) as Decimal &lt; 60</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-encounter-with-index-egfr-less-than-60-within-first-48-hours"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter With Index eGFR Less Than 60 Within First 48 Hours&quot;:
  &quot;Male Encounter With eGFR Less Than 60&quot;
    union &quot;Female Encounter With eGFR Less Than 60&quot;</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-increase-of-0.3-or-more-using-lowest-creatinine-within-24-hours"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Increase Of 0.3 Or More Using Lowest Creatinine Within 24 Hours&quot;:
  from
    &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter,
    [&quot;LaboratoryResultObservation&quot;: &quot;Creatinine Mass Per Volume&quot;] IndexCreatinineLabResult,
    [&quot;LaboratoryResultObservation&quot;: &quot;Creatinine Mass Per Volume&quot;] SubsequentCreatinineLabResult
    let IndexCreatinineLabResultTime: IndexCreatinineLabResult.effective.earliest ( ),
    SubsequentCreatinineLabResultTime: SubsequentCreatinineLabResult.effective.earliest ( ),
    HospitalWithObservationPeriod: QualifyingEncounter.hospitalizationWithObservation ( )
    where IndexCreatinineLabResult.status in { 'final', 'amended', 'corrected' }
      and SubsequentCreatinineLabResult.status in { 'final', 'amended', 'corrected' }
      and ( ( SubsequentCreatinineLabResult.value as Quantity ) - ( IndexCreatinineLabResult.value as Quantity ) ) &gt; 0.299 'mg/dL'
      and IndexCreatinineLabResult.value = &quot;QualifyingEncounter&quot;.lowestSerumCreatinineResult ( )
      and IndexCreatinineLabResultTime during Interval[SubsequentCreatinineLabResultTime - 48 hours, SubsequentCreatinineLabResultTime]
      and IndexCreatinineLabResultTime during HospitalWithObservationPeriod
      and IndexCreatinineLabResultTime during Interval[start of HospitalWithObservationPeriod, start of HospitalWithObservationPeriod + 24 hours]
      and SubsequentCreatinineLabResultTime during HospitalWithObservationPeriod
      and SubsequentCreatinineLabResultTime during Interval[start of HospitalWithObservationPeriod, start of HospitalWithObservationPeriod + 48 hours]
      and IndexCreatinineLabResult.id != SubsequentCreatinineLabResult.id
    return QualifyingEncounter</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-increase-of-0.3-or-more-using-first-creatinine-within-first-48-hours"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Increase Of 0.3 Or More Using First Creatinine Within First 48 Hours&quot;:
  from
    &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter,
    [&quot;LaboratoryResultObservation&quot;: &quot;Creatinine Mass Per Volume&quot;] IndexCreatinineLabResult,
    [&quot;LaboratoryResultObservation&quot;: &quot;Creatinine Mass Per Volume&quot;] SubsequentCreatinineLabResult
    let IndexCreatinineLabResultTime: IndexCreatinineLabResult.effective.earliest ( ),
    SubsequentCreatinineLabResultTime: SubsequentCreatinineLabResult.effective.earliest ( ),
    HospitalWithObservationPeriod: QualifyingEncounter.hospitalizationWithObservation ( )
    where IndexCreatinineLabResult.status in { 'final', 'amended', 'corrected' }
      and SubsequentCreatinineLabResult.status in { 'final', 'amended', 'corrected' }
      and ( ( SubsequentCreatinineLabResult.value as Quantity ) - ( IndexCreatinineLabResult.value as Quantity ) ) &gt; 0.299 'mg/dL'
      and IndexCreatinineLabResult.value as Quantity = singleton from &quot;QualifyingEncounter&quot;.earliestSerumCreatinineResult ( )
      and IndexCreatinineLabResultTime during Interval[SubsequentCreatinineLabResultTime - 48 hours, SubsequentCreatinineLabResultTime]
      and IndexCreatinineLabResultTime during HospitalWithObservationPeriod
      and SubsequentCreatinineLabResultTime during Interval[start of HospitalWithObservationPeriod, start of HospitalWithObservationPeriod + 48 hours]
      and SubsequentCreatinineLabResultTime during HospitalWithObservationPeriod
      and IndexCreatinineLabResultTime during Interval[start of HospitalWithObservationPeriod, start of HospitalWithObservationPeriod + 48 hours]
      and IndexCreatinineLabResult.id != SubsequentCreatinineLabResult.id
    return QualifyingEncounter</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-encounter-with-0.3-mg-dl-or-more-increase-in-creatinine"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter With 0.3 mg dL Or More Increase In Creatinine&quot;:
  &quot;Increase Of 0.3 Or More Using Lowest Creatinine Within 24 Hours&quot;
    union &quot;Increase Of 0.3 Or More Using First Creatinine Within First 48 Hours&quot;</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-encounter-with-kidney-dialysis-started-48-hours-or-less-after-arrival"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter With Kidney Dialysis Started 48 Hours Or Less After Arrival&quot;:
  from
    [&quot;Procedure&quot;: &quot;Hospital Based Dialysis Services&quot;] Dialysis,
    &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter
    let HospitalWithObservationPeriod: QualifyingEncounter.hospitalizationWithObservation ( )
    where Dialysis.status = 'completed'
      and Dialysis.performed.toInterval ( ) starts during Interval[start of HospitalWithObservationPeriod, start of HospitalWithObservationPeriod + 48 hours]
      and Dialysis.performed.toInterval ( ) starts during HospitalWithObservationPeriod
    return QualifyingEncounter</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-encounter-with-kidney-dialysis-started-48-hours-or-less-after-arrival-without-high-creatinine"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter With Kidney Dialysis Started 48 Hours Or Less After Arrival Without High Creatinine&quot;:
  &quot;Encounter With Kidney Dialysis Started 48 Hours Or Less After Arrival&quot; EncounterWithKidneyDialysis48HoursOrAfter
    where not ( exists ( &quot;Encounter With 2 Times Serum Creatinine Increase&quot; EncounterWithHighCreatinine
          where ( EncounterWithHighCreatinine.period includes EncounterWithKidneyDialysis48HoursOrAfter.period )
      )
    )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-encounter-with-high-risk-diagnosis-for-aki"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter With High Risk Diagnosis For AKI&quot;:
  &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter
    where ( QualifyingEncounter.reasonCode in &quot;High Risk Diagnosis for AKI&quot;
        or QualifyingEncounter.encounterDiagnosis ( ).code in &quot;High Risk Diagnosis for AKI&quot;
    )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-encounter-with-high-risk-procedures-for-aki"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter With High Risk Procedures For AKI&quot;:
  &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter
    with [&quot;Procedure&quot;: &quot;High Risk Procedures for AKI&quot;] HighRiskProcedures
      such that HighRiskProcedures.status = 'completed'
        and HighRiskProcedures.performed.toInterval ( ) starts during QualifyingEncounter.hospitalizationWithObservation ( )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-denominator-exclusion"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Denominator Exclusion&quot;:
  &quot;Encounter With Less Than 2 Creatinine Results Within 48 Hours Of Arrival&quot;
    union &quot;Encounter With Index eGFR Less Than 60 Within First 48 Hours&quot;
    union &quot;Encounter With 0.3 mg dL Or More Increase In Creatinine&quot;
    union &quot;Encounter With Kidney Dialysis Started 48 Hours Or Less After Arrival Without High Creatinine&quot;
    union &quot;Encounter With High Risk Diagnosis For AKI&quot;
    union &quot;Encounter With High Risk Procedures For AKI&quot;</code></pre>
  </td>

</tr>



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-firstrespiratoryrate"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function &quot;firstRespiratoryRate&quot;(QualifyingEncounter Encounter):
  First([&quot;USCore.RespiratoryRateProfile&quot;] FirstRespiration
      where FirstRespiration.effective.earliest() during QualifyingEncounter.hospitalizationWithObservation()
        and FirstRespiration.value is not null
      sort by effective.earliest()
  ).value as Quantity</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-maleegfr"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function &quot;maleeGFR&quot;(QualifyingEncounter Encounter):
  if Patient.sex () = &quot;Male (finding)&quot;.code then ( 142 * Min({(&quot;QualifyingEncounter&quot;.indexCreatinine().value / 0.9), 1 }) ^ ( - 0.302 ) * Max({(&quot;QualifyingEncounter&quot;.indexCreatinine().value / 0.9), 1 }) ^ ( - 1.200 ) * 0.9938 ^ ( AgeInYearsAt(date from start of QualifyingEncounter.hospitalizationWithObservation()) ) ) 
    else null</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-indexcreatinine"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function &quot;indexCreatinine&quot;(QualifyingEncounter Encounter):
  Coalesce(&quot;QualifyingEncounter&quot;.lowestSerumCreatinineIn24Hours(), singleton from &quot;QualifyingEncounter&quot;.firstSerumCreatinineIn48Hours())</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-lowestserumcreatininein24hours"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function &quot;lowestSerumCreatinineIn24Hours&quot;(QualifyingEncounter Encounter):
  Min((from
        &quot;Qualifying Creatinine Lab Result By Time&quot; LabTestsLow
        let LabResult: LabTestsLow.CrLabResult
        where LabTestsLow.CrEncInPtId = QualifyingEncounter.id
          and LabTestsLow.CrLabTime during Interval[start of QualifyingEncounter.hospitalizationWithObservation(), start of QualifyingEncounter.hospitalizationWithObservation() + 24 hours]
    ).CrLabResult
  )</code></pre>
  </td>

</tr>



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-firstserumcreatininein48hours"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function &quot;firstSerumCreatinineIn48Hours&quot;(QualifyingEncounter Encounter):
  from
    &quot;Qualifying Creatinine Lab Result By Time&quot; LabTests
    let LabResult: LabTests.CrLabResult
    where ( &quot;QualifyingEncounter&quot;.earliestSerumCreatinineTimeIn48Hours ( ) = LabTests.CrLabTime )
    return LabResult as Quantity</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-earliestserumcreatininetimein48hours"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function &quot;earliestSerumCreatinineTimeIn48Hours&quot;(QualifyingEncounter Encounter):
  ( Min((from
          &quot;Qualifying Creatinine Lab Result By Time&quot; LabTests48
          let LabResult48: LabTests48.CrLabResult
          where LabTests48.CrEncInPtId = QualifyingEncounter.id
            and LabTests48.CrLabTime during Interval[start of QualifyingEncounter.hospitalizationWithObservation(), start of QualifyingEncounter.hospitalizationWithObservation() + 48 hours]
      ).CrLabTime
    )
  )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-firstsystolicbloodpressure"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function &quot;firstSystolicBloodPressure&quot;(QualifyingEncounter Encounter):
  First(&quot;Qualifying Blood Pressure Reading&quot; SBPReading
      where SBPReading.effective.earliest() during QualifyingEncounter.hospitalizationWithObservation()
      return singleton from(SBPReading.component SBPComponent
          where SBPComponent.code ~ &quot;Systolic blood pressure&quot;
          return SBPComponent.value as Quantity
      )
  )</code></pre>
  </td>

</tr>



        



        



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-femaleegfr"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function &quot;femaleeGFR&quot;(QualifyingEncounter Encounter):
  if Patient.sex () = &quot;Female (finding)&quot;.code then ( 142 * Min({(&quot;QualifyingEncounter&quot;.indexCreatinine().value / 0.7), 1 }) ^ ( - 0.241 ) * Max({(&quot;QualifyingEncounter&quot;.indexCreatinine().value / 0.7), 1 }) ^ ( - 1.200 ) * 0.9938 ^ ( AgeInYearsAt(date from start of QualifyingEncounter.hospitalizationWithObservation()) ) * 1.012 ) 
    else null</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-firstheartrate"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function &quot;firstHeartRate&quot;(QualifyingEncounter Encounter):
  First([&quot;USCore.HeartRateProfile&quot;] FirstHeartBeats
      where FirstHeartBeats.effective.earliest() during QualifyingEncounter.hospitalizationWithObservation()
        and FirstHeartBeats.value is not null
      sort by effective.earliest()
  ).value as Quantity</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-highestserumcreatinineresult"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function &quot;highestSerumCreatinineResult&quot;(QualifyingEncounter Encounter):
  ( Max((from
          &quot;Qualifying Creatinine Lab Result By Time&quot; LabTests
          let LabResult: LabTests.CrLabResult
          where LabTests.CrEncInPtId = QualifyingEncounter.id
      ).CrLabResult
    )
  )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-lowestserumcreatinineresult"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function &quot;lowestSerumCreatinineResult&quot;(QualifyingEncounter Encounter):
  ( Min((from
          &quot;Qualifying Creatinine Lab Result By Time&quot; LabTests
          let LabResult: LabTests.CrLabResult
          where LabTests.CrEncInPtId = QualifyingEncounter.id
      ).CrLabResult
    )
  )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-oneandahalfincreaseincreatinine"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function &quot;oneAndAHalfIncreaseInCreatinine&quot;(QualifyingEncounter Encounter):
  &quot;QualifyingEncounter&quot;.highestSerumCreatinineResult ( ) / 1.5</code></pre>
  </td>

</tr>



        



        



        



        



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-firstbodytemperature"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function &quot;firstBodyTemperature&quot;(QualifyingEncounter Encounter):
  First([&quot;USCore.BodyTemperatureProfile&quot;] FirstTemperature
      where FirstTemperature.effective.earliest() during QualifyingEncounter.hospitalizationWithObservation()
        and FirstTemperature.value is not null
      sort by effective.earliest()
  ).value as Quantity</code></pre>
  </td>

</tr>



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-creatininelabtestwithresultwithinfirst48hours"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function &quot;creatinineLabTestwithResultwithinFirst48Hours&quot;(QualifyingEncounter Encounter):
  from
    [&quot;LaboratoryResultObservation&quot;: &quot;Creatinine Mass Per Volume&quot;] CreatinineTest
    where CreatinineTest.value as Quantity is not null
      and CreatinineTest.effective.earliest ( ) during Interval[start of QualifyingEncounter.hospitalizationWithObservation ( ), start of QualifyingEncounter.hospitalizationWithObservation ( ) + 48 hours]
      and CreatinineTest.effective.earliest ( ) during QualifyingEncounter.hospitalizationWithObservation ( )
      and CreatinineTest.status in { 'final', 'amended', 'corrected' }
    return CreatinineTest</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-earliestserumcreatinineresult"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function &quot;earliestSerumCreatinineResult&quot;(QualifyingEncounter Encounter):
  from
    &quot;Qualifying Creatinine Lab Result By Time&quot; LabTests
    let LabResult: LabTests.CrLabResult
    where ( &quot;QualifyingEncounter&quot;.earliestSerumCreatinineTime ( ) = LabTests.CrLabTime )
    return LabResult as Quantity</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    Logic Definition
  </th>

  <td class="content-container"><em>Library Name:</em> CMS832FHIRHHAKI</td>

</tr>
<tr>

  <td>
    
    
    
    
      <a name="cms832fhirhhaki-earliestserumcreatininetime"> </a>
    
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function &quot;earliestSerumCreatinineTime&quot;(QualifyingEncounter Encounter):
  ( Min((from
          &quot;Qualifying Creatinine Lab Result By Time&quot; LabTestsEarly
          let LabResultEarly: LabTestsEarly.CrLabResult
          where LabTestsEarly.CrEncInPtId = QualifyingEncounter.id
      ).CrLabTime
    )
  )</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/>
    
    
    
    
    
    
    <em>Resource</em>: <a href="http://hl7.org/fhir/R4/codesystem-snomedct.html">SNOMED CT (all versions)</a>
    <br/>
    <em>Canonical URL</em>: <tt>http://snomed.info/sct</tt>
    
  </td>
</tr>
 


<tr>
  
  
  

<th scope="row" class="row-header">Code System</th>


  
  <td class="content-container">
    
    <em>Description</em>: Code system ObservationCategoryCodes
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: <a href="http://terminology.hl7.org/7.1.0/CodeSystem-observation-category.html">Observation Category Codes</a>
    <br/>
    <em>Canonical URL</em>: <tt>http://terminology.hl7.org/CodeSystem/observation-category</tt>
    
  </td>
</tr>
 


<tr>
  
  
  

<th scope="row" class="row-header">Code System</th>


  
  <td class="content-container">
    
    <em>Description</em>: Code system LOINC
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: <a href="http://terminology.hl7.org/6.5.0/CodeSystem-v3-loinc.html">Logical Observation Identifiers, Names and Codes (LOINC)</a>
    <br/>
    <em>Canonical URL</em>: <tt>http://loinc.org</tt>
    
  </td>
</tr>
 


<tr>
  
  

<th scope="row" class="row-header">Value Set</th>


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Encounter Inpatient
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.666.5.307/expansion">Encounter Inpatient</a>
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307</tt>
    
  </td>
</tr>
 


<tr>
  
  

<th scope="row" class="row-header">Value Set</th>


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Observation Services
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1111.143/expansion">Observation Services</a>
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143</tt>
    
  </td>
</tr>
 


<tr>
  
  

<th scope="row" class="row-header">Value Set</th>


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Emergency Department Visit
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.292/expansion">Emergency Department Visit</a>
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292</tt>
    
  </td>
</tr>
 


<tr>
  
  

<th scope="row" class="row-header">Value Set</th>


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Creatinine Mass Per Volume
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1248.21/expansion">Creatinine Mass Per Volume</a>
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.21</tt>
    
  </td>
</tr>
 


<tr>
  
  

<th scope="row" class="row-header">Value Set</th>


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Obstetrics and VTE Obstetrics
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1248.33/expansion">Obstetrics and VTE Obstetrics</a>
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.33</tt>
    
  </td>
</tr>
 


<tr>
  
  

<th scope="row" class="row-header">Value Set</th>


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Hospital Based Dialysis Services
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1248.199/expansion">Hospital Based Dialysis Services</a>
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.199</tt>
    
  </td>
</tr>
 


<tr>
  
  

<th scope="row" class="row-header">Value Set</th>


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Present on Admission or Clinically Undetermined
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1147.197/expansion">Present on Admission or Clinically Undetermined</a>
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.197</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/>
    
    
    
    
    
    
    <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.114222.4.11.3591/expansion">Payer Type</a>
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591</tt>
    
  </td>
</tr>
 


<tr>
  
  

<th scope="row" class="row-header">Value Set</th>


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set High Risk Diagnosis for AKI
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1248.12/expansion">High Risk Diagnosis for AKI</a>
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.12</tt>
    
  </td>
</tr>
 


<tr>
  
  

<th scope="row" class="row-header">Value Set</th>


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set High Risk Procedures for AKI
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1248.19/expansion">High Risk Procedures for AKI</a>
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.19</tt>
    
  </td>
</tr>
 


  
  <tr>
    <th scope="row" class="row-header">Direct Reference Code</th>
    <td class="content-container">
      
        <em>Display</em>: Male
        <br/>
      
      <em>Code</em>: 248153007
      <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
        <br/>
      
      <em>Code</em>: 248152002
      <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>: Laboratory
        <br/>
      
      <em>Code</em>: laboratory
      <br/>
      <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/observation-category</tt>
    </td>
  </tr>

  <tr>
    <th scope="row" class="row-header">Direct Reference Code</th>
    <td class="content-container">
      
        <em>Display</em>: Systolic blood pressure
        <br/>
      
      <em>Code</em>: 8480-6
      <br/>
      <em>System</em>: <tt>http://loinc.org</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>: USQualityCore model information
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: <code>https://madie.cms.gov/Library/USQualityCore-ModelInfo|0.1.0-cibuild</code>
    <br/>
    <em>Canonical URL</em>: <tt>https://madie.cms.gov/Library/USQualityCore-ModelInfo|0.1.0-cibuild</tt>
    
  </td>
</tr>
 


<tr>
  

<th scope="row" class="row-header">Dependency</th>


  <td class="content-container">
    
    <em>Description</em>: USCore model information
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: <a href="http://hl7.org/fhir/us/cql/2026May/Library-USCore-ModelInfo.html">http://hl7.org/fhir/us/cql/Library/USCore-ModelInfo|6.1.0-derived</a>
    <br/>
    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/us/cql/Library/USCore-ModelInfo|6.1.0-derived</tt>
    
  </td>
</tr>
 


<tr>
  

<th scope="row" class="row-header">Dependency</th>


  <td class="content-container">
    
    <em>Description</em>: FHIR model information
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: <a href="http://hl7.org/fhir/uv/cql/STU2/Library-FHIR-ModelInfo.html">http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1</a>
    <br/>
    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1</tt>
    
  </td>
</tr>
 


<tr>
  

<th scope="row" class="row-header">Dependency</th>


  <td class="content-container">
    
    <em>Description</em>: Library FHIRHelpers
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: <a href="http://hl7.org/fhir/uv/cql/STU2/Library-FHIRHelpers.html">http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1</a>
    <br/>
    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1</tt>
    
  </td>
</tr>
 


<tr>
  

<th scope="row" class="row-header">Dependency</th>


  <td class="content-container">
    
    <em>Description</em>: Library USCoreCommon
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: <a href="http://hl7.org/fhir/us/cql/2026May/Library-USCoreCommon.html">http://hl7.org/fhir/us/cql/Library/USCoreCommon|2.0.0-ballot</a>
    <br/>
    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/us/cql/Library/USCoreCommon|2.0.0-ballot</tt>
    
  </td>
</tr>
 


<tr>
  

<th scope="row" class="row-header">Dependency</th>


  <td class="content-container">
    
    <em>Description</em>: Library FHIRCommon
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: <a href="http://hl7.org/fhir/uv/cql/STU2/Library-FHIRCommon.html">http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0</a>
    <br/>
    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0</tt>
    
  </td>
</tr>
 


<tr>
  

<th scope="row" class="row-header">Dependency</th>


  <td class="content-container">
    
    <em>Description</em>: Library CQMCommon
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: <a href="Library-CQMCommon.html">CQMCommon</a> version: 5.1.000
    <br/>
    <em>Canonical URL</em>: <tt>https://madie.cms.gov/Library/CQMCommon|5.1.000</tt>
    
  </td>
</tr>
 


<tr>
  

<th scope="row" class="row-header">Dependency</th>


  <td class="content-container">
    
    <em>Description</em>: Library SDE
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: <a href="Library-SupplementalDataElements.html">SupplementalDataElements</a> version: 6.1.000
    <br/>
    <em>Canonical URL</em>: <tt>https://madie.cms.gov/Library/SupplementalDataElements|6.1.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/>
  
    <em>Profile(s)</em>: 
  
    <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-patient</code>
    <br/>        
  
   
   
    <em>Must Support Elements</em>: ombCategory, detailed, text
    <br/>
   
   
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Data Requirement</th>
  <td class="content-container">
    <em>Type</em>: Encounter
    <br/>
  
    <em>Profile(s)</em>: 
  
    <a href="http://hl7.org/fhir/R4/encounter.html">Encounter</a>
    <br/>        
  
   
   
    <em>Must Support Elements</em>: type, status, period, reasonCode, id
    <br/>
   
  
    <em>Code Filter(s)</em>: 
    <br/>
  
  
    <span class="tab-one"><em>Path</em>: type</span>
    <br/>
  
  
  
    <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1111.143/expansion">Observation Services</a>
    <br/> 
  
  
  
  
    <span class="tab-one"><em>Path</em>: status</span>
    <br/>
  
  
  
  
    <span class="tab-one"><em>Code(s)</em>: 
    
      
      [not stated]: finished (finished)
      
    
    </span>
    <br/>
  
  
   
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Data Requirement</th>
  <td class="content-container">
    <em>Type</em>: Encounter
    <br/>
  
    <em>Profile(s)</em>: 
  
    <a href="http://hl7.org/fhir/R4/encounter.html">Encounter</a>
    <br/>        
  
   
   
    <em>Must Support Elements</em>: type, status, period, reasonCode, id
    <br/>
   
  
    <em>Code Filter(s)</em>: 
    <br/>
  
  
    <span class="tab-one"><em>Path</em>: type</span>
    <br/>
  
  
  
    <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.292/expansion">Emergency Department Visit</a>
    <br/> 
  
  
  
  
    <span class="tab-one"><em>Path</em>: status</span>
    <br/>
  
  
  
  
    <span class="tab-one"><em>Code(s)</em>: 
    
      
      [not stated]: finished (finished)
      
    
    </span>
    <br/>
  
  
   
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Data Requirement</th>
  <td class="content-container">
    <em>Type</em>: Encounter
    <br/>
  
    <em>Profile(s)</em>: 
  
    <a href="http://hl7.org/fhir/R4/encounter.html">Encounter</a>
    <br/>        
  
   
   
    <em>Must Support Elements</em>: type, period, status, reasonCode, id
    <br/>
   
  
    <em>Code Filter(s)</em>: 
    <br/>
  
  
    <span class="tab-one"><em>Path</em>: type</span>
    <br/>
  
  
  
    <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.666.5.307/expansion">Encounter Inpatient</a>
    <br/> 
  
  
  
  
    <span class="tab-one"><em>Path</em>: status</span>
    <br/>
  
  
  
  
    <span class="tab-one"><em>Code(s)</em>: 
    
      
      [not stated]: finished (finished)
      
    
    </span>
    <br/>
  
  
   
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Data Requirement</th>
  <td class="content-container">
    <em>Type</em>: Encounter
    <br/>
  
    <em>Profile(s)</em>: 
  
    <a href="http://hl7.org/fhir/R4/encounter.html">Encounter</a>
    <br/>        
  
   
   
    <em>Must Support Elements</em>: id, period, reasonCode
    <br/>
   
   
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Data Requirement</th>
  <td class="content-container">
    <em>Type</em>: Patient
    <br/>
  
    <em>Profile(s)</em>: 
  
    <a href="http://hl7.org/fhir/R4/patient.html">Patient</a>
    <br/>        
  
   
   
    <em>Must Support Elements</em>: birthDate
    <br/>
   
   
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Data Requirement</th>
  <td class="content-container">
    <em>Type</em>: Observation
    <br/>
  
    <em>Profile(s)</em>: 
  
    <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-observation-lab</code>
    <br/>        
  
   
   
    <em>Must Support Elements</em>: code, effective, value, status
    <br/>
   
  
    <em>Code Filter(s)</em>: 
    <br/>
  
  
    <span class="tab-one"><em>Path</em>: code</span>
    <br/>
  
  
  
    <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1248.21/expansion">Creatinine Mass Per Volume</a>
    <br/> 
  
  
  
   
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Data Requirement</th>
  <td class="content-container">
    <em>Type</em>: Observation
    <br/>
  
    <em>Profile(s)</em>: 
  
    <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-observation-lab</code>
    <br/>        
  
   
   
    <em>Must Support Elements</em>: code, effective, status, value
    <br/>
   
  
    <em>Code Filter(s)</em>: 
    <br/>
  
  
    <span class="tab-one"><em>Path</em>: code</span>
    <br/>
  
  
  
    <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1248.21/expansion">Creatinine Mass Per Volume</a>
    <br/> 
  
  
  
   
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Data Requirement</th>
  <td class="content-container">
    <em>Type</em>: Observation
    <br/>
  
    <em>Profile(s)</em>: 
  
    <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-observation-lab</code>
    <br/>        
  
   
   
    <em>Must Support Elements</em>: code, effective, value, status, id, issued, category
    <br/>
   
  
    <em>Code Filter(s)</em>: 
    <br/>
  
  
    <span class="tab-one"><em>Path</em>: code</span>
    <br/>
  
  
  
    <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1248.21/expansion">Creatinine Mass Per Volume</a>
    <br/> 
  
  
  
   
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Data Requirement</th>
  <td class="content-container">
    <em>Type</em>: Observation
    <br/>
  
    <em>Profile(s)</em>: 
  
    <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-observation-lab</code>
    <br/>        
  
   
   
    <em>Must Support Elements</em>: code, effective, status, value, id
    <br/>
   
  
    <em>Code Filter(s)</em>: 
    <br/>
  
  
    <span class="tab-one"><em>Path</em>: code</span>
    <br/>
  
  
  
    <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1248.21/expansion">Creatinine Mass Per Volume</a>
    <br/> 
  
  
  
   
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Data Requirement</th>
  <td class="content-container">
    <em>Type</em>: Condition
    <br/>
  
    <em>Profile(s)</em>: 
  
    <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-condition-encounter-diagnosis</code>
    <br/>        
  
   
   
   
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Data Requirement</th>
  <td class="content-container">
    <em>Type</em>: Condition
    <br/>
  
    <em>Profile(s)</em>: 
  
    <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-condition-problems-health-concerns</code>
    <br/>        
  
   
   
   
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Data Requirement</th>
  <td class="content-container">
    <em>Type</em>: Observation
    <br/>
  
    <em>Profile(s)</em>: 
  
    <a href="http://hl7.org/fhir/us/core/STU7/StructureDefinition-us-core-respiratory-rate.html">US Core Respiratory Rate Profile</a>
    <br/>        
  
   
   
    <em>Must Support Elements</em>: effective, value
    <br/>
   
   
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Data Requirement</th>
  <td class="content-container">
    <em>Type</em>: Observation
    <br/>
  
    <em>Profile(s)</em>: 
  
    <a href="http://hl7.org/fhir/us/core/STU7/StructureDefinition-us-core-blood-pressure.html">US Core Blood Pressure Profile</a>
    <br/>        
  
   
   
    <em>Must Support Elements</em>: effective, component
    <br/>
   
   
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Data Requirement</th>
  <td class="content-container">
    <em>Type</em>: Observation
    <br/>
  
    <em>Profile(s)</em>: 
  
    <a href="http://hl7.org/fhir/us/core/STU7/StructureDefinition-us-core-heart-rate.html">US Core Heart Rate Profile</a>
    <br/>        
  
   
   
    <em>Must Support Elements</em>: effective, value
    <br/>
   
   
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Data Requirement</th>
  <td class="content-container">
    <em>Type</em>: Procedure
    <br/>
  
    <em>Profile(s)</em>: 
  
    <a href="http://hl7.org/fhir/R4/procedure.html">Procedure</a>
    <br/>        
  
   
   
    <em>Must Support Elements</em>: code, performed, status
    <br/>
   
  
    <em>Code Filter(s)</em>: 
    <br/>
  
  
    <span class="tab-one"><em>Path</em>: code</span>
    <br/>
  
  
  
    <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1248.199/expansion">Hospital Based Dialysis Services</a>
    <br/> 
  
  
  
  
    <span class="tab-one"><em>Path</em>: status</span>
    <br/>
  
  
  
  
    <span class="tab-one"><em>Code(s)</em>: 
    
      
      [not stated]: completed (completed)
      
    
    </span>
    <br/>
  
  
   
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Data Requirement</th>
  <td class="content-container">
    <em>Type</em>: Procedure
    <br/>
  
    <em>Profile(s)</em>: 
  
    <a href="http://hl7.org/fhir/R4/procedure.html">Procedure</a>
    <br/>        
  
   
   
    <em>Must Support Elements</em>: code, status, performed
    <br/>
   
  
    <em>Code Filter(s)</em>: 
    <br/>
  
  
    <span class="tab-one"><em>Path</em>: code</span>
    <br/>
  
  
  
    <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1248.199/expansion">Hospital Based Dialysis Services</a>
    <br/> 
  
  
  
  
    <span class="tab-one"><em>Path</em>: status</span>
    <br/>
  
  
  
  
    <span class="tab-one"><em>Code(s)</em>: 
    
      
      [not stated]: completed (completed)
      
    
    </span>
    <br/>
  
  
   
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Data Requirement</th>
  <td class="content-container">
    <em>Type</em>: Procedure
    <br/>
  
    <em>Profile(s)</em>: 
  
    <a href="http://hl7.org/fhir/R4/procedure.html">Procedure</a>
    <br/>        
  
   
   
    <em>Must Support Elements</em>: code, status, performed
    <br/>
   
  
    <em>Code Filter(s)</em>: 
    <br/>
  
  
    <span class="tab-one"><em>Path</em>: code</span>
    <br/>
  
  
  
    <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1248.19/expansion">High Risk Procedures for AKI</a>
    <br/> 
  
  
  
  
    <span class="tab-one"><em>Path</em>: status</span>
    <br/>
  
  
  
  
    <span class="tab-one"><em>Code(s)</em>: 
    
      
      [not stated]: completed (completed)
      
    
    </span>
    <br/>
  
  
   
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Data Requirement</th>
  <td class="content-container">
    <em>Type</em>: Resource
    <br/>
  
    <em>Profile(s)</em>: 
  
    <a href="http://hl7.org/fhir/R4/resource.html">Resource</a>
    <br/>        
  
   
   
    <em>Must Support Elements</em>: id
    <br/>
   
   
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Data Requirement</th>
  <td class="content-container">
    <em>Type</em>: Claim
    <br/>
  
    <em>Profile(s)</em>: 
  
    <a href="http://hl7.org/fhir/R4/claim.html">Claim</a>
    <br/>        
  
   
   
    <em>Must Support Elements</em>: status, use, item, diagnosis
    <br/>
   
  
    <em>Code Filter(s)</em>: 
    <br/>
  
  
    <span class="tab-one"><em>Path</em>: status</span>
    <br/>
  
  
  
  
    <span class="tab-one"><em>Code(s)</em>: 
    
      
      [not stated]: active (active)
      
    
    </span>
    <br/>
  
  
  
    <span class="tab-one"><em>Path</em>: use</span>
    <br/>
  
  
  
  
    <span class="tab-one"><em>Code(s)</em>: 
    
      
      [not stated]: claim (claim)
      
    
    </span>
    <br/>
  
  
   
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Data Requirement</th>
  <td class="content-container">
    <em>Type</em>: Coverage
    <br/>
  
    <em>Profile(s)</em>: 
  
    <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-coverage</code>
    <br/>        
  
   
   
    <em>Must Support Elements</em>: type, period
    <br/>
   
  
    <em>Code Filter(s)</em>: 
    <br/>
  
  
    <span class="tab-one"><em>Path</em>: type</span>
    <br/>
  
  
  
    <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.114222.4.11.3591/expansion">Payer Type</a>
    <br/> 
  
  
  
   
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Data Requirement</th>
  <td class="content-container">
    <em>Type</em>: Observation
    <br/>
  
    <em>Profile(s)</em>: 
  
    <a href="http://hl7.org/fhir/us/core/STU7/StructureDefinition-us-core-body-temperature.html">US Core Body Temperature Profile</a>
    <br/>        
  
   
   
    <em>Must Support Elements</em>: effective, value
    <br/>
   
   
  </td>
</tr>

  
  


  <tr>


<th colspan="2" scope="row" class="row-header"><a name="parameters"> </a>Parameters</th>


</tr>
  
  
  <tr>
  

<th scope="row" class="row-header"/>


  <td class="content-container">
    <table>
      <thead>
        <tr>
          <td><em>Name</em></td>
          <td><em>Use</em></td>
          <td><em>Card.</em></td>
          <td><em>Type</em></td>
          <td><em>Documentation</em></td>
        </tr>
      </thead>
      <tbody>
      
        <tr>
          <td>Measurement Period</td>
          <td>In</td>
          <td>0..1</td>
          <td>Period</td>
          <td/>
        </tr>
      
        <tr>
          <td>Risk Variable First Respiratory Rate In Encounter</td>
          <td>Out</td>
          <td>0..*</td>
          <td>Resource</td>
          <td/>
        </tr>
      
        <tr>
          <td>Risk Variable Estimated Glomerular Filtration Rate For Males</td>
          <td>Out</td>
          <td>0..*</td>
          <td>Resource</td>
          <td/>
        </tr>
      
        <tr>
          <td>Risk Variable First Systolic Blood Pressure In Encounter</td>
          <td>Out</td>
          <td>0..*</td>
          <td>Resource</td>
          <td/>
        </tr>
      
        <tr>
          <td>SDE Race</td>
          <td>Out</td>
          <td>0..1</td>
          <td>Resource</td>
          <td/>
        </tr>
      
        <tr>
          <td>SDE Sex</td>
          <td>Out</td>
          <td>0..1</td>
          <td>Coding</td>
          <td/>
        </tr>
      
        <tr>
          <td>Risk Variable Estimated Glomerular Filtration Rate For Females</td>
          <td>Out</td>
          <td>0..*</td>
          <td>Resource</td>
          <td/>
        </tr>
      
        <tr>
          <td>Risk Variable First Heart Rate In Encounter</td>
          <td>Out</td>
          <td>0..*</td>
          <td>Resource</td>
          <td/>
        </tr>
      
        <tr>
          <td>Numerator</td>
          <td>Out</td>
          <td>0..*</td>
          <td>Encounter</td>
          <td/>
        </tr>
      
        <tr>
          <td>Risk Variable All Encounter Diagnoses With POA Indication</td>
          <td>Out</td>
          <td>0..*</td>
          <td>Resource</td>
          <td/>
        </tr>
      
        <tr>
          <td>Denominator</td>
          <td>Out</td>
          <td>0..*</td>
          <td>Encounter</td>
          <td/>
        </tr>
      
        <tr>
          <td>SDE Payer</td>
          <td>Out</td>
          <td>0..*</td>
          <td>Resource</td>
          <td/>
        </tr>
      
        <tr>
          <td>Risk Variable First Temperature In Encounter</td>
          <td>Out</td>
          <td>0..*</td>
          <td>Resource</td>
          <td/>
        </tr>
      
        <tr>
          <td>Initial Population</td>
          <td>Out</td>
          <td>0..*</td>
          <td>Encounter</td>
          <td/>
        </tr>
      
        <tr>
          <td>SDE Ethnicity</td>
          <td>Out</td>
          <td>0..1</td>
          <td>Resource</td>
          <td/>
        </tr>
      
        <tr>
          <td>Denominator Exclusion</td>
          <td>Out</td>
          <td>0..*</td>
          <td>Encounter</td>
          <td/>
        </tr>
      
      </tbody>
    </table>
  </td>
</tr>

  
  

<tr>
  <th colspan="2" scope="row" class="row-header">Generated using version 0.5.4 of the sample-content-ig Liquid templates</th>
</tr>

    </tbody>
  </table>
</div>
  </text>
  <contained>
    <Library>
      <id value="effective-data-requirements"/>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
        <valueCoding>
          <system value="http://snomed.info/sct"/>
          <code value="248153007"/>
          <display value="Male"/>
        </valueCoding>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
        <valueCoding>
          <system value="http://snomed.info/sct"/>
          <code value="248152002"/>
          <display value="Female"/>
        </valueCoding>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
        <valueCoding>
          <system value="http://terminology.hl7.org/CodeSystem/observation-category"/>
          <code value="laboratory"/>
          <display value="Laboratory"/>
        </valueCoding>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
        <valueCoding>
          <system value="http://loinc.org"/>
          <code value="8480-6"/>
          <display value="Systolic blood pressure"/>
        </valueCoding>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Encounter With Age 18 And Length Of Stay 48 Hours Or More"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Encounter With Age 18 And Length Of Stay 48 Hours Or More&quot;:&#xA;  [&quot;Encounter&quot;: &quot;Encounter Inpatient&quot;] InpatientEncounter&#xA;    where Patient.sex ( ) in { &quot;Male (finding)&quot;.code, &quot;Female (finding)&quot;.code }&#xA;      and InpatientEncounter.period ends during day of &quot;Measurement Period&quot;&#xA;      and InpatientEncounter.status = 'finished'&#xA;      and AgeInYearsAt(date from start of InpatientEncounter.period) &gt;= 18&#xA;      and ( duration in hours of InpatientEncounter.hospitalizationWithObservation ( ) &gt;= 48 )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="0"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Inpatient Encounter With Creatinine"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Inpatient Encounter With Creatinine&quot;:&#xA;  from&#xA;    &quot;Encounter With Age 18 And Length Of Stay 48 Hours Or More&quot; Encounter48Hours,&#xA;    [&quot;LaboratoryResultObservation&quot;: &quot;Creatinine Mass Per Volume&quot;] CreatinineTest&#xA;    let HospitalizationPeriod: Encounter48Hours.hospitalizationWithObservation ( ),&#xA;    CreatinineTestStart: CreatinineTest.effective.earliest ( )&#xA;    where CreatinineTest.value as Quantity is not null&#xA;      and CreatinineTestStart during Interval[start of HospitalizationPeriod + 48 hours, end of HospitalizationPeriod]&#xA;      and CreatinineTest.status in { 'final', 'amended', 'corrected' }&#xA;    return Encounter48Hours"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="1"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Encounter With Creatinine And Without Obstetrical Conditions"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot;:&#xA;  &quot;Inpatient Encounter With Creatinine&quot; EncounterWithCreatinine&#xA;    where not ( EncounterWithCreatinine.reasonCode in &quot;Obstetrics and VTE Obstetrics&quot;&#xA;        or EncounterWithCreatinine.encounterDiagnosis ( ).code in &quot;Obstetrics and VTE Obstetrics&quot;&#xA;    )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="2"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable First Respiratory Rate In Encounter"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Risk Variable First Respiratory Rate In Encounter&quot;:&#xA;  &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter&#xA;    return Tuple {&#xA;      encounterId: QualifyingEncounter.id,&#xA;      firstRespiratoryRate: &quot;QualifyingEncounter&quot;.firstRespiratoryRate ( )&#xA;    }"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="3"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Qualifying Creatinine Lab Result By Time"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Qualifying Creatinine Lab Result By Time&quot;:&#xA;  from&#xA;    &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter,&#xA;    [&quot;LaboratoryResultObservation&quot;: &quot;Creatinine Mass Per Volume&quot;] CreatinineTestByTime&#xA;    let CrEncId: QualifyingEncounter.id,&#xA;    CrHospPeriod: QualifyingEncounter.hospitalizationWithObservation ( ),&#xA;    CrLabId: CreatinineTestByTime.id,&#xA;    CrTime: CreatinineTestByTime.effective.earliest ( ),&#xA;    CrTimeIssued: CreatinineTestByTime.issued,&#xA;    CrResult: CreatinineTestByTime.value as Quantity,&#xA;    CrResultValue: CrResult.value,&#xA;    CrResultUnit: CrResult.unit&#xA;    where CrTime during CrHospPeriod&#xA;      and CreatinineTestByTime.isLaboratory ( )&#xA;      and CreatinineTestByTime.status in { 'final', 'amended', 'corrected' }&#xA;      and CrResultUnit = 'mg/dL'&#xA;      and CreatinineTestByTime.value is not null&#xA;      and CreatinineTestByTime.value as Quantity &gt; 0 'mg/dL'&#xA;    return Tuple {&#xA;      CrEncInPtId: CrEncId,&#xA;      CrHospitalization: CrHospPeriod,&#xA;      CrLabObsId: CrLabId,&#xA;      CrLabObsCategory: if CreatinineTestByTime.isLaboratory ( ) then 'laboratory' &#xA;        else CreatinineTestByTime.isLaboratory ( ),&#xA;      CrLabObsCategory: CreatinineTestByTime.category,&#xA;      CrLabObsStatus: CreatinineTestByTime.status,&#xA;      CrLabResult: CrResult,&#xA;      CrLabResultUnit: CrResultUnit,&#xA;      CrLabResultValue: CrResultValue,&#xA;      CrLabTime: CrTime,&#xA;      CrLabTimeIssued: CrTimeIssued&#xA;    }&#xA;    sort by CrLabTime"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="4"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Estimated Glomerular Filtration Rate For Males"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Risk Variable Estimated Glomerular Filtration Rate For Males&quot;:&#xA;  &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter&#xA;    return Tuple {&#xA;      encounterId: QualifyingEncounter.id,&#xA;      eGFR: &quot;QualifyingEncounter&quot;.maleeGFR ( )&#xA;    }"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="5"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Qualifying Blood Pressure Reading"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Qualifying Blood Pressure Reading&quot;:&#xA;  [&quot;USCore.BloodPressureProfile&quot;] BloodPressure&#xA;    where BloodPressure.effective.earliest ( ) during day of &quot;Measurement Period&quot;"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="6"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable First Systolic Blood Pressure In Encounter"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Risk Variable First Systolic Blood Pressure In Encounter&quot;:&#xA;  &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter&#xA;    return Tuple {&#xA;      encounterId: QualifyingEncounter.id,&#xA;      firstSystolicBP: &quot;QualifyingEncounter&quot;.firstSystolicBloodPressure ( )&#xA;    }"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="7"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="SupplementalDataElements"/>
        </extension>
        <extension url="name">
          <valueString value="SDE Race"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;SDE Race&quot;:&#xA;  (Patient.race()) R&#xA;    return Tuple {&#xA;      codes: R.ombCategory union R.detailed,&#xA;      display: R.text&#xA;    }"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="8"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="SDE Race"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;SDE Race&quot;:&#xA;  SDE.&quot;SDE Race&quot;"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="9"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="SupplementalDataElements"/>
        </extension>
        <extension url="name">
          <valueString value="SDE Sex"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;SDE Sex&quot;:&#xA;  case&#xA;    when Patient.sex() = '248153007' then &quot;Male (finding)&quot;&#xA;    when Patient.sex() = '248152002' then &quot;Female (finding)&quot;&#xA;    else null&#xA;  end"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="10"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="SDE Sex"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;SDE Sex&quot;:&#xA;  SDE.&quot;SDE Sex&quot;"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="11"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Estimated Glomerular Filtration Rate For Females"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Risk Variable Estimated Glomerular Filtration Rate For Females&quot;:&#xA;  &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter&#xA;    return Tuple {&#xA;      encounterId: QualifyingEncounter.id,&#xA;      eGFR: &quot;QualifyingEncounter&quot;.femaleeGFR ( )&#xA;    }"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="12"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable First Heart Rate In Encounter"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Risk Variable First Heart Rate In Encounter&quot;:&#xA;  &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter&#xA;    return Tuple {&#xA;      encounterId: QualifyingEncounter.id,&#xA;      firstHeartRate: &quot;QualifyingEncounter&quot;.firstHeartRate ( )&#xA;    }"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="13"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Serum Creatinine Normal"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Serum Creatinine Normal&quot;:&#xA;  if ( Patient.sex ( ) = &quot;Female (finding)&quot;.code ) then 1.02 'mg/dL' &#xA;    else 1.18 'mg/dL'"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="14"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Encounter With 1.5 Times Serum Creatinine Increase"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Encounter With 1.5 Times Serum Creatinine Increase&quot;:&#xA;  from&#xA;    &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter,&#xA;    [&quot;LaboratoryResultObservation&quot;: &quot;Creatinine Mass Per Volume&quot;] HighCreatinineTest,&#xA;    [&quot;LaboratoryResultObservation&quot;: &quot;Creatinine Mass Per Volume&quot;] LowCreatinineTest&#xA;    let LowCreatinineTestTime: LowCreatinineTest.effective.earliest ( ),&#xA;    HighCreatinineTestTime: HighCreatinineTest.effective.earliest ( ),&#xA;    HospitalWithObservationPeriod: QualifyingEncounter.hospitalizationWithObservation ( )&#xA;    where ( HighCreatinineTest.value &gt; &quot;Serum Creatinine Normal&quot; )&#xA;      and LowCreatinineTest.status in { 'final', 'amended', 'corrected' }&#xA;      and HighCreatinineTest.status in { 'final', 'amended', 'corrected' }&#xA;      and HighCreatinineTest.value = &quot;QualifyingEncounter&quot;.highestSerumCreatinineResult ( )&#xA;      and LowCreatinineTest.value = &quot;QualifyingEncounter&quot;.lowestSerumCreatinineResult ( )&#xA;      and &quot;QualifyingEncounter&quot;.oneAndAHalfIncreaseInCreatinine ( ) &gt;= LowCreatinineTest.value&#xA;      and LowCreatinineTestTime 7 days or less before HighCreatinineTestTime&#xA;      and LowCreatinineTestTime during HospitalWithObservationPeriod&#xA;      and HighCreatinineTestTime during Interval[start of HospitalWithObservationPeriod + 48 hours, start of HospitalWithObservationPeriod + 30 days]&#xA;      and HighCreatinineTestTime during HospitalWithObservationPeriod&#xA;    return QualifyingEncounter"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="15"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Encounter With 2 Times Serum Creatinine Increase"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Encounter With 2 Times Serum Creatinine Increase&quot;:&#xA;  from&#xA;    &quot;Encounter With 1.5 Times Serum Creatinine Increase&quot; EncounterWithHighCreatinine,&#xA;    [&quot;LaboratoryResultObservation&quot;: &quot;Creatinine Mass Per Volume&quot;] HighCreatinineTest,&#xA;    [&quot;LaboratoryResultObservation&quot;: &quot;Creatinine Mass Per Volume&quot;] LowCreatinineTest&#xA;    let LowCreatinineTestTime: LowCreatinineTest.effective.earliest ( ),&#xA;    HighCreatinineTestTime: HighCreatinineTest.effective.earliest ( ),&#xA;    HospitalWithObservationPeriod: EncounterWithHighCreatinine.hospitalizationWithObservation ( )&#xA;    where ( HighCreatinineTest.value &gt; &quot;Serum Creatinine Normal&quot; )&#xA;      and LowCreatinineTest.status in { 'final', 'amended', 'corrected' }&#xA;      and HighCreatinineTest.status in { 'final', 'amended', 'corrected' }&#xA;      and HighCreatinineTest.value = &quot;EncounterWithHighCreatinine&quot;.highestSerumCreatinineResult ( )&#xA;      and LowCreatinineTest.value = &quot;EncounterWithHighCreatinine&quot;.lowestSerumCreatinineResult ( )&#xA;      and ( HighCreatinineTest.value as Quantity ) &gt;= ( LowCreatinineTest.value as Quantity )&#xA;      and LowCreatinineTestTime 7 days or less before HighCreatinineTestTime&#xA;      and LowCreatinineTestTime during HospitalWithObservationPeriod&#xA;      and HighCreatinineTestTime during Interval[start of HospitalWithObservationPeriod + 48 hours, start of HospitalWithObservationPeriod + 30 days]&#xA;      and HighCreatinineTestTime during HospitalWithObservationPeriod&#xA;    return EncounterWithHighCreatinine"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="16"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Encounter With Kidney Dialysis Started More Than 48 Hours After Arrival"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Encounter With Kidney Dialysis Started More Than 48 Hours After Arrival&quot;:&#xA;  from&#xA;    [&quot;Procedure&quot;: &quot;Hospital Based Dialysis Services&quot;] Dialysis,&#xA;    &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter&#xA;    let HospitalWithObservationPeriod: QualifyingEncounter.hospitalizationWithObservation ( )&#xA;    where Dialysis.performed.toInterval ( ) starts during Interval[start of HospitalWithObservationPeriod + 48 hours, end of HospitalWithObservationPeriod]&#xA;      and Dialysis.performed.toInterval ( ) starts during HospitalWithObservationPeriod&#xA;      and Dialysis.status = 'completed'&#xA;    return QualifyingEncounter"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="17"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Encounter With Kidney Dialysis Started More Than 48 Hours After Arrival Without High Creatinine"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Encounter With Kidney Dialysis Started More Than 48 Hours After Arrival Without High Creatinine&quot;:&#xA;  &quot;Encounter With Kidney Dialysis Started More Than 48 Hours After Arrival&quot; EncounterWithDialysisAfter48Hours&#xA;    where not ( exists ( &quot;Encounter With 2 Times Serum Creatinine Increase&quot; EncounterWithHighCreatinine&#xA;          where ( EncounterWithHighCreatinine.period includes EncounterWithDialysisAfter48Hours.period )&#xA;      )&#xA;    )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="18"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Numerator"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Numerator&quot;:&#xA;  &quot;Encounter With 2 Times Serum Creatinine Increase&quot;&#xA;    union &quot;Encounter With Kidney Dialysis Started More Than 48 Hours After Arrival Without High Creatinine&quot;"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="19"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable All Encounter Diagnoses With POA Indication"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Risk Variable All Encounter Diagnoses With POA Indication&quot;:&#xA;  from&#xA;    &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter,&#xA;    [Claim] clm&#xA;    where clm.status = 'active'&#xA;      and clm.use = 'claim'&#xA;      and exists ( clm.item ClaimItem&#xA;          where ClaimItem.encounter.references ( QualifyingEncounter )&#xA;            and exists ( clm.diagnosis Dx&#xA;                where Dx.sequence in clm.item.diagnosisSequence&#xA;                  and Dx.onAdmission in &quot;Present on Admission or Clinically Undetermined&quot;&#xA;            )&#xA;      )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="20"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Initial Population"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Initial Population&quot;:&#xA;  &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot;"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="21"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Denominator"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Denominator&quot;:&#xA;  &quot;Initial Population&quot;"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="22"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="SupplementalDataElements"/>
        </extension>
        <extension url="name">
          <valueString value="SDE Payer"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;SDE Payer&quot;:&#xA;  [USQualityCore.Coverage: type in &quot;Payer Type&quot;] Payer&#xA;    return {&#xA;      code: Payer.type,&#xA;      period: Payer.period&#xA;    }"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="23"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="SDE Payer"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;SDE Payer&quot;:&#xA;  SDE.&quot;SDE Payer&quot;"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="24"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable First Temperature In Encounter"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Risk Variable First Temperature In Encounter&quot;:&#xA;  &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter&#xA;    return Tuple {&#xA;      encounterId: QualifyingEncounter.id,&#xA;      firstTemperature: &quot;QualifyingEncounter&quot;.firstBodyTemperature ( )&#xA;    }"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="25"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="SupplementalDataElements"/>
        </extension>
        <extension url="name">
          <valueString value="SDE Ethnicity"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;SDE Ethnicity&quot;:&#xA;  (Patient.ethnicity()) E&#xA;    return Tuple {&#xA;      codes: { E.ombCategory } union E.detailed,&#xA;      display: E.text&#xA;    }"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="26"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="SDE Ethnicity"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;SDE Ethnicity&quot;:&#xA;  SDE.&quot;SDE Ethnicity&quot;"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="27"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Encounter With Less Than 2 Creatinine Results Within 48 Hours Of Arrival"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Encounter With Less Than 2 Creatinine Results Within 48 Hours Of Arrival&quot;:&#xA;  &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter&#xA;    where ( Count(&quot;QualifyingEncounter&quot;.creatinineLabTestwithResultwithinFirst48Hours()) &lt; 2 )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="28"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Male Encounter With eGFR Less Than 60"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Male Encounter With eGFR Less Than 60&quot;:&#xA;  &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter&#xA;    where &quot;QualifyingEncounter&quot;.maleeGFR ( ) is not null&#xA;      and &quot;QualifyingEncounter&quot;.maleeGFR ( ) as Decimal &lt; 60"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="29"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Female Encounter With eGFR Less Than 60"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Female Encounter With eGFR Less Than 60&quot;:&#xA;  &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter&#xA;    where &quot;QualifyingEncounter&quot;.femaleeGFR ( ) is not null&#xA;      and &quot;QualifyingEncounter&quot;.femaleeGFR ( ) as Decimal &lt; 60"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="30"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Encounter With Index eGFR Less Than 60 Within First 48 Hours"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Encounter With Index eGFR Less Than 60 Within First 48 Hours&quot;:&#xA;  &quot;Male Encounter With eGFR Less Than 60&quot;&#xA;    union &quot;Female Encounter With eGFR Less Than 60&quot;"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="31"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Increase Of 0.3 Or More Using Lowest Creatinine Within 24 Hours"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Increase Of 0.3 Or More Using Lowest Creatinine Within 24 Hours&quot;:&#xA;  from&#xA;    &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter,&#xA;    [&quot;LaboratoryResultObservation&quot;: &quot;Creatinine Mass Per Volume&quot;] IndexCreatinineLabResult,&#xA;    [&quot;LaboratoryResultObservation&quot;: &quot;Creatinine Mass Per Volume&quot;] SubsequentCreatinineLabResult&#xA;    let IndexCreatinineLabResultTime: IndexCreatinineLabResult.effective.earliest ( ),&#xA;    SubsequentCreatinineLabResultTime: SubsequentCreatinineLabResult.effective.earliest ( ),&#xA;    HospitalWithObservationPeriod: QualifyingEncounter.hospitalizationWithObservation ( )&#xA;    where IndexCreatinineLabResult.status in { 'final', 'amended', 'corrected' }&#xA;      and SubsequentCreatinineLabResult.status in { 'final', 'amended', 'corrected' }&#xA;      and ( ( SubsequentCreatinineLabResult.value as Quantity ) - ( IndexCreatinineLabResult.value as Quantity ) ) &gt; 0.299 'mg/dL'&#xA;      and IndexCreatinineLabResult.value = &quot;QualifyingEncounter&quot;.lowestSerumCreatinineResult ( )&#xA;      and IndexCreatinineLabResultTime during Interval[SubsequentCreatinineLabResultTime - 48 hours, SubsequentCreatinineLabResultTime]&#xA;      and IndexCreatinineLabResultTime during HospitalWithObservationPeriod&#xA;      and IndexCreatinineLabResultTime during Interval[start of HospitalWithObservationPeriod, start of HospitalWithObservationPeriod + 24 hours]&#xA;      and SubsequentCreatinineLabResultTime during HospitalWithObservationPeriod&#xA;      and SubsequentCreatinineLabResultTime during Interval[start of HospitalWithObservationPeriod, start of HospitalWithObservationPeriod + 48 hours]&#xA;      and IndexCreatinineLabResult.id != SubsequentCreatinineLabResult.id&#xA;    return QualifyingEncounter"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="32"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Increase Of 0.3 Or More Using First Creatinine Within First 48 Hours"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Increase Of 0.3 Or More Using First Creatinine Within First 48 Hours&quot;:&#xA;  from&#xA;    &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter,&#xA;    [&quot;LaboratoryResultObservation&quot;: &quot;Creatinine Mass Per Volume&quot;] IndexCreatinineLabResult,&#xA;    [&quot;LaboratoryResultObservation&quot;: &quot;Creatinine Mass Per Volume&quot;] SubsequentCreatinineLabResult&#xA;    let IndexCreatinineLabResultTime: IndexCreatinineLabResult.effective.earliest ( ),&#xA;    SubsequentCreatinineLabResultTime: SubsequentCreatinineLabResult.effective.earliest ( ),&#xA;    HospitalWithObservationPeriod: QualifyingEncounter.hospitalizationWithObservation ( )&#xA;    where IndexCreatinineLabResult.status in { 'final', 'amended', 'corrected' }&#xA;      and SubsequentCreatinineLabResult.status in { 'final', 'amended', 'corrected' }&#xA;      and ( ( SubsequentCreatinineLabResult.value as Quantity ) - ( IndexCreatinineLabResult.value as Quantity ) ) &gt; 0.299 'mg/dL'&#xA;      and IndexCreatinineLabResult.value as Quantity = singleton from &quot;QualifyingEncounter&quot;.earliestSerumCreatinineResult ( )&#xA;      and IndexCreatinineLabResultTime during Interval[SubsequentCreatinineLabResultTime - 48 hours, SubsequentCreatinineLabResultTime]&#xA;      and IndexCreatinineLabResultTime during HospitalWithObservationPeriod&#xA;      and SubsequentCreatinineLabResultTime during Interval[start of HospitalWithObservationPeriod, start of HospitalWithObservationPeriod + 48 hours]&#xA;      and SubsequentCreatinineLabResultTime during HospitalWithObservationPeriod&#xA;      and IndexCreatinineLabResultTime during Interval[start of HospitalWithObservationPeriod, start of HospitalWithObservationPeriod + 48 hours]&#xA;      and IndexCreatinineLabResult.id != SubsequentCreatinineLabResult.id&#xA;    return QualifyingEncounter"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="33"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Encounter With 0.3 mg dL Or More Increase In Creatinine"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Encounter With 0.3 mg dL Or More Increase In Creatinine&quot;:&#xA;  &quot;Increase Of 0.3 Or More Using Lowest Creatinine Within 24 Hours&quot;&#xA;    union &quot;Increase Of 0.3 Or More Using First Creatinine Within First 48 Hours&quot;"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="34"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Encounter With Kidney Dialysis Started 48 Hours Or Less After Arrival"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Encounter With Kidney Dialysis Started 48 Hours Or Less After Arrival&quot;:&#xA;  from&#xA;    [&quot;Procedure&quot;: &quot;Hospital Based Dialysis Services&quot;] Dialysis,&#xA;    &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter&#xA;    let HospitalWithObservationPeriod: QualifyingEncounter.hospitalizationWithObservation ( )&#xA;    where Dialysis.status = 'completed'&#xA;      and Dialysis.performed.toInterval ( ) starts during Interval[start of HospitalWithObservationPeriod, start of HospitalWithObservationPeriod + 48 hours]&#xA;      and Dialysis.performed.toInterval ( ) starts during HospitalWithObservationPeriod&#xA;    return QualifyingEncounter"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="35"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Encounter With Kidney Dialysis Started 48 Hours Or Less After Arrival Without High Creatinine"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Encounter With Kidney Dialysis Started 48 Hours Or Less After Arrival Without High Creatinine&quot;:&#xA;  &quot;Encounter With Kidney Dialysis Started 48 Hours Or Less After Arrival&quot; EncounterWithKidneyDialysis48HoursOrAfter&#xA;    where not ( exists ( &quot;Encounter With 2 Times Serum Creatinine Increase&quot; EncounterWithHighCreatinine&#xA;          where ( EncounterWithHighCreatinine.period includes EncounterWithKidneyDialysis48HoursOrAfter.period )&#xA;      )&#xA;    )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="36"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Encounter With High Risk Diagnosis For AKI"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Encounter With High Risk Diagnosis For AKI&quot;:&#xA;  &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter&#xA;    where ( QualifyingEncounter.reasonCode in &quot;High Risk Diagnosis for AKI&quot;&#xA;        or QualifyingEncounter.encounterDiagnosis ( ).code in &quot;High Risk Diagnosis for AKI&quot;&#xA;    )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="37"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Encounter With High Risk Procedures For AKI"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Encounter With High Risk Procedures For AKI&quot;:&#xA;  &quot;Encounter With Creatinine And Without Obstetrical Conditions&quot; QualifyingEncounter&#xA;    with [&quot;Procedure&quot;: &quot;High Risk Procedures for AKI&quot;] HighRiskProcedures&#xA;      such that HighRiskProcedures.status = 'completed'&#xA;        and HighRiskProcedures.performed.toInterval ( ) starts during QualifyingEncounter.hospitalizationWithObservation ( )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="38"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="Denominator Exclusion"/>
        </extension>
        <extension url="statement">
          <valueString value="define &quot;Denominator Exclusion&quot;:&#xA;  &quot;Encounter With Less Than 2 Creatinine Results Within 48 Hours Of Arrival&quot;&#xA;    union &quot;Encounter With Index eGFR Less Than 60 Within First 48 Hours&quot;&#xA;    union &quot;Encounter With 0.3 mg dL Or More Increase In Creatinine&quot;&#xA;    union &quot;Encounter With Kidney Dialysis Started 48 Hours Or Less After Arrival Without High Creatinine&quot;&#xA;    union &quot;Encounter With High Risk Diagnosis For AKI&quot;&#xA;    union &quot;Encounter With High Risk Procedures For AKI&quot;"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="39"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="FHIRHelpers"/>
        </extension>
        <extension url="name">
          <valueString value="ToString"/>
        </extension>
        <extension url="statement">
          <valueString value="define function ToString(value string): value.value"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="40"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="USCoreCommon"/>
        </extension>
        <extension url="name">
          <valueString value="sex"/>
        </extension>
        <extension url="statement">
          <valueString value="/*&#xA;@description: Returns the sex element as defined for the USCore patient profile&#xA;*/&#xA;define fluent function sex(patient Patient):&#xA;  patient.ext('http://hl7.org/fhir/us/core/StructureDefinition/us-core-sex').value as FHIR.code"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="41"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="FHIRCommon"/>
        </extension>
        <extension url="name">
          <valueString value="ext"/>
        </extension>
        <extension url="statement">
          <valueString value="/*&#xA;@description: Returns the single extension (if present) on the given resource with the specified url.&#xA;@comment: This function uses singleton from to ensure that a run-time exception is thrown if there&#xA;is more than one extension on the given resource with the specified url.&#xA;*/&#xA;define fluent function ext(domainResource DomainResource, url String):&#xA;  singleton from domainResource.exts(url)"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="42"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="FHIRCommon"/>
        </extension>
        <extension url="name">
          <valueString value="exts"/>
        </extension>
        <extension url="statement">
          <valueString value="/*&#xA;@description: Returns any extensions defined on the given resource with the specified url&#xA;*/&#xA;define fluent function exts(domainResource DomainResource, url String):&#xA;  domainResource.extension E&#xA;    where E.url = url&#xA;    return E"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="43"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="FHIRHelpers"/>
        </extension>
        <extension url="name">
          <valueString value="ToString"/>
        </extension>
        <extension url="statement">
          <valueString value="define function ToString(value uri): value.value"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="44"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="FHIRHelpers"/>
        </extension>
        <extension url="name">
          <valueString value="ToInterval"/>
        </extension>
        <extension url="statement">
          <valueString value="/*&#xA;@description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period)&#xA;value to a CQL DateTime Interval&#xA;@comment: If the start value of the given period is unspecified, the starting&#xA;boundary of the resulting interval will be open (meaning the start of the interval&#xA;is unknown, as opposed to interpreted as the beginning of time).&#xA;*/&#xA;define function ToInterval(period FHIR.Period):&#xA;    if period is null then&#xA;        null&#xA;    else&#xA;        if period.&quot;start&quot; is null then&#xA;            Interval(period.&quot;start&quot;.value, period.&quot;end&quot;.value]&#xA;        else&#xA;            Interval[period.&quot;start&quot;.value, period.&quot;end&quot;.value]"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="45"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="FHIRHelpers"/>
        </extension>
        <extension url="name">
          <valueString value="ToString"/>
        </extension>
        <extension url="statement">
          <valueString value="define function ToString(value EncounterStatus): value.value"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="46"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="FHIRHelpers"/>
        </extension>
        <extension url="name">
          <valueString value="ToDate"/>
        </extension>
        <extension url="statement">
          <valueString value="define function ToDate(value date): value.value"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="47"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CQMCommon"/>
        </extension>
        <extension url="name">
          <valueString value="hospitalizationWithObservation"/>
        </extension>
        <extension url="statement">
          <valueString value="/*&#xA;@description: Hospitalization with Observation returns the total interval from the start of any immediately prior emergency department visit through the observation visit to the discharge of the given encounter&#xA;*/&#xA;define fluent function hospitalizationWithObservation(TheEncounter Encounter ):&#xA;  TheEncounter Visit&#xA;  &#x9;&#x9;let ObsVisit: Last([Encounter: &quot;Observation Services&quot;] LastObs&#xA;  &#x9;&#x9;&#x9;&#x9;where LastObs.status = 'finished'&#xA;            and LastObs.period ends 1 hour or less on or before start of Visit.period&#xA;  &#x9;&#x9;&#x9;&#x9;sort by end of period&#xA;  &#x9;&#x9;&#x9;),&#xA;  &#x9;&#x9;&#x9;VisitStart: Coalesce(start of ObsVisit.period, start of Visit.period),&#xA;  &#x9;&#x9;&#x9;EDVisit: Last([Encounter: &quot;Emergency Department Visit&quot;] LastED&#xA;  &#x9;&#x9;&#x9;&#x9;where LastED.status = 'finished'&#xA;            and LastED.period ends 1 hour or less on or before VisitStart&#xA;  &#x9;&#x9;&#x9;&#x9;sort by end of period&#xA;  &#x9;&#x9;&#x9;)&#xA;  &#x9;&#x9;return Interval[Coalesce(start of EDVisit.period, VisitStart), end of Visit.period]"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="48"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="FHIRCommon"/>
        </extension>
        <extension url="name">
          <valueString value="earliest"/>
        </extension>
        <extension url="statement">
          <valueString value="/*&#xA;@description: Given an interval, return the starting point if the interval has a starting boundary specified,&#xA;otherwise, return the ending point&#xA;*/&#xA;define fluent function earliest(choice Choice&lt;FHIR.dateTime, FHIR.Period, FHIR.Age, FHIR.Range&gt;):&#xA;  (choice.toInterval()) period&#xA;    return&#xA;      if (period.hasStart()) then start of period&#xA;      else end of period"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="49"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="FHIRCommon"/>
        </extension>
        <extension url="name">
          <valueString value="toInterval"/>
        </extension>
        <extension url="statement">
          <valueString value="/*&#xA;@description: Normalizes a value that is a choice of timing-valued types to an equivalent interval&#xA;@comment: Normalizes a choice type of FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instance, FHIR.string, FHIR.Age, or FHIR.Range types&#xA;to an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible&#xA;representations for timing-valued elements in FHIR, allowing this function to be used across any resource.&#xA;&#xA;The input can be provided as a dateTime, Period, Timing, instant, string, Age, or Range.&#xA;The intent of this function is to provide a clear and concise mechanism to treat single&#xA;elements that have multiple possible representations as intervals so that logic doesn't have to account&#xA;for the variability. More complex calculations (such as medication request period or dispense period&#xA;calculation) need specific guidance and consideration. That guidance may make use of this function, but&#xA;the focus of this function is on single element calculations where the semantics are unambiguous.&#xA;If the input is a dateTime, the result a DateTime Interval beginning and ending on that dateTime.&#xA;If the input is a Period, the result is a DateTime Interval.&#xA;If the input is a Timing, an error is raised indicating a single interval cannot be computed from a Timing.&#xA;If the input is an instant, the result is a DateTime Interval beginning and ending on that instant.&#xA;If the input is a string, an error is raised indicating a single interval cannot be computed from a string.&#xA;If the input is an Age, the result is a DateTime Interval beginning when the patient was the given Age,&#xA;and ending immediately prior to when the patient was the given Age plus one year.&#xA;If the input is a Range, the result is a DateTime Interval beginning when the patient was the Age given&#xA;by the low end of the Range, and ending immediately prior to when the patient was the Age given by the&#xA;high end of the Range plus one year.&#xA;&#xA;NOTE: Due to the&#xA;complexity of determining a single interval from a Timing or String type, this function will throw a run-time exception if it is used&#xA;with a Timing or String.&#xA;*/&#xA;define fluent function toInterval(choice Choice&lt;FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instant, FHIR.string, FHIR.Age, FHIR.Range&gt;):&#xA;  case&#xA;    when choice is FHIR.dateTime then&#xA;      Interval[FHIRHelpers.ToDateTime(choice as FHIR.dateTime), FHIRHelpers.ToDateTime(choice as FHIR.dateTime)]&#xA;    when choice is FHIR.Period then&#xA;      FHIRHelpers.ToInterval(choice as FHIR.Period)&#xA;    when choice is FHIR.instant then&#xA;      Interval[FHIRHelpers.ToDateTime(choice as FHIR.instant), FHIRHelpers.ToDateTime(choice as FHIR.instant)]&#xA;    when choice is FHIR.Age then&#xA;      Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age),&#xA;        FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age) + 1 year)&#xA;    when choice is FHIR.Range then&#xA;      Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).low),&#xA;        FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).high) + 1 year)&#xA;    when choice is FHIR.Timing then&#xA;      Message(null as Interval&lt;DateTime&gt;, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a Timing value is not supported')&#xA;    when choice is FHIR.string then&#xA;      Message(null as Interval&lt;DateTime&gt;, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a String value is not supported')&#xA;    else&#xA;      null as Interval&lt;DateTime&gt;&#xA;  end"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="50"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="FHIRHelpers"/>
        </extension>
        <extension url="name">
          <valueString value="ToDateTime"/>
        </extension>
        <extension url="statement">
          <valueString value="define function ToDateTime(value dateTime): value.value"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="51"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="FHIRHelpers"/>
        </extension>
        <extension url="name">
          <valueString value="ToDateTime"/>
        </extension>
        <extension url="statement">
          <valueString value="define function ToDateTime(value instant): value.value"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="52"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="FHIRHelpers"/>
        </extension>
        <extension url="name">
          <valueString value="ToQuantity"/>
        </extension>
        <extension url="statement">
          <valueString value="/*&#xA;@description: Converts the given FHIR [Quantity](https://hl7.org/fhir/datatypes.html#Quantity) &#xA;value to a CQL Quantity&#xA;@comment: If the given quantity has a comparator specified, a runtime error is raised. If the given quantity&#xA;has a system other than UCUM (i.e. `http://unitsofmeasure.org`) or CQL calendar units (i.e. `http://hl7.org/fhirpath/CodeSystem/calendar-units`)&#xA;an error is raised. For UCUM to calendar units, the `ToCalendarUnit` function is used.&#xA;@seealso: ToCalendarUnit&#xA;*/&#xA;define function ToQuantity(quantity FHIR.Quantity):&#xA;    case&#xA;        when quantity is null then null&#xA;        when quantity.value is null then null&#xA;        when quantity.comparator is not null then&#xA;            Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')&#xA;        when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'&#xA;              or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then&#xA;            System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }&#xA;        else&#xA;            Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' &amp; quantity.unit.value &amp; ' (' &amp; quantity.system.value &amp; '|' &amp; quantity.code.value &amp; ')')&#xA;    end"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="53"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="FHIRHelpers"/>
        </extension>
        <extension url="name">
          <valueString value="ToCalendarUnit"/>
        </extension>
        <extension url="statement">
          <valueString value="/*&#xA;@description: Converts a UCUM definite duration unit to a CQL calendar duration&#xA;unit using conversions specified in the [quantities](https://cql.hl7.org/02-authorsguide.html#quantities) &#xA;topic of the CQL specification.&#xA;@comment: Note that for durations above days (or weeks), the conversion is understood to be approximate&#xA;*/&#xA;define function ToCalendarUnit(unit System.String):&#xA;    case unit&#xA;        when 'ms' then 'millisecond'&#xA;        when 's' then 'second'&#xA;        when 'min' then 'minute'&#xA;        when 'h' then 'hour'&#xA;        when 'd' then 'day'&#xA;        when 'wk' then 'week'&#xA;        when 'mo' then 'month'&#xA;        when 'a' then 'year'&#xA;        else unit&#xA;    end"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="54"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="FHIRCommon"/>
        </extension>
        <extension url="name">
          <valueString value="hasStart"/>
        </extension>
        <extension url="statement">
          <valueString value="/*&#xA;@description: Given an interval, return true if the interval has a starting boundary specified&#xA;(i.e. the start of the interval is not null and not the minimum DateTime value)&#xA;*/&#xA;define fluent function hasStart(period Interval&lt;DateTime&gt;):&#xA;  not ( start of period is null&#xA;      or start of period = minimum DateTime&#xA;  )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="55"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="FHIRHelpers"/>
        </extension>
        <extension url="name">
          <valueString value="ToString"/>
        </extension>
        <extension url="statement">
          <valueString value="define function ToString(value ObservationStatus): value.value"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="56"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="FHIRHelpers"/>
        </extension>
        <extension url="name">
          <valueString value="ToConcept"/>
        </extension>
        <extension url="statement">
          <valueString value="/*&#xA;@description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.&#xA;*/&#xA;define function ToConcept(concept FHIR.CodeableConcept):&#xA;    if concept is null then&#xA;        null&#xA;    else&#xA;        System.Concept {&#xA;            codes: concept.coding C return ToCode(C),&#xA;            display: concept.text.value&#xA;        }"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="57"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="FHIRHelpers"/>
        </extension>
        <extension url="name">
          <valueString value="ToCode"/>
        </extension>
        <extension url="statement">
          <valueString value="/*&#xA;@description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code.&#xA;*/&#xA;define function ToCode(coding FHIR.Coding):&#xA;    if coding is null then&#xA;        null&#xA;    else&#xA;        System.Code {&#xA;          code: coding.code.value,&#xA;          system: coding.system.value,&#xA;          version: coding.version.value,&#xA;          display: coding.display.value&#xA;        }"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="58"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CQMCommon"/>
        </extension>
        <extension url="name">
          <valueString value="encounterDiagnosis"/>
        </extension>
        <extension url="statement">
          <valueString value="/*  &#xA;@description: Returns the Condition resources referenced by the diagnosis element of the Encounter  &#xA;*/&#xA;define fluent function encounterDiagnosis(Encounter Encounter ):&#xA;  Encounter.reasonReference D&#xA;    return singleton from (([ConditionEncounterDiagnosis] union [ConditionProblemsHealthConcerns]) C where D.references(C.id))"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="59"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="FHIRCommon"/>
        </extension>
        <extension url="name">
          <valueString value="references"/>
        </extension>
        <extension url="statement">
          <valueString value="/*&#xA;@description: Returns true if the given reference is to the given resourceId&#xA;@comment: Returns true if the `resourceId` parameter exactly equals the tail of the given reference.&#xA;NOTE: This function assumes resources from the same source server.&#xA;*/&#xA;define fluent function references(reference FHIR.Reference, resourceId String):&#xA;  resourceId = Last(Split(reference.reference, '/'))"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="60"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="firstRespiratoryRate"/>
        </extension>
        <extension url="statement">
          <valueString value="define fluent function &quot;firstRespiratoryRate&quot;(QualifyingEncounter Encounter):&#xA;  First([&quot;USCore.RespiratoryRateProfile&quot;] FirstRespiration&#xA;      where FirstRespiration.effective.earliest() during QualifyingEncounter.hospitalizationWithObservation()&#xA;        and FirstRespiration.value is not null&#xA;      sort by effective.earliest()&#xA;  ).value as Quantity"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="61"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="maleeGFR"/>
        </extension>
        <extension url="statement">
          <valueString value="define fluent function &quot;maleeGFR&quot;(QualifyingEncounter Encounter):&#xA;  if Patient.sex () = &quot;Male (finding)&quot;.code then ( 142 * Min({(&quot;QualifyingEncounter&quot;.indexCreatinine().value / 0.9), 1 }) ^ ( - 0.302 ) * Max({(&quot;QualifyingEncounter&quot;.indexCreatinine().value / 0.9), 1 }) ^ ( - 1.200 ) * 0.9938 ^ ( AgeInYearsAt(date from start of QualifyingEncounter.hospitalizationWithObservation()) ) ) &#xA;    else null"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="62"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="indexCreatinine"/>
        </extension>
        <extension url="statement">
          <valueString value="define fluent function &quot;indexCreatinine&quot;(QualifyingEncounter Encounter):&#xA;  Coalesce(&quot;QualifyingEncounter&quot;.lowestSerumCreatinineIn24Hours(), singleton from &quot;QualifyingEncounter&quot;.firstSerumCreatinineIn48Hours())"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="63"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="lowestSerumCreatinineIn24Hours"/>
        </extension>
        <extension url="statement">
          <valueString value="define fluent function &quot;lowestSerumCreatinineIn24Hours&quot;(QualifyingEncounter Encounter):&#xA;  Min((from&#xA;        &quot;Qualifying Creatinine Lab Result By Time&quot; LabTestsLow&#xA;        let LabResult: LabTestsLow.CrLabResult&#xA;        where LabTestsLow.CrEncInPtId = QualifyingEncounter.id&#xA;          and LabTestsLow.CrLabTime during Interval[start of QualifyingEncounter.hospitalizationWithObservation(), start of QualifyingEncounter.hospitalizationWithObservation() + 24 hours]&#xA;    ).CrLabResult&#xA;  )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="64"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="FHIRCommon"/>
        </extension>
        <extension url="name">
          <valueString value="isLaboratory"/>
        </extension>
        <extension url="statement">
          <valueString value="/*&#xA;@description: Returns true if the given observation is a laboratory observation&#xA;*/&#xA;define fluent function isLaboratory(observation FHIR.Observation):&#xA;  exists (observation.category C&#xA;    where C ~ &quot;laboratory&quot;&#xA;  )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="65"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="firstSerumCreatinineIn48Hours"/>
        </extension>
        <extension url="statement">
          <valueString value="define fluent function &quot;firstSerumCreatinineIn48Hours&quot;(QualifyingEncounter Encounter):&#xA;  from&#xA;    &quot;Qualifying Creatinine Lab Result By Time&quot; LabTests&#xA;    let LabResult: LabTests.CrLabResult&#xA;    where ( &quot;QualifyingEncounter&quot;.earliestSerumCreatinineTimeIn48Hours ( ) = LabTests.CrLabTime )&#xA;    return LabResult as Quantity"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="66"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="earliestSerumCreatinineTimeIn48Hours"/>
        </extension>
        <extension url="statement">
          <valueString value="define fluent function &quot;earliestSerumCreatinineTimeIn48Hours&quot;(QualifyingEncounter Encounter):&#xA;  ( Min((from&#xA;          &quot;Qualifying Creatinine Lab Result By Time&quot; LabTests48&#xA;          let LabResult48: LabTests48.CrLabResult&#xA;          where LabTests48.CrEncInPtId = QualifyingEncounter.id&#xA;            and LabTests48.CrLabTime during Interval[start of QualifyingEncounter.hospitalizationWithObservation(), start of QualifyingEncounter.hospitalizationWithObservation() + 48 hours]&#xA;      ).CrLabTime&#xA;    )&#xA;  )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="67"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="firstSystolicBloodPressure"/>
        </extension>
        <extension url="statement">
          <valueString value="define fluent function &quot;firstSystolicBloodPressure&quot;(QualifyingEncounter Encounter):&#xA;  First(&quot;Qualifying Blood Pressure Reading&quot; SBPReading&#xA;      where SBPReading.effective.earliest() during QualifyingEncounter.hospitalizationWithObservation()&#xA;      return singleton from(SBPReading.component SBPComponent&#xA;          where SBPComponent.code ~ &quot;Systolic blood pressure&quot;&#xA;          return SBPComponent.value as Quantity&#xA;      )&#xA;  )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="68"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="USCoreCommon"/>
        </extension>
        <extension url="name">
          <valueString value="race"/>
        </extension>
        <extension url="statement">
          <valueString value="define fluent function race(patient Patient):&#xA;  (patient.ext('http://hl7.org/fhir/us/core/StructureDefinition/us-core-race')) E&#xA;    return {&#xA;      ombCategory: (E.exts('ombCategory')) o return o.value as FHIR.Coding,&#xA;      detailed: (E.exts('detailed')) d return d.value as FHIR.Coding,&#xA;      text: E.ext('text').value as FHIR.string&#xA;    }"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="69"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="FHIRCommon"/>
        </extension>
        <extension url="name">
          <valueString value="exts"/>
        </extension>
        <extension url="statement">
          <valueString value="/*&#xA;@description: Returns any extensions defined on the given element with the specified url.&#xA;*/&#xA;define fluent function exts(element Element, url String):&#xA;  element.extension E&#xA;    where E.url = url&#xA;    return E"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="70"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="FHIRCommon"/>
        </extension>
        <extension url="name">
          <valueString value="ext"/>
        </extension>
        <extension url="statement">
          <valueString value="/*&#xA;@description: Returns the single extension (if present) on the given element with the specified url.&#xA;@comment: This function uses singleton from to ensure that a run-time exception is thrown if there&#xA;is more than one extension on the given element with the specified url.&#xA;*/&#xA;define fluent function ext(element Element, url String):&#xA;  singleton from element.exts(url)"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="71"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="femaleeGFR"/>
        </extension>
        <extension url="statement">
          <valueString value="define fluent function &quot;femaleeGFR&quot;(QualifyingEncounter Encounter):&#xA;  if Patient.sex () = &quot;Female (finding)&quot;.code then ( 142 * Min({(&quot;QualifyingEncounter&quot;.indexCreatinine().value / 0.7), 1 }) ^ ( - 0.241 ) * Max({(&quot;QualifyingEncounter&quot;.indexCreatinine().value / 0.7), 1 }) ^ ( - 1.200 ) * 0.9938 ^ ( AgeInYearsAt(date from start of QualifyingEncounter.hospitalizationWithObservation()) ) * 1.012 ) &#xA;    else null"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="72"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="firstHeartRate"/>
        </extension>
        <extension url="statement">
          <valueString value="define fluent function &quot;firstHeartRate&quot;(QualifyingEncounter Encounter):&#xA;  First([&quot;USCore.HeartRateProfile&quot;] FirstHeartBeats&#xA;      where FirstHeartBeats.effective.earliest() during QualifyingEncounter.hospitalizationWithObservation()&#xA;        and FirstHeartBeats.value is not null&#xA;      sort by effective.earliest()&#xA;  ).value as Quantity"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="73"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="highestSerumCreatinineResult"/>
        </extension>
        <extension url="statement">
          <valueString value="define fluent function &quot;highestSerumCreatinineResult&quot;(QualifyingEncounter Encounter):&#xA;  ( Max((from&#xA;          &quot;Qualifying Creatinine Lab Result By Time&quot; LabTests&#xA;          let LabResult: LabTests.CrLabResult&#xA;          where LabTests.CrEncInPtId = QualifyingEncounter.id&#xA;      ).CrLabResult&#xA;    )&#xA;  )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="74"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="lowestSerumCreatinineResult"/>
        </extension>
        <extension url="statement">
          <valueString value="define fluent function &quot;lowestSerumCreatinineResult&quot;(QualifyingEncounter Encounter):&#xA;  ( Min((from&#xA;          &quot;Qualifying Creatinine Lab Result By Time&quot; LabTests&#xA;          let LabResult: LabTests.CrLabResult&#xA;          where LabTests.CrEncInPtId = QualifyingEncounter.id&#xA;      ).CrLabResult&#xA;    )&#xA;  )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="75"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="oneAndAHalfIncreaseInCreatinine"/>
        </extension>
        <extension url="statement">
          <valueString value="define fluent function &quot;oneAndAHalfIncreaseInCreatinine&quot;(QualifyingEncounter Encounter):&#xA;  &quot;QualifyingEncounter&quot;.highestSerumCreatinineResult ( ) / 1.5"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="76"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="FHIRHelpers"/>
        </extension>
        <extension url="name">
          <valueString value="ToString"/>
        </extension>
        <extension url="statement">
          <valueString value="define function ToString(value ProcedureStatus): value.value"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="77"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="FHIRHelpers"/>
        </extension>
        <extension url="name">
          <valueString value="ToString"/>
        </extension>
        <extension url="statement">
          <valueString value="define function ToString(value ClaimStatus): value.value"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="78"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="FHIRHelpers"/>
        </extension>
        <extension url="name">
          <valueString value="ToString"/>
        </extension>
        <extension url="statement">
          <valueString value="define function ToString(value Use): value.value"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="79"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="FHIRCommon"/>
        </extension>
        <extension url="name">
          <valueString value="references"/>
        </extension>
        <extension url="statement">
          <valueString value="/*&#xA;@description: Returns true if any of the given references are to the given resource&#xA;@comment: Returns true if the `id` element of the given resource exactly equals the tail of any of the given references.&#xA;NOTE: This function assumes resources from the same source server.&#xA;*/&#xA;define fluent function references(references List&lt;FHIR.Reference&gt;, resource FHIR.Resource):&#xA;  exists (references R where R.references(resource))"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="80"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="FHIRCommon"/>
        </extension>
        <extension url="name">
          <valueString value="references"/>
        </extension>
        <extension url="statement">
          <valueString value="/*&#xA;@description: Returns true if the given reference is to the given resource&#xA;@comment: Returns true if the `id` element of the given resource exactly equals the tail of the given reference.&#xA;NOTE: This function assumes resources from the same source server.&#xA;*/&#xA;define fluent function references(reference FHIR.Reference, resource FHIR.Resource):&#xA;  resource.id = Last(Split(reference.reference, '/'))"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="81"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="firstBodyTemperature"/>
        </extension>
        <extension url="statement">
          <valueString value="define fluent function &quot;firstBodyTemperature&quot;(QualifyingEncounter Encounter):&#xA;  First([&quot;USCore.BodyTemperatureProfile&quot;] FirstTemperature&#xA;      where FirstTemperature.effective.earliest() during QualifyingEncounter.hospitalizationWithObservation()&#xA;        and FirstTemperature.value is not null&#xA;      sort by effective.earliest()&#xA;  ).value as Quantity"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="82"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="USCoreCommon"/>
        </extension>
        <extension url="name">
          <valueString value="ethnicity"/>
        </extension>
        <extension url="statement">
          <valueString value="define fluent function ethnicity(patient Patient):&#xA;  (patient.ext('http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity')) E&#xA;    return {&#xA;      ombCategory: E.ext('ombCategory').value as FHIR.Coding,&#xA;      detailed: (E.exts('detailed')) d return d.value as FHIR.Coding,&#xA;      text: E.ext('text').value as FHIR.string&#xA;    }"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="83"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="creatinineLabTestwithResultwithinFirst48Hours"/>
        </extension>
        <extension url="statement">
          <valueString value="define fluent function &quot;creatinineLabTestwithResultwithinFirst48Hours&quot;(QualifyingEncounter Encounter):&#xA;  from&#xA;    [&quot;LaboratoryResultObservation&quot;: &quot;Creatinine Mass Per Volume&quot;] CreatinineTest&#xA;    where CreatinineTest.value as Quantity is not null&#xA;      and CreatinineTest.effective.earliest ( ) during Interval[start of QualifyingEncounter.hospitalizationWithObservation ( ), start of QualifyingEncounter.hospitalizationWithObservation ( ) + 48 hours]&#xA;      and CreatinineTest.effective.earliest ( ) during QualifyingEncounter.hospitalizationWithObservation ( )&#xA;      and CreatinineTest.status in { 'final', 'amended', 'corrected' }&#xA;    return CreatinineTest"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="84"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="earliestSerumCreatinineResult"/>
        </extension>
        <extension url="statement">
          <valueString value="define fluent function &quot;earliestSerumCreatinineResult&quot;(QualifyingEncounter Encounter):&#xA;  from&#xA;    &quot;Qualifying Creatinine Lab Result By Time&quot; LabTests&#xA;    let LabResult: LabTests.CrLabResult&#xA;    where ( &quot;QualifyingEncounter&quot;.earliestSerumCreatinineTime ( ) = LabTests.CrLabTime )&#xA;    return LabResult as Quantity"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="85"/>
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS832FHIRHHAKI"/>
        </extension>
        <extension url="name">
          <valueString value="earliestSerumCreatinineTime"/>
        </extension>
        <extension url="statement">
          <valueString value="define fluent function &quot;earliestSerumCreatinineTime&quot;(QualifyingEncounter Encounter):&#xA;  ( Min((from&#xA;          &quot;Qualifying Creatinine Lab Result By Time&quot; LabTestsEarly&#xA;          let LabResultEarly: LabTestsEarly.CrLabResult&#xA;          where LabTestsEarly.CrEncInPtId = QualifyingEncounter.id&#xA;      ).CrLabTime&#xA;    )&#xA;  )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="86"/>
        </extension>
      </extension>
      <name value="EffectiveDataRequirements"/>
      <status value="active"/>
      <type>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/library-type"/>
          <code value="module-definition"/>
        </coding>
      </type>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="USQualityCore model information"/>
        <resource value="https://madie.cms.gov/Library/USQualityCore-ModelInfo|0.1.0-cibuild"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="USCore model information"/>
        <resource value="http://hl7.org/fhir/us/cql/Library/USCore-ModelInfo|6.1.0-derived"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="FHIR model information"/>
        <resource value="http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Library FHIRHelpers"/>
        <resource value="http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Library USCoreCommon"/>
        <resource value="http://hl7.org/fhir/us/cql/Library/USCoreCommon|2.0.0-ballot"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Library FHIRCommon"/>
        <resource value="http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Library CQMCommon"/>
        <resource value="https://madie.cms.gov/Library/CQMCommon|5.1.000"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Library SDE"/>
        <resource value="https://madie.cms.gov/Library/SupplementalDataElements|6.1.000"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Code system SNOMEDCT"/>
        <resource value="http://snomed.info/sct"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Code system ObservationCategoryCodes"/>
        <resource value="http://terminology.hl7.org/CodeSystem/observation-category"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Code system LOINC"/>
        <resource value="http://loinc.org"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Encounter Inpatient"/>
        <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Observation Services"/>
        <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Emergency Department Visit"/>
        <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Creatinine Mass Per Volume"/>
        <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.21"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Obstetrics and VTE Obstetrics"/>
        <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.33"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Hospital Based Dialysis Services"/>
        <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.199"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Present on Admission or Clinically Undetermined"/>
        <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.197"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Payer Type"/>
        <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set High Risk Diagnosis for AKI"/>
        <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.12"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set High Risk Procedures for AKI"/>
        <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.19"/>
      </relatedArtifact>
      <parameter>
        <name value="Measurement Period"/>
        <use value="in"/>
        <min value="0"/>
        <max value="1"/>
        <type value="Period"/>
      </parameter>
      <parameter>
        <name value="Risk Variable First Respiratory Rate In Encounter"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Estimated Glomerular Filtration Rate For Males"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable First Systolic Blood Pressure In Encounter"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="SDE Race"/>
        <use value="out"/>
        <min value="0"/>
        <max value="1"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="SDE Sex"/>
        <use value="out"/>
        <min value="0"/>
        <max value="1"/>
        <type value="Coding"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Estimated Glomerular Filtration Rate For Females"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable First Heart Rate In Encounter"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Numerator"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Encounter"/>
      </parameter>
      <parameter>
        <name value="Risk Variable All Encounter Diagnoses With POA Indication"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Denominator"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Encounter"/>
      </parameter>
      <parameter>
        <name value="SDE Payer"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable First Temperature In Encounter"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Initial Population"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Encounter"/>
      </parameter>
      <parameter>
        <name value="SDE Ethnicity"/>
        <use value="out"/>
        <min value="0"/>
        <max value="1"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Denominator Exclusion"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Encounter"/>
      </parameter>
      <dataRequirement>
        <type value="Patient"/>
        <profile value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-patient"/>
        <mustSupport value="ombCategory"/>
        <mustSupport value="detailed"/>
        <mustSupport value="text"/>
      </dataRequirement>
      <dataRequirement>
        <type value="Encounter"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
        <mustSupport value="type"/>
        <mustSupport value="status"/>
        <mustSupport value="period"/>
        <mustSupport value="reasonCode"/>
        <mustSupport value="id"/>
        <codeFilter>
          <path value="type"/>
          <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143"/>
        </codeFilter>
        <codeFilter>
          <path value="status"/>
          <code>
            <code value="finished"/>
          </code>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Encounter"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
        <mustSupport value="type"/>
        <mustSupport value="status"/>
        <mustSupport value="period"/>
        <mustSupport value="reasonCode"/>
        <mustSupport value="id"/>
        <codeFilter>
          <path value="type"/>
          <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292"/>
        </codeFilter>
        <codeFilter>
          <path value="status"/>
          <code>
            <code value="finished"/>
          </code>
        </codeFilter>
        <dateFilter>
          <path value="period"/>
          <valuePeriod>
            <extension url="http://hl7.org/fhir/uv/crmi-analysisException">
              <valueString value="Error attempting to determine filter value: toFhirValue not implemented for Subtract"/>
            </extension>
          </valuePeriod>
        </dateFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Encounter"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
        <mustSupport value="type"/>
        <mustSupport value="period"/>
        <mustSupport value="status"/>
        <mustSupport value="reasonCode"/>
        <mustSupport value="id"/>
        <codeFilter>
          <path value="type"/>
          <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"/>
        </codeFilter>
        <codeFilter>
          <path value="status"/>
          <code>
            <code value="finished"/>
          </code>
        </codeFilter>
        <dateFilter>
          <path value="period"/>
          <valuePeriod>
            <extension url="http://hl7.org/fhir/StructureDefinition/cqf-expression">
              <valueExpression>
                <language value="text/cql-identifier"/>
                <expression value="Measurement Period"/>
              </valueExpression>
            </extension>
          </valuePeriod>
        </dateFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Encounter"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
        <mustSupport value="id"/>
        <mustSupport value="period"/>
        <mustSupport value="reasonCode"/>
      </dataRequirement>
      <dataRequirement>
        <type value="Patient"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Patient"/>
        <mustSupport value="birthDate"/>
      </dataRequirement>
      <dataRequirement>
        <extension url="http://hl7.org/fhir/StructureDefinition/cqf-relatedRequirement">
          <extension url="targetId">
            <valueString value="4703"/>
          </extension>
          <extension url="targetProperty">
            <valueString value="value"/>
          </extension>
        </extension>
        <type value="Observation"/>
        <profile value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-observation-lab"/>
        <mustSupport value="code"/>
        <mustSupport value="effective"/>
        <mustSupport value="value"/>
        <mustSupport value="status"/>
        <codeFilter>
          <path value="code"/>
          <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.21"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement id="4703">
        <type value="Observation"/>
        <profile value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-observation-lab"/>
        <mustSupport value="code"/>
        <mustSupport value="effective"/>
        <mustSupport value="status"/>
        <mustSupport value="value"/>
        <codeFilter>
          <path value="code"/>
          <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.21"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Observation"/>
        <profile value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-observation-lab"/>
        <mustSupport value="code"/>
        <mustSupport value="effective"/>
        <mustSupport value="value"/>
        <mustSupport value="status"/>
        <mustSupport value="id"/>
        <mustSupport value="issued"/>
        <mustSupport value="category"/>
        <codeFilter>
          <path value="code"/>
          <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.21"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Observation"/>
        <profile value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-observation-lab"/>
        <mustSupport value="code"/>
        <mustSupport value="effective"/>
        <mustSupport value="status"/>
        <mustSupport value="value"/>
        <mustSupport value="id"/>
        <codeFilter>
          <path value="code"/>
          <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.21"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Observation"/>
        <profile value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-observation-lab"/>
        <mustSupport value="code"/>
        <mustSupport value="effective"/>
        <mustSupport value="status"/>
        <mustSupport value="value"/>
        <mustSupport value="id"/>
        <codeFilter>
          <path value="code"/>
          <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.21"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Observation"/>
        <profile value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-observation-lab"/>
        <mustSupport value="code"/>
        <mustSupport value="effective"/>
        <mustSupport value="status"/>
        <mustSupport value="value"/>
        <mustSupport value="id"/>
        <codeFilter>
          <path value="code"/>
          <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.21"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Condition"/>
        <profile value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-condition-encounter-diagnosis"/>
      </dataRequirement>
      <dataRequirement>
        <type value="Condition"/>
        <profile value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-condition-problems-health-concerns"/>
      </dataRequirement>
      <dataRequirement>
        <type value="Observation"/>
        <profile value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-respiratory-rate"/>
        <mustSupport value="effective"/>
        <mustSupport value="value"/>
      </dataRequirement>
      <dataRequirement>
        <type value="Observation"/>
        <profile value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-blood-pressure"/>
        <mustSupport value="effective"/>
        <mustSupport value="component"/>
        <dateFilter>
          <path value="effective"/>
          <valuePeriod>
            <extension url="http://hl7.org/fhir/StructureDefinition/cqf-expression">
              <valueExpression>
                <language value="text/cql-identifier"/>
                <expression value="Measurement Period"/>
              </valueExpression>
            </extension>
          </valuePeriod>
        </dateFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Observation"/>
        <profile value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-heart-rate"/>
        <mustSupport value="effective"/>
        <mustSupport value="value"/>
      </dataRequirement>
      <dataRequirement>
        <type value="Procedure"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
        <mustSupport value="code"/>
        <mustSupport value="performed"/>
        <mustSupport value="status"/>
        <codeFilter>
          <path value="code"/>
          <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.199"/>
        </codeFilter>
        <codeFilter>
          <path value="status"/>
          <code>
            <code value="completed"/>
          </code>
        </codeFilter>
        <dateFilter>
          <path value="performed"/>
          <valuePeriod>
            <extension url="http://hl7.org/fhir/uv/crmi-analysisException">
              <valueString value="Error attempting to determine filter value: toFhirValue not implemented for Add"/>
            </extension>
          </valuePeriod>
        </dateFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Procedure"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
        <mustSupport value="code"/>
        <mustSupport value="status"/>
        <mustSupport value="performed"/>
        <codeFilter>
          <path value="code"/>
          <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.199"/>
        </codeFilter>
        <codeFilter>
          <path value="status"/>
          <code>
            <code value="completed"/>
          </code>
        </codeFilter>
        <dateFilter>
          <path value="performed"/>
          <valuePeriod>
            <extension url="http://hl7.org/fhir/uv/crmi-analysisException">
              <valueString value="Error attempting to determine filter value: toFhirValue not implemented for QueryLetRef"/>
            </extension>
          </valuePeriod>
        </dateFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Procedure"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
        <mustSupport value="code"/>
        <mustSupport value="status"/>
        <mustSupport value="performed"/>
        <codeFilter>
          <path value="code"/>
          <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.19"/>
        </codeFilter>
        <codeFilter>
          <path value="status"/>
          <code>
            <code value="completed"/>
          </code>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Resource"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Resource"/>
        <mustSupport value="id"/>
      </dataRequirement>
      <dataRequirement>
        <type value="Claim"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Claim"/>
        <mustSupport value="status"/>
        <mustSupport value="use"/>
        <mustSupport value="item"/>
        <mustSupport value="diagnosis"/>
        <codeFilter>
          <path value="status"/>
          <code>
            <code value="active"/>
          </code>
        </codeFilter>
        <codeFilter>
          <path value="use"/>
          <code>
            <code value="claim"/>
          </code>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Coverage"/>
        <profile value="http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-coverage"/>
        <mustSupport value="type"/>
        <mustSupport value="period"/>
        <codeFilter>
          <path value="type"/>
          <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Observation"/>
        <profile value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-body-temperature"/>
        <mustSupport value="effective"/>
        <mustSupport value="value"/>
      </dataRequirement>
    </Library>
  </contained>
  <extension id="supplementalDataGuidance" url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-supplementalDataGuidance">
    <extension url="guidance">
      <valueString value="&lt;p&gt;For every patient evaluated by this measure also identify payer, race, ethnicity and sex&lt;/p&gt;"/>
    </extension>
    <extension url="usage">
      <valueCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
          <code value="supplemental-data"/>
          <display value="Supplemental Data"/>
        </coding>
        <text value="Supplemental Data Guidance"/>
      </valueCodeableConcept>
    </extension>
  </extension>
  <extension id="riskAdjustmentVariableGuidance" url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-supplementalDataGuidance">
    <extension url="guidance">
      <valueString value="&lt;p&gt;Sex and Age&lt;/p&gt;&#xA;&lt;p&gt;First vital signs since the encounter start:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA; &lt;li&gt;Heart Rate: {Beats}/min&lt;/li&gt;&#xA; &lt;li&gt;Respiratory Rate: {Breaths}/min&lt;/li&gt;&#xA; &lt;li&gt;Systolic Blood Pressure: mm[Hg]&lt;/li&gt;&#xA; &lt;li&gt;Temperature: Cel [degF]&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;The estimated glomerular filtration rate (eGFR) is calculated using the index serum creatinine, patient sex, and age-based formula.&lt;/p&gt;&#xA;&lt;p&gt;Patient sex collected for risk adjustment and to calculate the eGFR is determined by the &quot;Federal Administrative Sex&quot; value set, which is also used to derive the supplemental data element of patient sex for the measure.&lt;/p&gt;&#xA;&lt;p&gt;All encounter diagnoses along with their present on admission (POA) indicators are being collected for the development of baseline risk adjustment model with initial focus on any encounter diagnoses captured for:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA; &lt;li&gt;Cancer (leukemia, lymphoma, or metastatic cancer)&lt;/li&gt;&#xA; &lt;li&gt;Diabetes&lt;/li&gt;&#xA; &lt;li&gt;Heart failure&lt;/li&gt;&#xA; &lt;li&gt;Hypertension&lt;/li&gt;&#xA; &lt;li&gt;Obesity&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Encounter length of stay (days)&lt;/p&gt;&#xA;&lt;p&gt;Please see the included Hospital Harm - Acute Kidney Injury Risk Adjustment Methodology Report.&lt;/p&gt;"/>
    </extension>
    <extension url="usage">
      <valueCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
          <code value="supplemental-data"/>
          <display value="Supplemental Data"/>
        </coding>
        <text value="Risk Adjustment Variable Guidance"/>
      </valueCodeableConcept>
    </extension>
  </extension>
  <extension url="http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem">
    <valueReference>
      <reference value="Device/cqf-tooling"/>
    </valueReference>
  </extension>
  <extension url="http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements">
    <valueCanonical value="#effective-data-requirements"/>
  </extension>
  <url value="https://madie.cms.gov/Measure/CMS832FHIRHHAKI"/>
  <identifier>
    <use value="usual"/>
    <type>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/artifact-identifier-type"/>
        <code value="short-name"/>
        <display value="Short Name"/>
      </coding>
    </type>
    <system value="https://madie.cms.gov/measure/shortName"/>
    <value value="CMS832FHIR"/>
  </identifier>
  <identifier>
    <use value="official"/>
    <type>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/artifact-identifier-type"/>
        <code value="version-independent"/>
        <display value="Version Independent"/>
      </coding>
    </type>
    <system value="urn:ietf:rfc:3986"/>
    <value value="urn:uuid:ceeb6884-0dc4-4f4d-be48-01a6a998b8d2"/>
  </identifier>
  <identifier>
    <use value="official"/>
    <type>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/artifact-identifier-type"/>
        <code value="version-specific"/>
        <display value="Version Specific"/>
      </coding>
    </type>
    <system value="urn:ietf:rfc:3986"/>
    <value value="urn:uuid:a163adf2-7e72-4276-857e-4de5115b6bf3"/>
  </identifier>
  <identifier>
    <use value="official"/>
    <type>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/artifact-identifier-type"/>
        <code value="endorser"/>
        <display value="Endorser"/>
      </coding>
    </type>
    <system value="https://madie.cms.gov/measure/cbeId"/>
    <value value="3713e"/>
    <assigner>
      <display value="CMS Consensus Based Entity"/>
    </assigner>
  </identifier>
  <identifier>
    <use value="official"/>
    <type>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/artifact-identifier-type"/>
        <code value="publisher"/>
        <display value="Publisher"/>
      </coding>
    </type>
    <system value="https://madie.cms.gov/measure/cmsId"/>
    <value value="832FHIR"/>
    <assigner>
      <display value="CMS"/>
    </assigner>
  </identifier>
  <version value="1.0.000"/>
  <name value="CMS832FHIRHHAKI"/>
  <title value="Hospital Harm - Acute Kidney InjuryFHIR&#xA;"/>
  <status value="active"/>
  <experimental value="false"/>
  <date value="2026-01-16T18:18:14+00:00"/>
  <publisher value="Centers for Medicare &amp;amp; Medicaid Services (CMS)"/>
  <contact>
    <telecom>
      <system value="url"/>
      <value value="https://www.cms.gov/"/>
    </telecom>
  </contact>
  <description value="The measure assesses the number of inpatient hospitalizations for patients age 18 and older who have an acute kidney injury (AKI) stage 2 or greater that occurred during the encounter. AKI stage 2 or greater is defined as a substantial increase in serum creatinine value, or by the initiation of kidney dialysis (continuous renal replacement therapy (CRRT), hemodialysis, or peritoneal dialysis).&#xA;"/>
  <usage value="A patient characteristic of male or female sex is required as part of the initial population criteria, as sex is crucial to this measure. For example:&#xA;&#xA;&lt;br /&gt;&#xA;&#xA;* The eGFR estimating equation that is used to identify AKI is sex-specific; and&#xA;&#xA;* The reference ranges for the serum creatinine value are sex-specific, which matters because the serum creatinine must rise to a sex-specific abnormal value to be flagged as AKI.&#xA;&#xA;  &lt;br /&gt;&#xA;&#xA;Exclude encounters that do not have at least two serum creatine values within 48 hours of arrival. Two values are needed within this timeframe to determine if the patient has AKI or moderate-to-severe renal dysfunction on arrival.&#xA;&#xA;&lt;br /&gt;&#xA;&#xA;For encounters for patients without harm, as identified by 2 times increase in serum creatinine, query for initiation of renal dialysis during hospitalization, defined by the start of dialysis occurring during the encounter.&#xA;&#xA;&lt;br /&gt;&#xA;&#xA;* If dialysis starts more than 48 hours after the start of the encounter, this meets numerator criteria.&#xA;&#xA;* If dialysis starts 48 hours or less after the start of the encounter, this meets denominator exclusion criteria.&#xA;&#xA;&lt;br /&gt;&#xA;&#xA;Encounters for patients with an increase in serum creatinine value of at least 0.3 between the index serum creatinine and any subsequent serum creatinine taken within 48 hours of the encounter start are excluded. Due to the variability of decimal precision within programming languages and calculation tools, the value of \&gt;=0.3 is expressed in the logic as \&gt;0.299.&#xA;&#xA;&lt;br /&gt;&#xA;&#xA;Note the measure is currently confined to using mg/dL as the unit of measurement for creatinine and mL/min as the unit of measurement for eGFR results.&#xA;&#xA;&lt;br /&gt;&#xA;&#xA;When reporting the first body temperature for risk adjustment, values from either Celsius or Fahrenheit readings are acceptable to report but Celsius readings are preferred.&#xA;&#xA;&lt;br /&gt;&#xA;&#xA;This dQM is an episode-based measure. An episode is defined as each inpatient hospitalization or encounter that ends during the measurement period.&#xA;&#xA;&lt;br /&gt;&#xA;&#xA;This FHIR-based measure has been derived from the QDM-based measure: CMS832v3. 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).&#xA;"/>
  <copyright value="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. Mathematica disclaims all liability for use or accuracy of any third-party codes contained in the specifications.&#xA;&#xA;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. ICD-10 copyright 2024 World Health Organization. All Rights Reserved.&#xA;"/>
  <effectivePeriod>
    <start value="2026-01-01"/>
    <end value="2026-12-31"/>
  </effectivePeriod>
  <author>
    <name value="Mathematica"/>
    <telecom>
      <system value="url"/>
      <value value="https://www.mathematica.org/"/>
    </telecom>
  </author>
  <relatedArtifact>
    <type value="citation"/>
    <citation value="Ahmed, A., Vairavan, S., Akhoundi, A., Wilson, G., Chiofolo, C., Chbat, N., \&amp; Kashani, K. (2015). Development and validation of electronic surveillance tool for acute kidney injury: A retrospective analysis. Journal of Critical Care, 30(5), 988-993. https://doi.org/10.1016/j.jcrc.2015.05.007&#xA;"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation value="Barbar, S.D., Clere-Jehl, R., Bourredjem, A., Hernu, R., Montin,i F., Bruyere, R., Lebert, C., Bohe, J., Badie, J., Erald,i J.P., Rigaud, J.P., Levy, B., Siam,i S., Louis, G., Bouadma, L., Constantin, J.M., Mercier, E., Klouche, K., du Cheyron, D., ... Quenot, J.P. (2018). IDEAL-ICU Trial Investigators and the CRICS TRIGGERSEP Network. Timing of renal-replacement therapy in patients with acute kidney injury and sepsis. The New England Journal of Medicine, 379(15), 1431-1442. https://doi.org/10.1056/NEJMoa1803213&#xA;"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation value="Cho, A., Lee, J.E., Yoon, J.Y., Jang, H.R., Huh, W., Kim, Y.G., \&amp; Oh, H.Y. (2012). Effect of an electronic alert on risk of contrast-induced acute kidney injury in hospitalized patients undergoing computed tomography. American Journal of Kidney Diseases, 60(1), 74-81. http://dx.doi.org/10.1053/j.ajkd.2012.02.331&#xA;"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation value="Delgado, C., Baweja, M., Crews, D.C., Eneanya, N.D., Gadegbeku, C.A., Inker, L.A., Mendu, M L., Miller, W.G., Moxey-Mims, M.M., Roberts, G.V., St Peter, W.L., Warfield, C., \&amp; Powe, N.R. (2021). A unifying approach for GFR estimation: Recommendations of the NKF-ASN task force on reassessing the inclusion of race in diagnosing kidney disease. Journal of the American Society of Nephrology, 32(12), 2994-3015. https://doi.org/10.1681/ASN.2021070988&#xA;"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation value="Delgado, C., Baweja, M., Crews, D.C., Eneanya, N.D., Gadegbeku, C.A., Inker, L.A., Mendu, M.L., Miller, W.G., Moxey-Mims, M.M., Roberts, G.V., St Peter, W.L., Warfield, C., \&amp; Powe, N.R. (2022). A unifying approach for GFR estimation: Recommendations of the NKF-ASN task force on reassessing the inclusion of race in diagnosing kidney disease. American Journal of Kidney Diseases, 79(2), 268-288.e1. https://doi.org/10.1053/j.ajkd.2021.08.003&#xA;"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation value="Diao, J.A., Inker, L.A., Levey, A.S., Tighiouart, H., Powe, N.R., \&amp; Manrai, A.K. (2021). In search of a better equation - Performance and equity in estimates of kidney function. The New England Journal of Medicine, 384(5), 396-399. https://doi.org/10.1056/NEJMp2028243&#xA;"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation value="Gaudry, S., Hajage, D., Schortgen, F., Martin-Lefevre, L., Pons, B., Boulet, E., Boyer, A., Chevrel, G., Lerolle, N., Carpentier, D., de Prost, N., Lautrette, A., Bretagnol, A., Mayaux, J., Nseir, S., Megarbane, B., Thirion, M., Forel, J.M., Maize,l J., ... Dreyfuss, D. (2016). Initiation strategies for renal-replacement therapy in the intensive care unit. New England Journal of Medicine, 375(2), 122-133. https://doi.org/10.1056/NEJMoa1603017&#xA;"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation value="Gocze, I., Jauch, D., Gotz, M., Kennedy, P., Jung, B., Zeman, F., Gnewuch, C., Graf, B. M., Gnann, W., Banas, B., Bein, T., Schlitt, H. J., \&amp; Bergler, T. (2018). Biomarker-guided intervention to prevent acute kidney injury after major surgery: The prospective randomized BigpAK study. Annals of Surgery, 267(6), 1013-1020. https://doi.org/10.1097/SLA.0000000000002485&#xA;"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation value="Inker, L.A., Eneanya, N.D., Coresh, J., Tighiouart, H., Wang, D., Sang, Y., Crews, D.C., Doria, A., Estrella, M.M., Froissart, M., Grams, M.E., Greene, T., Grubb, A., Gudnason, V., Gutierrez, O.M., Kalil, R., Karger, A.B., Mauer, M., Navis, G., ... Levey, A.S. (2021). New creatinine- and cystatin c-based equations to estimate GFR without race. New England Journal of Medicine, 385(19), 1737-1749. https://doi.org/10.1056/NEJMoa2102953&#xA;"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation value="Kellum, J.A., Chawla, L.S., Keener, C., Singbartl, K., Palevsky, P.M., Pike, F.L., Yealy, D.M., Huang, D.T., Angus, D.C., \&amp; ProCESS and ProGReSS-AKI Investigators. (2016). The effects of alternative resuscitation strategies on acute kidney injury in patients with septic shock. American Journal of Respiratory and Critical Care Medicine, 193(3), 281-287. https://doi.org/10.1164/rccm.201505-0995OC&#xA;"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation value="Kidney Disease: Improving Global Outcomes (KDIGO) Acute Kidney Injury Work Group. (2012). KDIGO 2012 clinical practice guideline for acute kidney injury. Kidney International, Supplements, 2(1), 1-141. doi:10.1038/kisup.2012.2&#xA;"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation value="Kirkendall, E.S., Spires, W.L., Mottes, T.A., Schaffzin, J.K., Barclay, C., \&amp; Goldstein, S.L. (2014). Development and performance of electronic acute kidney injury triggers to identify pediatric patients at risk for nephrotoxic medication-associated harm. Applied Clinical Informatics, 5(2), 313-333. https://doi.org/10.4338/ACI-2013-12-RA-0102&#xA;"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation value="Lameire, N.H., Levin, A., Kellum, J.A., Cheung, M., Jadoul, M., Winkelmayer, W.C., Stevens, P.E., \&amp; Conference Participants. (2021). Harmonizing acute and chronic kidney disease definition and classification: report of a Kidney Disease: Improving Global Outcomes (KDIGO) Consensus Conference. Kidney International, 100(3), 516-526. https://doi.org/10.1016/j.kint.2021.06.028&#xA;"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation value="Lopes, J.A., \&amp; Jorge, S. (2013). The RIFLE and AKIN classifications for acute kidney injury: A critical and comprehensive review. Clinical Kidney Journal, 6(1), 8-14. https://doi.org/10.1093/ckj/sfs160&#xA;"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation value="Meersch, M., Schmidt, C., Hoffmeier, A., Van Aken, H., Wempe, C., Gerss, J., \&amp; Zarbock, A. (2017). Prevention of cardiac surgery-associated AKI by implementing the KDIGO guidelines in high risk patients identified by biomarkers: the PrevAKI randomized controlled trial. Intensive Care Medicine, 43(11), 1551-1561. https://doi.org/10.1007/s00134-016-4670-3&#xA;"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation value="Nijssen, E.C., Rennenberg, R.J., Nelemans, P.J., Essers, B.A., Janssen, M.M., Vermeeren, M.A., Ommen, V.V., \&amp; Wildberger, J.E. (2017). Prophylactic hydration to protect renal function from intravascular iodinated contrast material in patients at high risk of contrast-induced nephropathy (AMACING): a prospective, randomised, phase 3, controlled, open-label, non-inferiority trial. Lancet, 389(10076), 1312-1322. https://doi.org/10.1016/S0140-6736(17)30057-0&#xA;"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation value="Ostermann, M., Bellomo, R., Burdmann, E.A., Doi, K., Endre, Z.H., Goldstein, S.L., Kane-Gill, S.L., Liu, K.D., Prowle, J.R., Shaw, A.D., Srisawat, N., Cheung, M., Jadoul, M., Winkelmayer, W.C., Kellum, J.A., \&amp; Conference Participants. (2020). Controversies in acute kidney injury: conclusions from a Kidney Disease: Improving Global Outcomes (KDIGO) Conference. Kidney international, 98(2), 294-309. https://doi.org/10.1016/j.kint.2020.04.020&#xA;"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation value="Porter, C.J., Juurlink, I., Bisset, L.H., Bavakunji, R., Mehta, R.L., \&amp; Devonald, M.A. (2014). A real-time electronic alert to improve detection of acute kidney injury in a large teaching hospital. Nephrology Dialysis Transplantation, 29(10), 1888-1893. https://doi.org/10.1093/ndt/gfu082&#xA;"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation value="Schwager, E., Ghosh, E., Eshelman, L., Pasupathy, K.S., Barreto, E.F., \&amp; Kashani, K. (2023). Accurate and interpretable prediction of ICU-acquired AKI. Journal of Critical Care, 75, 154278. https://doi.org/10.1016/j.jcrc.2023.154278&#xA;"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation value="Selby, N.M., Crowley, L., Fluck, R.J., McIntyre, C.W., Monaghan, J., Lawson, N., \&amp; Kolhe, N.V. (2012). Use of electronic results reporting to diagnose and monitor AKI in hospitalized patients. Clinical Journal of The American Society of Nephrology, 7(4), 533-540. https://doi.org/10.2215/cjn.08970911&#xA;"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation value="Self, W.H., Semler, M.W., Wanderer, J.P., Wang, L., Byrne, D.W., Collins, S.P., Slovis, C.M., Lindsell, C.J., Ehrenfeld, J.M., Siew, E.D., Shaw, A.D., Bernard, G.R., Rice, T.W., \&amp; SALT-ED Investigators. (2018). Balanced crystalloids versus saline in noncritically ill adults. The New England Journal of Medicine, 378(9), 819-828. https://doi.org/10.1056/NEJMoa1711586&#xA;"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation value="Thongprayoon, C., Hansrivijit, P., Kovvuru, K., Kanduri, S.R., Torres-Ortiz, A., Acharya, P., Gonzalez-Suarez, M.L., Kaewput, W., Bathini, T., \&amp; Cheungpasitporn, W. (2020). Diagnostics, risk factors, treatment and outcomes of acute kidney injury in a new paradigm. Journal of Clinical Medicine. 9(4), 1104. https://doi.org/10.3390/jcm9041104&#xA;"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation value="Wilson, F. P., Yang, W., \&amp; Feldman, H.I. (2013). Predictors of death and dialysis in severe AKI: The UPHS-AKI cohort. Clinical Journal of the American Society of Nephrology, 8(4), 527-537. https://doi.org/10.2215/cjn.06450612&#xA;"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation value="Wilson, F.P., Reese, P.P., Shashaty, M.G., Ellenberg, S.S., Gitelman, Y., Bansal, A.D., \&amp; Fuchs, B. (2014). A trial of in-hospital, electronic alerts for acute kidney injury: Design and rationale. Clinical Trials, 11(5), 521-529. https://doi.org/10.1177/1740774514542619&#xA;"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation value="Zarbock, A., Kellum, J.A., Schmidt, C., Van Aken, H., Wempe, C., Pavenstadt, H., Boanta, A., Ger, J., \&amp; Meersch, M. (2016). Effect of early vs delayed initiation of renal replacement therapy on mortality in critically ill patients with acute kidney injury: The ELAIN Randomized Clinical Trial. Journal of the American Medical Association, 315(20), 2190-2199. https://doi.org/10.1001/jama.2016.5828&#xA;"/>
  </relatedArtifact>
  <library value="https://madie.cms.gov/Library/CMS832FHIRHHAKI"/>
  <disclaimer value="This performance measure is not a clinical guideline and does not establish a standard of medical care, and has not been tested for all potential applications.&#xA;&#xA;THE MEASURES AND SPECIFICATIONS ARE PROVIDED &quot;AS IS&quot; WITHOUT WARRANTY OF ANY KIND.&#xA;&#xA;Due to technical limitations, registered trademarks are indicated by (R) or \[R\] and unregistered trademarks are indicated by (TM) or \[TM\].&#xA;"/>
  <rationale value="This measure focuses on stage 2 or greater acute kidney injury as an outcome in the hospital inpatient setting. The incidence of AKI in general hospitalized patients is 10%-20%, and among critically ill patients, the incidence of AKI has been reported as high as 45-50%; in cardiac surgery patients it ranges from 30%-50% (Thongprayoon et al., 2020). Less severe acute kidney injury and acute kidney injury requiring dialysis affect approximately 2,000 to 3,000 and 200 to 300 per million population per year, respectively. Acute kidney injury may result in the need for dialysis, and is associated with an increased risk of mortality (Schwager et al., 2023; Wilson et al., 2013).&#xA;&#xA;&lt;br /&gt;&#xA;&#xA;While not all instances of acute kidney injury are avoidable and may be due to natural progression of underlying illness or a complication of a necessary treatment such as chemotherapy, a proportion of acute kidney injury cases are preventable and treatable. The Kidney Disease: Improving Global Outcomes (KDIGO) guidelines suggest careful management of hemodynamic status, fluids, and vasoactive medications for the prevention of acute kidney injury (KDIGO, 2012). Several studies identified through systematic literature searches developed or evaluated the effectiveness of acute kidney injury electronic alert systems (Schwager et al., 2023; Selby et al., 2012; Ahmed et al., 2015; Porter et al., 2014; Wilson et al., 2014; Kirkendall et al., 2014; Cho et al., 2012). These studies used data elements for defining acute kidney injury that were already present and populated in the electronic health record (EHR). For acute kidney injury diagnosis, all except two were limited to using serum creatinine levels, suggesting that this is the most reliable and consistently available electronic data element for defining acute kidney injury.&#xA;"/>
  <clinicalRecommendationStatement value="Serum creatinine is an accepted proxy for AKI (Ostermann et al., 2020; KDIGO, 2012). It is cited by many guidelines for defining and monitoring AKI (Lameire et al., 2021; Ostermann et al., 2020; Lopes \&amp; Jorge, 2013; KDIGO, 2012). eGFR equations that incorporate creatinine and cystatin C but omit race are more accurate and lead to smaller differences between Black participants and non-Black participants than new equations without race with either creatinine or cystatin C alone (Inker et al., 2021). As a result, a new race-neutral eGFR equation that measures serum creatinine or cystatin C incorporates age, sex, and race to estimate measured GFR has been developed and is recommended by the Task Force from the National Kidney Foundation and American Society of Nephrology (Inker et al., 2021; Diao et al., 2021; Delgado et al., 2021; Delgado et al., 2022). It was recommended by the Task Force to use within the measure a Chronic Kidney Disease Epidemiology Collaboration (CKD-EPI) creatinine equation refit without the race variable. This functionality has been available to all laboratories in the United States (Delgado et al., 2021; Delgado et al., 2022), and has acceptable performance characteristics and potential consequences that do not disproportionately affect any one group of individuals.&#xA;&#xA;&lt;br /&gt;&#xA;&#xA;The KDIGO offers clinical practice guidelines for preventing and managing AKI:&#xA;&#xA;&lt;br /&gt;&#xA;&#xA;FLUIDS 3.1.1: In the absence of hemorrhagic shock, we suggest using isotonic crystalloids rather than colloids (albumin or starches) as initial management for expansion of intravascular volume in patients at risk for acute kidney injury or with acute kidney injury. (Level 2, grade B)&#xA;&#xA;&lt;br /&gt;&#xA;&#xA;VASOPRESSORS 3.1.2: We recommend the use of vasopressors in conjunction with fluids in patients with vasomotor shock with, or at risk for, acute kidney injury. (Level 1, grade C)&#xA;&#xA;&lt;br /&gt;&#xA;&#xA;PROTOCOLIZED HEMODYNAMIC MANAGEMENT 3.1.3: We suggest using protocol-based management of hemodynamic and oxygenation parameters to prevent development or worsening of acute kidney injury in high-risk patients in the perioperative setting (2C) or in patients with septic shock. (Level 2, grade C)&#xA;&#xA;&lt;br /&gt;&#xA;&#xA;KDIGO held a follow-up conference in April of 2019 to review key relevant literature published since the 2012 KDIGO clinical practice recommendations (Ostermann et al., 2020). The effectiveness of the 2012 KDIGO recommendations in preventing AKI was also noted to have been confirmed in small single-center randomized controlled trials (RCTs), such as the Prevention of AKI (PrevAKI) and the Biomarker Guided Intervention for Prevention of AKI (BigpAK) studies (Meersch et al., 2017; Gocze et al., 2018). In addition, results of RCTs have provided new data relevant to several facets of preventing and managing AKI, including early resuscitation, fluid therapy, prevention of contrast-associated AKI, and timing of acute renal replacement therapy (RRT) (Kellum et al., 2016; Nijssen et al., 2017; Self et al., 2018; Zarbock et al, 2016; Gaudry et al., 2016; Barbar et al., 2018).&#xA;"/>
  <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"/>
          <code value="proportion"/>
          <display value="Proportion"/>
        </coding>
      </valueCodeableConcept>
    </extension>
    <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis">
      <valueCode value="Encounter"/>
    </extension>
    <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-type">
      <valueCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/measure-type"/>
          <code value="outcome"/>
          <display value="Outcome"/>
        </coding>
      </valueCodeableConcept>
    </extension>
    <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-rateAggregation">
      <valueString value="None&#xA;"/>
    </extension>
    <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-improvementNotation">
      <valueCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/measure-improvement-notation"/>
          <code value="decrease"/>
          <display value="Decreased score indicates improvement"/>
        </coding>
      </valueCodeableConcept>
    </extension>
    <population id="InitialPopulation_1">
      <code>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/measure-population"/>
          <code value="initial-population"/>
          <display value="Initial Population"/>
        </coding>
      </code>
      <description value="Inpatient hospitalizations that end during the measurement period for patients 18 years of age or older without an obstetrical or pregnancy related condition, with a length of stay of 48 hours or longer, and who had at least one serum creatinine value after 48 hours from the start of the hospitalization&#xA;"/>
      <criteria>
        <language value="text/cql-identifier"/>
        <expression value="Initial Population"/>
      </criteria>
    </population>
    <population id="Denominator_1">
      <code>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/measure-population"/>
          <code value="denominator"/>
          <display value="Denominator"/>
        </coding>
      </code>
      <description value="Equals Initial Population&#xA;"/>
      <criteria>
        <language value="text/cql-identifier"/>
        <expression value="Denominator"/>
      </criteria>
    </population>
    <population id="DenominatorExclusion_1">
      <code>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/measure-population"/>
          <code value="denominator-exclusion"/>
          <display value="Denominator Exclusion"/>
        </coding>
      </code>
      <description value="Inpatient hospitalizations for patients with an increase in serum creatinine value of at least 0.3 mg/dL between the index serum creatinine and a subsequent serum creatinine taken within 48 hours of the encounter start.&#xA;&#xA;Inpatient hospitalizations for patients with the index eGFR value of \&lt;60 mL/min within 48 hours of the encounter start.&#xA;&#xA;Inpatient hospitalizations for patients who have less than two serum creatinine results within the first 48 hours of the encounter start.&#xA;&#xA;Inpatient hospitalizations for patients who have kidney dialysis (CRRT, hemodialysis or peritoneal dialysis) initiated 48 hours or less after the encounter start, and who do not have evidence of a 2 times increase in serum creatinine.&#xA;&#xA;Inpatient hospitalizations for patients with at least one specified diagnosis present on admission during the encounter that puts them at extremely high risk for AKI:&#xA;&#xA;* &lt;br /&gt;&#xA;&#xA;* Hemolytic Uremic Syndrome (HUS)&#xA;&#xA;* &lt;br /&gt;&#xA;&#xA;* Large Body Surface Area (BSA) Burns&#xA;&#xA;* &lt;br /&gt;&#xA;&#xA;* Traumatic Avulsion of Kidney&#xA;&#xA;* &lt;br /&gt;&#xA;&#xA;* Rapidly Progressive Nephritic Syndrome&#xA;&#xA;* &lt;br /&gt;&#xA;&#xA;* Thrombotic Thrombocytopenic Purpura&#xA;&#xA;* &lt;br /&gt;&#xA;&#xA;* Out of Hospital Cardiac Arrest (OHCA)&#xA;&#xA;Inpatient hospitalizations for patients who have at least one specified procedure that starts during the encounter that puts them at extremely high risk for AKI:&#xA;&#xA;* &lt;br /&gt;&#xA;&#xA;* Extracorporeal membrane oxygenation (ECMO)&#xA;&#xA;* &lt;br /&gt;&#xA;&#xA;* Intra-Aortic Balloon Pump&#xA;&#xA;* &lt;br /&gt;&#xA;&#xA;* Resuscitative Endovascular Balloon Occlusion of the Aorta (REBOA)&#xA;&#xA;* &lt;br /&gt;&#xA;&#xA;* Nephrectomy&#xA;&#xA;"/>
      <criteria>
        <language value="text/cql-identifier"/>
        <expression value="Denominator Exclusion"/>
      </criteria>
    </population>
    <population id="Numerator_1">
      <code>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/measure-population"/>
          <code value="numerator"/>
          <display value="Numerator"/>
        </coding>
      </code>
      <description value="Inpatient hospitalizations for patients who develop AKI stage 2 or greater during the encounter, as evidenced by:&#xA;&#xA;A subsequent increase in serum creatinine value at least 2 times higher than the lowest serum creatinine value, and the increased value is greater than the highest sex-specific normal value for serum creatinine.&#xA;&#xA;Or:&#xA;&#xA;Kidney dialysis (CRRT, hemodialysis, or peritoneal dialysis) initiated more than 48 hours after the start of the encounter. Evidence of a 2 times increase in serum creatinine is not required.&#xA;&#xA;Only one harm is counted per encounter.&#xA;"/>
      <criteria>
        <language value="text/cql-identifier"/>
        <expression value="Numerator"/>
      </criteria>
    </population>
  </group>
  <supplementalData id="sde-ethnicity">
    <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
      <valueCode value="individual"/>
    </extension>
    <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
      <valueCode value="subject-list"/>
    </extension>
    <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
      <valueCode value="summary"/>
    </extension>
    <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
      <valueCode value="data-collection"/>
    </extension>
    <usage>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
        <code value="supplemental-data"/>
      </coding>
    </usage>
    <description value="SDE Ethnicity&#xA;"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="SDE Ethnicity"/>
    </criteria>
  </supplementalData>
  <supplementalData id="sde-payer">
    <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
      <valueCode value="individual"/>
    </extension>
    <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
      <valueCode value="subject-list"/>
    </extension>
    <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
      <valueCode value="summary"/>
    </extension>
    <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
      <valueCode value="data-collection"/>
    </extension>
    <usage>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
        <code value="supplemental-data"/>
      </coding>
    </usage>
    <description value="SDE Payer&#xA;"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="SDE Payer"/>
    </criteria>
  </supplementalData>
  <supplementalData id="sde-race">
    <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
      <valueCode value="individual"/>
    </extension>
    <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
      <valueCode value="subject-list"/>
    </extension>
    <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
      <valueCode value="summary"/>
    </extension>
    <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
      <valueCode value="data-collection"/>
    </extension>
    <usage>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
        <code value="supplemental-data"/>
      </coding>
    </usage>
    <description value="SDE Race&#xA;"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="SDE Race"/>
    </criteria>
  </supplementalData>
  <supplementalData id="sde-sex">
    <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
      <valueCode value="individual"/>
    </extension>
    <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
      <valueCode value="subject-list"/>
    </extension>
    <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
      <valueCode value="summary"/>
    </extension>
    <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
      <valueCode value="data-collection"/>
    </extension>
    <usage>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
        <code value="supplemental-data"/>
      </coding>
    </usage>
    <description value="SDE Sex&#xA;"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="SDE Sex"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-estimated-glomerular-filtration-rate-for-females">
    <usage>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
        <code value="supplemental-data"/>
      </coding>
    </usage>
    <description value="Risk Variable Estimated Glomerular Filtration Rate For Females&#xA;"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Estimated Glomerular Filtration Rate For Females"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-estimated-glomerular-filtration-rate-for-males">
    <usage>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
        <code value="supplemental-data"/>
      </coding>
    </usage>
    <description value="Risk Variable Estimated Glomerular Filtration Rate For Males&#xA;"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Estimated Glomerular Filtration Rate For Males"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-all-encounter-diagnoses-with-poa-indication">
    <usage>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
        <code value="supplemental-data"/>
      </coding>
    </usage>
    <description value="Risk Variable All Encounter Diagnoses With POA Indication&#xA;"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable All Encounter Diagnoses With POA Indication"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-first-heart-rate-in-encounter">
    <usage>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
        <code value="supplemental-data"/>
      </coding>
    </usage>
    <description value="Risk Variable First Heart Rate In Encounter&#xA;"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable First Heart Rate In Encounter"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-first-respiratory-rate-in-encounter">
    <usage>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
        <code value="supplemental-data"/>
      </coding>
    </usage>
    <description value="Risk Variable First Respiratory Rate In Encounter&#xA;"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable First Respiratory Rate In Encounter"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-first-systolic-blood-pressure-in-encounter">
    <usage>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
        <code value="supplemental-data"/>
      </coding>
    </usage>
    <description value="Risk Variable First Systolic Blood Pressure In Encounter&#xA;"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable First Systolic Blood Pressure In Encounter"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-first-temperature-in-encounter">
    <usage>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
        <code value="supplemental-data"/>
      </coding>
    </usage>
    <description value="Risk Variable First Temperature In Encounter&#xA;"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable First Temperature In Encounter"/>
    </criteria>
  </supplementalData>
</Measure>