dQM QICore Content Implementation Guide
2025.0.0 - CI Build

dQM QICore Content Implementation Guide, published by cqframework. This guide is not an authorized publication; it is the continuous build for version 2025.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/dqm-content-qicore-2025/ and changes regularly. See the Directory of published versions

: Severe Obstetric ComplicationsFHIR - XML Representation

Active as of 2025-08-25

Raw xml | Download


<Measure xmlns="http://hl7.org/fhir">
  <id value="CMS1028FHIRPCSevereOBComps"/>
  <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" class="col-12">
  <table class="narrative-table">
    <tbody>
<tr>


<th colspan="2" scope="row" class="row-header">Metadata</th>


</tr>

<tr>


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


<td class="content-container">Severe Obstetric ComplicationsFHIR</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">CMS1028FHIR</td>
</tr>



  
<tr>


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


<td class="content-container">urn:uuid:6cf03fe2-b962-4f83-ac37-26d7477183c7</td>
</tr>



  
<tr>


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


<td class="content-container">urn:uuid:d2400512-5e4e-433c-8a5c-0a85be20e660</td>
</tr>



  
    
    
<tr>


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


<td class="content-container">1028FHIR</td>
</tr>

  


  
    
    
<tr>


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


<td class="content-container">3687e</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">The Joint Commission</td>
</tr>






<tr>


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


<td class="content-container">The Joint Commission</td>
</tr>



<tr>


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


<td class="content-container">Centers for Medicare &amp; Medicaid Services (CMS)</td>
</tr>



<tr>


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


<td class="content-container">Yale New Haven Health Service Corporation/ Center for Outcomes Research and Evaluation</td>
</tr>






<tr>


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


<td class="content-container"><p>Patients with severe obstetric complications that occur during the inpatient delivery hospitalization</p></td>
</tr>



<tr>


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


<td class="content-container"><p>Measure specifications are in the Public Domain.</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></td>
</tr>


<tr>


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


<td class="content-container"><p>These performance measures are not clinical guidelines, do not establish a standard of medical care, and have not been tested for all potential applications. The measures and specifications are provided without warranty.</p></td>
</tr>











<tr>


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


<td class="content-container"><p>The United States (US) experiences higher rates of maternal morbidity and mortality than most other developed countries. The Centers for Disease Control and Prevention (CDC) (2021) report that these rates have continued to trend upward in recent decades. Research indicates that the overall rate of severe maternal morbidity (SMM) increased by almost 200% between 1993 and 2014 to 144 per 10,000 delivery hospitalizations (CDC, 2021), with more than 25,000 women per year experiencing obstetric complications (U.S. Department of Health and Human Services, 2020). Recent maternal mortality data from 2018 reveal that 658 women in the US died from maternal causes, resulting in a rate of 17.4 deaths per 100,000 live births, with 77% of the deaths attributed to direct obstetric causes like hemorrhage, preeclampsia, obstetric embolism, and other complications (Hoyert &amp; Minino, 2020). 144 per 10,000 women hospitalized for delivery have experienced SMM, including hemorrhage, embolism, hypertension, stroke, and other serious complications (CDC, 2021). Racial and ethnic disparities exist: Black women and Hispanic women are at a significantly higher risk for developing these complications than are Non-Hispanic White women (Leonard, Main, Scott, Profit, &amp; Carmichael, 2019). Increasing rates of SMM are resulting in increased healthcare costs, longer hospitalization stays and impacts on a woman's health (Callaghan, Creanga, &amp; Kuklina, 2012).</p>
<p>There is limited national evaluation of hospitals' performance on maternal morbidity and mortality although SMM is widely used at the population level. SMM is linked to maternal mortality, varies significantly among hospitals, and has significant racial/ethnic and urban/rural disparities. SMM is a cost driver for both Medicaid and commercial plans. This measure is important as it will assist in the discovery and understanding of SMM patterns that can lead to improvements in the safety and quality of maternal care necessary to reduce SMM rates.</p></td>
</tr>


<tr>


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


<td class="content-container"><p>Healthy People 2030 Measure (MICH-05): Reduce severe maternal complications identified during delivery hospitalizations (U.S. Department of Health and Human Services, n.d.).</p>
<p>The American College of Obstetricians and Gynecologists (ACOG) and the Society for Maternal-Fetal Medicine recommend identifying potential cases of severe maternal morbidity for further review, with a focus on outcomes and complications, and consider this an important step toward promoting safe obstetric care (American College of Obstetricians and Gynecologists and the Society for Maternal-Fetal Medicine, Kilpatrick, &amp; Ecker, 2016).</p></td>
</tr>




<tr>
  
  
  
  

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


  
  
  <td class="content-container">
    
    
    
    <p>American College of Obstetricians and Gynecologists and the Society for Maternal-Fetal Medicine. (2016, September 01). Severe maternal morbidity: Screening and review. American Journal of Obstetrics &amp; Gynecology, 215(3), B17-B22. http://dx.doi.org/https://doi.org/10.1016/j.ajog.2016.07.050</p>
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

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


  
  
  <td class="content-container">
    
    
    
    <p>Centers for Disease Control and Prevention. Severe maternal morbidity in the United States. January 31, 2020; https://www.cdc.gov/reproductivehealth/maternalinfanthealth/severematernalmorbidity.html</p>
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

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


  
  
  <td class="content-container">
    
    
    
    <p>Hoyert DL, Minino AM. Maternal mortality in the United States: changes in coding, publication, and data release, 2018. National Vital Statistics Report, 69(2), 2020.</p>
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

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


  
  
  <td class="content-container">
    
    
    
    <p>Leonard SA, Main EK, Carmichael SL. The contribution of maternal characteristics and cesarean delivery to an increasing trend of severe maternal morbidity. BMC Pregnancy Childbirth. BMC Pregnancy Childbirth. 2019 Jan 9;19(1):16. doi: 10.1186/s12884-018-2169-3.</p>
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

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


  
  
  <td class="content-container">
    
    
    
    <p>Leonard SA, Main EK, Scott KA, Profit J, Carmichael SL. Racial and ethnic disparities in severe maternal morbidity prevalence and trends. Ann Epidemiol. 2019 Feb 28. pii: S1047-2797(18)30899-8.</p>
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

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


  
  
  <td class="content-container">
    
    
    
    <p>Leonard, S. A., Kennedy, C. J., Carmichael, S. L., Lyell, D. J., &amp; Main, E. K. (2020). An Expanded Obstetric Comorbidity Scoring System for Predicting Severe Maternal Morbidity. Obstetrics and gynecology, 136(3), 440-449. https://doi.org/10.1097/AOG.0000000000004022</p>
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

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


  
  
  <td class="content-container">
    
    
    
    <p>Main, E. K., Leonard, S. A., &amp; Menard, M. K. (2020). Association of Maternal Comorbidity With Severe Maternal Morbidity: A Cohort Study of California Mothers Delivering Between 1997 and 2014. Annals of internal medicine, 173(11 Suppl), S11-S18. https://doi.org/10.7326/M19-3253</p>
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

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


  
  
  <td class="content-container">
    
    
    
    <p>Office of Disease Prevention and Health Promotion. (n.d.). Reduce severe maternal complications identified during delivery hospitalization- MICH-05. Retrieved from https://health.gov/healthypeople/objectives-and-data/browse-objectives/pregnancy-and-childbirth/reduce-severe-maternal-complications-identified-during-delivery-hospitalizations-mich-05</p>
    
    
    
    
    
  </td>
</tr>

<tr>
  
  
  
  

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


  
  
  <td class="content-container">
    
    
    
    <p>U.S. Department of Health and Human Services. HHS Outlines New Plans and a Partnership to Reduce U.S. Pregnancy-related Deaths. 2020; https://www.hhs.gov/about/news/2020/12/03/hhs-outlines-new-plans-to-reduce-us-pregnancy-related-deaths.html.</p>
    
    
    
    
    
  </td>
</tr>






  
  
<tr>


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


<td class="content-container">Severe Obstetric Complications (SOC): <p>For this measure, specifications are modeled after the nationally available and adopted CDC definition for Severe Maternal Morbidity (SMM) with the addition of maternal mortality. At times, we may refer to the CDC indicators of morbidity as SMM, but the outcome of the measure, which includes morbidity and mortality, is referred to as Severe Obstetric Complications (SOC).</p></td>
</tr>



<tr>


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


<td class="content-container"><p>Note: This measure will be stratified by race/ethnicity and payer after measure submission.</p>
<p>In the case of multiple births, map the first delivery date/time (Baby A) as the delivery date/time for the encounter. This measure allows for 3 approaches to determine gestational age (GA) in the following order of precedence:</p>
<ol>
 <li><p>The GA is calculated using the American College of Obstetricians and Gynecologists ReVITALize guidelines.*</p></li>
 <li><p>When the calculated GA is not available, the GA is obtained from a discrete field in the electronic health record. The intent is to capture the last estimated GA in the interval starting 24 hours or less prior to delivery and ending before midnight on the same day of delivery.</p></li>
 <li><p>The GA is based on ICD10 or SNOMED codes indicative of weeks gestation. This option is only used when results from items #1 and #2 (see above) are not available.</p></li>
</ol>
<p>*ACOG ReVITALize Guidelines for Calculating Gestational Age (ACOG, 2014):<br/>
  Gestational Age = (280-(Estimated Due Date minus Reference Date)) / 7</p>
<ul>
 <li><p>Estimated Due Date (EDD): The best obstetrical EDD is determined by last menstrual period if confirmed by early ultrasound or no ultrasound performed, or early ultrasound if no known last menstrual period or the ultrasound is not consistent with last menstrual period, or known date of fertilization (e.g., assisted reproductive technology)</p></li>
 <li><p>Reference Date is the date on which you are trying to determine gestational age. For purposes of this dQM, Reference Date would be the Date of Delivery.</p></li>
</ul>
<p>Note however, the calculation may yield a non-whole number, and gestational age should be rounded down to the nearest completed week. For example, an infant born on the 5th day of the 36th week (35 weeks and 5/7 days) is at a gestational age of 35 weeks, not 36 weeks.</p>
<p>This dQM is an episode-based measure. An episode is defined as each inpatient hospitalization or encounter that ends during the measurement period.</p>
<p>This FHIR-based measure has been derived from the QDM-based measure: CMS1028v4. Please refer to the HL7 QI-Core Implementation Guide (https://hl7.org/fhir/us/qicore/STU6/) for more information on QI-Core and mapping recommendations from QDM to QI-Core STU 6 (https://hl7.org/fhir/us/qicore/STU6/qdm-to-qicore.html).</p></td>
</tr>



  
    
    <tr>


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


</tr>
  
  
    
<tr>


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


<td class="content-container"><p>All Severe Obstetric Complications (SOC)</p></td>
</tr>

  
  
  
<tr>


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


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



  
<tr>


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


<td class="content-container">[http://terminology.hl7.org/CodeSystem/measure-scoring#proportion: 'Proportion']</td>
</tr>







  
<tr>


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


<td class="content-container">[http://terminology.hl7.org/CodeSystem/measure-type#outcome: 'Outcome']</td>
</tr>




  
<tr>


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


<td class="content-container"><p>Two hospital-level measure scores are calculated as a risk-adjusted proportion reported as a rate per 10,000 delivery hospitalizations:</p>
<p>1. All Severe Obstetric Complications (SOC). <br/>
  ((Numerator 1 - Numerator Exclusions 1) / Denominator) * 10,000 delivery hospitalizations</p>
<p>2. SOC excluding encounters where transfusion was the only SOC.<br/>
  ((Numerator 2 - Numerator Exclusions 2) / Denominator) * 10,000 delivery hospitalizations</p>
<p>Numerator 1: Delivery encounters with SOC</p>
<p>Numerator 2: Delivery encounters with SOC excluding encounters where transfusion was the only SOC</p>
<p>Numerator Exclusions 1: Delivery encounters with blood transfusion or hysterectomy with placenta percreta or placenta increta and no additional SOCs</p>
<p>Numerator Exclusions 2: Delivery encounters with SOC excluding encounters where transfusion was the only SOC with a hysterectomy or blood transfusion with a diagnosis of placenta percreta or placenta increta and no additional SOCs</p>
<p>Denominator: Delivery encounters with &gt; or = 20 weeks' gestation completed</p></td>
</tr>



  
<tr>


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


<td class="content-container">[http://terminology.hl7.org/CodeSystem/measure-improvement-notation#decrease: 'Decreased score indicates improvement']</td>
</tr>


  
  
    <tr>
      
        

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


      
      <td class="content-container">
        
        <em>ID</em>: InitialPopulation_1
        <br/>
        
        
          <em>Description</em>:
          <p style="white-space: pre-line" class="tab-one"><p>Inpatient hospitalizations for patients age greater than or equal to 8 years and less than 65 admitted to the hospital for inpatient acute care who undergo a delivery procedure with a discharge date during the measurement period</p></p>
        
        
          
            
            <em>Logic Definition</em>: <a href="#primary-cms1028fhirpcsevereobcomps-initial-population">Initial Population</a> 
          
        
      </td>
    </tr>
  

  
    <tr>
      
        

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


      
      <td class="content-container">
        
        <em>ID</em>: Denominator_1
        <br/>
        
        
          <em>Description</em>:
          <p style="white-space: pre-line" class="tab-one"><p>Inpatient hospitalizations for patients delivering stillborn or live birth with greater than or equal to 20 weeks, 0 days gestation completed</p></p>
        
        
          
            
            <em>Logic Definition</em>: <a href="#primary-cms1028fhirpcsevereobcomps-denominator">Denominator</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"><p>All Severe Obstetric Complications (SOC).</p>
<p>Inpatient hospitalizations for patients with severe obstetric complications (not present on admission that occur during the current delivery encounter) including the following:</p>
<ul>
 <li><p>Severe maternal morbidity diagnoses (see list below)</p></li>
 <li><p>Severe maternal morbidity procedures (see list below)</p></li>
 <li><p>Discharge disposition of expired</p></li>
</ul>
<p>Please note that present on admission codes may be extracted from billing/claims data that was entered by coding staff.</p>
<p>Severe Maternal Morbidity Diagnoses:</p>
<ul>
 <li><p>Cardiac</p>
  <ul>
   <li><p>Acute heart failure</p></li>
   <li><p>Acute myocardial infarction</p></li>
   <li><p>Aortic aneurysm</p></li>
   <li><p>Cardiac arrest/ventricular fibrillation</p></li>
   <li><p>Heart failure/arrest during procedure or surgery</p></li>
  </ul></li>
 <li><p>Hemorrhage</p>
  <ul>
   <li><p>Disseminated intravascular coagulation</p></li>
   <li><p>Shock</p></li>
  </ul></li>
 <li><p>Renal</p>
  <ul>
   <li><p>Acute renal failure</p></li>
  </ul></li>
 <li><p>Respiratory</p>
  <ul>
   <li><p>Adult respiratory distress syndrome</p></li>
   <li><p>Pulmonary edema</p></li>
  </ul></li>
 <li><p>Sepsis</p></li>
 <li><p>Other OB</p>
  <ul>
   <li><p>Air and thrombotic embolism</p></li>
   <li><p>Amniotic fluid embolism</p></li>
   <li><p>Eclampsia</p></li>
   <li><p>Severe anesthesia complications</p></li>
  </ul></li>
 <li><p>Other Medical</p>
  <ul>
   <li><p>Puerperal cerebrovascular disorder</p></li>
   <li><p>Sickle cell disease with crisis</p></li>
  </ul></li>
</ul>
<p>Severe Maternal Morbidity Procedures:</p>
<ul>
 <li><p>Blood transfusion</p></li>
 <li><p>Conversion of cardiac rhythm</p></li>
 <li><p>Hysterectomy</p></li>
 <li><p>Temporary tracheostomy</p></li>
 <li><p>Ventilation</p></li>
</ul></p>
        
        
          
            
            <em>Logic Definition</em>: <a href="#primary-cms1028fhirpcsevereobcomps-numerator-1">Numerator 1</a> 
          
        
      </td>
    </tr>
  

  
    <tr>
      
        

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


      
      <td class="content-container">
        
        <em>ID</em>: NumeratorExclusion_1
        <br/>
        
        
          <em>Description</em>:
          <p style="white-space: pre-line" class="tab-one"><p>Inpatient hospitalizations with blood transfusion or hysterectomy with a diagnosis of placenta percreta or placenta increta and no additional severe obstetrical complications</p></p>
        
        
          
            
            <em>Logic Definition</em>: <a href="#primary-cms1028fhirpcsevereobcomps-numerator-exclusions-1">Numerator Exclusions 1</a> 
          
        
      </td>
    </tr>
  

  

  
    
    <tr>


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


</tr>
  
  
    
<tr>


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


<td class="content-container"><p>SOC excluding encounters where transfusion was the only SOC</p></td>
</tr>

  
  
  
<tr>


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


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



  
<tr>


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


<td class="content-container">[http://terminology.hl7.org/CodeSystem/measure-scoring#proportion: 'Proportion']</td>
</tr>







  
<tr>


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


<td class="content-container">[http://terminology.hl7.org/CodeSystem/measure-type#outcome: 'Outcome']</td>
</tr>




  
<tr>


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


<td class="content-container"><p>Two hospital-level measure scores are calculated as a risk-adjusted proportion reported as a rate per 10,000 delivery hospitalizations:</p>
<p>1. All Severe Obstetric Complications (SOC). <br/>
  ((Numerator 1 – Numerator Exclusions 1) / Denominator) * 10,000 delivery hospitalizations</p>
<p>2. SOC excluding encounters where transfusion was the only SOC.<br/>
  ((Numerator 2 – Numerator Exclusions 2) / Denominator) * 10,000 delivery hospitalizations</p>
<p>Numerator 1: Delivery encounters with SOC</p>
<p>Numerator 2: Delivery encounters with SOC excluding encounters where transfusion was the only SOC</p>
<p>Numerator Exclusions 1: Delivery encounters with blood transfusion or hysterectomy with placenta percreta or placenta increta and no additional SOCs</p>
<p>Numerator Exclusions 2: Delivery encounters with SOC excluding encounters where transfusion was the only SOC with a hysterectomy or blood transfusion with a diagnosis of placenta percreta or placenta increta and no additional SOCs</p>
<p>Denominator: Delivery encounters with &gt; or = 20 weeks' gestation completed</p></td>
</tr>



  
<tr>


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


<td class="content-container">[http://terminology.hl7.org/CodeSystem/measure-improvement-notation#decrease: 'Decreased score indicates improvement']</td>
</tr>


  
  
    <tr>
      
        

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


      
      <td class="content-container">
        
        <em>ID</em>: InitialPopulation_2
        <br/>
        
        
          <em>Description</em>:
          <p style="white-space: pre-line" class="tab-one"><p>Inpatient hospitalizations for patients age greater than or equal to 8 years and less than 65 admitted to the hospital for inpatient acute care who undergo a delivery procedure with a discharge date during the measurement period</p></p>
        
        
          
            
            <em>Logic Definition</em>: <a href="#primary-cms1028fhirpcsevereobcomps-initial-population">Initial Population</a> 
          
        
      </td>
    </tr>
  

  
    <tr>
      
        

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


      
      <td class="content-container">
        
        <em>ID</em>: Denominator_2
        <br/>
        
        
          <em>Description</em>:
          <p style="white-space: pre-line" class="tab-one"><p>Inpatient hospitalizations for patients delivering stillborn or live birth with greater than or equal to 20 weeks, 0 days gestation completed</p></p>
        
        
          
            
            <em>Logic Definition</em>: <a href="#primary-cms1028fhirpcsevereobcomps-denominator">Denominator</a> 
          
        
      </td>
    </tr>
  

  
    <tr>
      
        

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


      
      <td class="content-container">
        
        <em>ID</em>: Numerator_2
        <br/>
        
        
          <em>Description</em>:
          <p style="white-space: pre-line" class="tab-one"><p>Delivery encounters with SOC excluding encounters where transfusion was the only SOC.</p>
<p>Inpatient hospitalizations for patients with severe obstetric complications (not present on admission that occur during the current delivery encounter) including:</p>
<ul>
 <li><p>Severe maternal morbidity diagnoses (see following list)</p></li>
 <li><p>Severe maternal morbidity procedures (see following list)</p></li>
 <li><p>Discharge disposition of expired, yet excluding encounters where transfusion was the only SOC.</p></li>
</ul>
<p>Please note that present on admission codes may be those entered by coding staff, extracted from billing/claims data.</p>
<p>Severe Maternal Morbidity Diagnoses:</p>
<ul>
 <li><p>Cardiac</p>
  <ul>
   <li><p>Acute heart failure</p></li>
   <li><p>Acute myocardial infarction</p></li>
   <li><p>Aortic aneurysm</p></li>
   <li><p>Cardiac arrest/ventricular fibrillation</p></li>
   <li><p>Heart failure/arrest during procedure or surgery</p></li>
  </ul></li>
 <li><p>Hemorrhage</p>
  <ul>
   <li><p>Disseminated intravascular coagulation</p></li>
   <li><p>Shock</p></li>
  </ul></li>
 <li><p>Renal</p>
  <ul>
   <li><p>Acute renal failure</p></li>
  </ul></li>
 <li><p>Respiratory</p>
  <ul>
   <li><p>Adult respiratory distress syndrome</p></li>
   <li><p>Pulmonary edema</p></li>
  </ul></li>
 <li><p>Sepsis</p></li>
 <li><p>Other OB</p>
  <ul>
   <li><p>Air and thrombotic embolism</p></li>
   <li><p>Amniotic fluid embolism</p></li>
   <li><p>Eclampsia</p></li>
   <li><p>Severe anesthesia complications</p></li>
  </ul></li>
 <li><p>Other</p>
  <ul>
   <li><p>Medical Puerperal cerebrovascular disorder</p></li>
   <li><p>Sickle cell disease with crisis</p></li>
  </ul></li>
</ul>
<p>Severe Maternal Morbidity Procedures:</p>
<ul>
 <li><p>Blood transfusion</p></li>
 <li><p>Conversion of cardiac rhythm</p></li>
 <li><p>Hysterectomy</p></li>
 <li><p>Temporary tracheostomy</p></li>
 <li><p>Ventilation</p></li>
</ul></p>
        
        
          
            
            <em>Logic Definition</em>: <a href="#primary-cms1028fhirpcsevereobcomps-numerator-2">Numerator 2</a> 
          
        
      </td>
    </tr>
  

  
    <tr>
      
        

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


      
      <td class="content-container">
        
        <em>ID</em>: NumeratorExclusion_2
        <br/>
        
        
          <em>Description</em>:
          <p style="white-space: pre-line" class="tab-one"><p>Inpatient hospitalizations with SOC excluding encounters where transfusion was the only SOC with a hysterectomy or blood transfusion with a diagnosis of placenta percreta or placenta increta and no additional severe obstetrical complications</p></p>
        
        
          
            
            <em>Logic Definition</em>: <a href="#primary-cms1028fhirpcsevereobcomps-numerator-exclusions-2">Numerator Exclusions 2</a> 
          
        
      </td>
    </tr>
  

  


  
    
<tr>


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


<td class="content-container"><p>For every patient evaluated by this measure also identify payer, race, ethnicity and sex. No additional supplemental data elements are required to be submitted by reporting entities; all other needed data points are calculated following data receipt.</p></td>
</tr>

  

  
    
<tr>


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


<td class="content-container"><p>Please see the included Severe Obstetric Complications Risk Adjustment Methodology Report.</p>
<p>Pre-existing conditions and variables must be present on admission. Please note that present on admission codes may be extracted from billing/claims data that was entered by coding staff (Leonard, Kennedy, Carmichael, Lyell, &amp; Main, 2020; Main, Leonard, &amp; Menard, 2020).</p>
<ul>
 <li><p>Anemia (includes sickle cell disease)</p></li>
 <li><p>Asthma</p></li>
 <li><p>Autoimmune Disease</p></li>
 <li><p>Bariatric Surgery</p></li>
 <li><p>Bleeding Disorder</p></li>
 <li><p>Cardiac Disease</p></li>
 <li><p>Economic Housing Instability</p></li>
 <li><p>Gastrointestinal Disease</p></li>
 <li><p>Gestational Diabetes</p></li>
 <li><p>HIV</p></li>
 <li><p>Hypertension</p></li>
 <li><p>Long-term Anticoagulant Use</p></li>
 <li><p>Maternal Age (derived from birthdate)</p></li>
 <li><p>Mental Health Disorder</p></li>
 <li><p>Morbid Obesity</p></li>
 <li><p>Multiple Pregnancy</p></li>
 <li><p>Neuromuscular Disease</p></li>
 <li><p>Obstetric VTE</p></li>
 <li><p>Other Pre-eclampsia</p></li>
 <li><p>Placenta Previa</p></li>
 <li><p>Placental Abruption</p></li>
 <li><p>Placental Accreta Spectrum</p></li>
 <li><p>Pre-existing Diabetes</p></li>
 <li><p>Preterm Birth</p></li>
 <li><p>Previous Cesarean</p></li>
 <li><p>Pulmonary Hypertension</p></li>
 <li><p>Renal Disease</p></li>
 <li><p>Severe Pre-eclampsia</p></li>
 <li><p>Substance Abuse</p></li>
 <li><p>Thyrotoxicosis</p></li>
</ul>
<p>Lab and Physical Exam Results: Report the first resulted value 24 hours prior to start of encounter and before time of delivery in UCUM units specified:</p>
<ul>
 <li><p>Heart rate: {beats}/min</p></li>
 <li><p>Systolic blood pressure: mm[Hg]</p></li>
 <li><p>Hematocrit: %</p></li>
 <li><p>White blood cell count: 10*3/uL</p></li>
</ul></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>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#supplemental-data]
        
        <br/>
      
    
    
      <em>Description</em>: SDE Ethnicity
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-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>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#supplemental-data]
        
        <br/>
      
    
    
      <em>Description</em>: SDE Payer
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-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>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#supplemental-data]
        
        <br/>
      
    
    
      <em>Description</em>: SDE Race
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-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>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#supplemental-data]
        
        <br/>
      
    
    
      <em>Description</em>: SDE Sex
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-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>: sde-delivery-encounters-with-severe-obstetric-complication-diagnosis
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#supplemental-data]
        
        <br/>
      
    
    
      <em>Description</em>: SDE Delivery Encounters With Severe Obstetric Complication Diagnosis
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-sde-delivery-encounters-with-severe-obstetric-complication-diagnosis">SDE Delivery Encounters With Severe Obstetric Complication Diagnosis</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: sde-soc-diagnoses-detail
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#supplemental-data]
        
        <br/>
      
    
    
      <em>Description</em>: SDE SOC Diagnoses Detail
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-sde-soc-diagnoses-detail">SDE SOC Diagnoses Detail</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: sde-soc-procedure-detail
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#supplemental-data]
        
        <br/>
      
    
    
      <em>Description</em>: SDE SOC Procedure Detail
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-sde-soc-procedure-detail">SDE SOC Procedure Detail</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: sde-variable-calculated-gestational-age
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#supplemental-data]
        
        <br/>
      
    
    
      <em>Description</em>: SDE Variable Calculated Gestational Age
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-sde-variable-calculated-gestational-age">SDE Variable Calculated Gestational Age</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: sde-delivery-encounters-with-severe-obstetric-complication-procedures
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#supplemental-data]
        
        <br/>
      
    
    
      <em>Description</em>: SDE Delivery Encounters With Severe Obstetric Complication Procedures
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-sde-delivery-encounters-with-severe-obstetric-complication-procedures">SDE Delivery Encounters With Severe Obstetric Complication Procedures</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-anemia
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Anemia
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-anemia">Risk Variable Anemia</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-asthma
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Asthma
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-asthma">Risk Variable Asthma</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-autoimmune-disease
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Autoimmune Disease
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-autoimmune-disease">Risk Variable Autoimmune Disease</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-bariatric-surgery
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Bariatric Surgery
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-bariatric-surgery">Risk Variable Bariatric Surgery</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-bleeding-disorder
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Bleeding Disorder
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-bleeding-disorder">Risk Variable Bleeding Disorder</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-cardiac-disease
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Cardiac Disease
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-cardiac-disease">Risk Variable Cardiac Disease</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-economic-housing-instability
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Economic Housing Instability
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-economic-housing-instability">Risk Variable Economic Housing Instability</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-gastrointestinal-disease
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Gastrointestinal Disease
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-gastrointestinal-disease">Risk Variable Gastrointestinal Disease</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-gestational-diabetes
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Gestational Diabetes
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-gestational-diabetes">Risk Variable Gestational Diabetes</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-hiv
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable HIV
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-hiv">Risk Variable HIV</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-hypertension
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Hypertension
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-hypertension">Risk Variable Hypertension</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-long-term-anticoagulant-use
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Long Term Anticoagulant Use
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-long-term-anticoagulant-use">Risk Variable Long Term Anticoagulant Use</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-maternal-age
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Maternal Age
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-maternal-age">Risk Variable Maternal Age</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-mental-health-disorder
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Mental Health Disorder
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-mental-health-disorder">Risk Variable Mental Health Disorder</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-morbid-obesity
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Morbid Obesity
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-morbid-obesity">Risk Variable Morbid Obesity</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-multiple-pregnancy
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Multiple Pregnancy
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-multiple-pregnancy">Risk Variable Multiple Pregnancy</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-obstetrical-vte
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Obstetrical VTE
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-obstetrical-vte">Risk Variable Obstetrical VTE</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-other-preeclampsia
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Other Preeclampsia
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-other-preeclampsia">Risk Variable Other Preeclampsia</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-placenta-previa
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Placenta Previa
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-placenta-previa">Risk Variable Placenta Previa</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-placental-abruption
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Placental Abruption
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-placental-abruption">Risk Variable Placental Abruption</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-placental-accreta-spectrum
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Placental Accreta Spectrum
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-placental-accreta-spectrum">Risk Variable Placental Accreta Spectrum</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-preexisting-diabetes
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Preexisting Diabetes
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-preexisting-diabetes">Risk Variable Preexisting Diabetes</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-previous-cesarean
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Previous Cesarean
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-previous-cesarean">Risk Variable Previous Cesarean</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-pulmonary-hypertension
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Pulmonary Hypertension
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-pulmonary-hypertension">Risk Variable Pulmonary Hypertension</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-renal-disease
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Renal Disease
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-renal-disease">Risk Variable Renal Disease</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-severe-preeclampsia
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Severe Preeclampsia
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-severe-preeclampsia">Risk Variable Severe Preeclampsia</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-substance-abuse
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Substance Abuse
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-substance-abuse">Risk Variable Substance Abuse</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-thyrotoxicosis
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Thyrotoxicosis
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-thyrotoxicosis">Risk Variable Thyrotoxicosis</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-preterm-birth
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Preterm Birth
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-preterm-birth">Risk Variable Preterm Birth</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-first-hematocrit-lab-test
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable First Hematocrit Lab Test
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-first-hematocrit-lab-test">Risk Variable First Hematocrit Lab Test</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-first-white-blood-cell-count-lab-test
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable First White Blood Cell Count Lab Test
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-first-white-blood-cell-count-lab-test">Risk Variable First White Blood Cell Count Lab Test</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-heart-rate
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Heart Rate
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-heart-rate">Risk Variable Heart Rate</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-systolic-blood-pressure
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Systolic Blood Pressure
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-systolic-blood-pressure">Risk Variable Systolic Blood Pressure</a> 
      
    
  </td>
</tr>

<tr>
  

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


  <td class="content-container">
    
      <em>ID</em>: risk-variable-neuromuscular-disease
      
      <br/>
      
    
    
      
        
          <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#risk-adjustment-factor]
        
        <br/>
      
    
    
      <em>Description</em>: Risk Variable Neuromuscular Disease
    
    
      
        <br/>
        
        <em>Logic Definition</em>: <a href="#cms1028fhirpcsevereobcomps-risk-variable-neuromuscular-disease">Risk Variable Neuromuscular Disease</a> 
      
    
  </td>
</tr>


<tr>


<th colspan="2" scope="row" class="row-header">Measure Logic</th>


</tr>

<tr>


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


<td class="content-container">https://madie.cms.gov/Library/CMS1028FHIRPCSevereOBComps</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/>
  </td>
</tr>


  <tr>


<th colspan="2" scope="row" class="row-header"><a name="population-criteria"> </a>Population Criteria</th>


</tr>
  
  
  
  
    
    <tr>


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


</tr>
  
  
  
  
    
      
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
            
              
            
            <tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="primary-cms1028fhirpcsevereobcomps-initial-population"> </a>
    
    
    Initial Population
    
  </th>
</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Initial Population&quot;:
  PCMaternal.&quot;Delivery Encounter With Age Range&quot;</code></pre>
  </td>

</tr>

          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
      
    
  

  
    
      
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
            
              
            
            <tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="primary-cms1028fhirpcsevereobcomps-denominator"> </a>
    
    
    Denominator
    
  </th>
</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Denominator&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot;</code></pre>
  </td>

</tr>

          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
      
    
  

  
    
      
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
            
              
            
            <tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="primary-cms1028fhirpcsevereobcomps-numerator-1"> </a>
    
    
    Numerator
    
  </th>
</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Numerator 1&quot;:
  &quot;Delivery Encounters With Severe Obstetric Complications&quot;</code></pre>
  </td>

</tr>

          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
      
    
  

  
    
      
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
            
              
            
            <tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="primary-cms1028fhirpcsevereobcomps-numerator-exclusions-1"> </a>
    
    
    Numerator Exclusion
    
  </th>
</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Numerator Exclusions 1&quot;:
  &quot;SOC With Hysterectomy Or Blood Transfusion With Placenta Increta Or Placenta Percreta Without Additional SOC&quot;</code></pre>
  </td>

</tr>

          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
      
    
  

  
  

  
    
    <tr>


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


</tr>
  
  
  
  
    
      
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
            
              
            
            <tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="primary-cms1028fhirpcsevereobcomps-initial-population"> </a>
    
    
    Initial Population
    
  </th>
</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Initial Population&quot;:
  PCMaternal.&quot;Delivery Encounter With Age Range&quot;</code></pre>
  </td>

</tr>

          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
      
    
  

  
    
      
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
            
              
            
            <tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="primary-cms1028fhirpcsevereobcomps-denominator"> </a>
    
    
    Denominator
    
  </th>
</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Denominator&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot;</code></pre>
  </td>

</tr>

          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
      
    
  

  
    
      
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
            
              
            
            <tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="primary-cms1028fhirpcsevereobcomps-numerator-2"> </a>
    
    
    Numerator
    
  </th>
</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Numerator 2&quot;:
  &quot;Delivery Encounters With Severe Obstetric Complications Excluding Blood Transfusions Only&quot;</code></pre>
  </td>

</tr>

          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
      
    
  

  
    
      
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
            
              
            
            <tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="primary-cms1028fhirpcsevereobcomps-numerator-exclusions-2"> </a>
    
    
    Numerator Exclusion
    
  </th>
</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Numerator Exclusions 2&quot;:
  &quot;SOC Excluding Blood Transfusions Only With Hysterectomy Or Blood Transfusion With Placenta Increta Or Placenta Percreta Without Additional SOC&quot;</code></pre>
  </td>

</tr>

          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
          
        
      
    
  

  
  

  
  


  <tr>


<th colspan="2" scope="row" class="row-header"><a name="definitions"> </a>Logic Definitions</th>


</tr>
  
  
          
        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="supplementaldataelements-sde-payer"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

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

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

</tr>
<tr>

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

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

</tr>
<tr>

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

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &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">
    
      
      <a name="pcmaternal-encounter-with-age-range"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter With Age Range&quot;:
 CQMCommon.&quot;Inpatient Encounter&quot; InpatientEncounter
                      where AgeInYearsAt(date from start of InpatientEncounter.period) in Interval[ 8, 65 )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="pcmaternal-delivery-encounter-with-age-range"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Delivery Encounter With Age Range&quot;:
  &quot;Encounter With Age Range&quot; EncounterWithAge
                with [&quot;Procedure&quot;: &quot;Delivery Procedures&quot;] DeliveryProcedure
                such that DeliveryProcedure.status = 'completed'
                and DeliveryProcedure.performed.toInterval  ( ) starts during EncounterWithAge.hospitalizationWithEDOBTriageObservation ()</code></pre>
  </td>

</tr>



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="pcmaternal-variable-calculated-gestational-age"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Variable Calculated Gestational Age&quot;:
 &quot;Delivery Encounter With Age Range&quot; DeliveryEncounter
    let CGA: DeliveryEncounter.calculatedGestationalAge()
    return {
      EncounterID: DeliveryEncounter.id,
      CalculatedCGA: CGA
    }</code></pre>
  </td>

</tr>



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        


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

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

</tr>
<tr>

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

</tr>



        


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

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function calculatedGestationalAge (TheEncounter Encounter ):
  //Gestational Age = (280 -(Estimated Delivery Date minus Reference Date/Delivery Date))/7
 ( 280 - ( difference in days between TheEncounter.lastTimeOfDelivery () and TheEncounter.lastEstimatedDeliveryDate( )) ) div 7</code></pre>
  </td>

</tr>



        


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

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function lastTimeOfDelivery (TheEncounter Encounter ):
  Last([&quot;SimpleObservation&quot;: &quot;Date and time of obstetric delivery&quot;] TimeOfDelivery
      where TimeOfDelivery.value as DateTime is not null
        and TimeOfDelivery.status in { 'final', 'amended', 'corrected' }
        and TimeOfDelivery.effective.earliest () during TheEncounter.hospitalizationWithEDOBTriageObservation ()
        and TimeOfDelivery.value as DateTime during TheEncounter.hospitalizationWithEDOBTriageObservation()
      sort by effective.earliest()
  ).value as DateTime</code></pre>
  </td>

</tr>



        



        



        


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

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function lastEstimatedDeliveryDate (TheEncounter Encounter ):
  /*This function identifies the last time the EDD was assessed 42 weeks or less prior to or on delivery and stores the result of that assessment.*/
  Last([&quot;SimpleObservation&quot;: &quot;Delivery date Estimated&quot;] EstimatedDateOfDelivery
      where EstimatedDateOfDelivery.value as DateTime is not null
        and EstimatedDateOfDelivery.status in { 'final', 'amended', 'corrected' }
        and EstimatedDateOfDelivery.effective.earliest ( ) 42 weeks or less before or on TheEncounter.lastTimeOfDelivery ()
      sort by effective.earliest ( )
  ).value as DateTime</code></pre>
  </td>

</tr>



        


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

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function lastEstimatedGestationalAge (TheEncounter Encounter ):
  Last([&quot;SimpleObservation&quot;: &quot;Estimated Gestational Age at Delivery&quot;] EstimatedGestationalAge
  let EGATiming:  EstimatedGestationalAge.effective.earliest() where 
  (EGATiming 24 hours or less before or on TheEncounter.lastTimeOfDelivery () 
  and EstimatedGestationalAge.value is not null 
  and EstimatedGestationalAge.status in { 'final', 'amended', 'corrected' }) or 
      (EGATiming same day as TheEncounter.lastTimeOfDelivery () 
      and EGATiming during TheEncounter.hospitalizationWithEDOBTriageObservation() 
      and EstimatedGestationalAge.value is not null)
 sort by effective.earliest ())
         .value as Quantity</code></pre>
  </td>

</tr>



        



        



        



        



        



        



        



        



        



        



        



        



        



        




        
        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        


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

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
@description: Normalizes a value that is a choice of timing-valued types to an equivalent interval
@comment: Normalizes a choice type of DateTime, Quanitty, Interval&lt;DateTime&gt;, or Interval&lt;Quantity&gt; types
to an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible
representations for timing-valued elements in QICore, allowing this function to be used across any resource.
The input can be provided as a DateTime, Quantity, Interval&lt;DateTime&gt; or Interval&lt;Quantity&gt;.
The intent of this function is to provide a clear and concise mechanism to treat single
elements that have multiple possible representations as intervals so that logic doesn't have to account
for the variability. More complex calculations (such as medication request period or dispense period
calculation) need specific guidance and consideration. That guidance may make use of this function, but
the focus of this function is on single element calculations where the semantics are unambiguous.
If the input is a DateTime, the result a DateTime Interval beginning and ending on that DateTime.
If the input is a Quantity, the quantity is expected to be a calendar-duration interpreted as an Age,
and the result is a DateTime Interval beginning on the Date the patient turned that age and ending immediately before one year later.
If the input is a DateTime Interval, the result is the input.
If the input is a Quantity Interval, the quantities are expected to be calendar-durations interpreted as an Age, and the result
is a DateTime Interval beginning on the date the patient turned the age given as the start of the quantity interval, and ending
immediately before one year later than the date the patient turned the age given as the end of the quantity interval.
If the input is a Timing, an error will be thrown indicating that Timing calculations are not implemented. Any other input will reslt in a null DateTime Interval
*/
define fluent function toInterval(choice Choice&lt;DateTime, Quantity, Interval&lt;DateTime&gt;, Interval&lt;Quantity&gt;, Timing&gt;):
  case
	  when choice is DateTime then
    	Interval[choice as DateTime, choice as DateTime]
		when choice is Interval&lt;DateTime&gt; then
  		choice as Interval&lt;DateTime&gt;
		when choice is Quantity then
		  Interval[Patient.birthDate + (choice as Quantity),
			  Patient.birthDate + (choice as Quantity) + 1 year)
		when choice is Interval&lt;Quantity&gt; then
		  Interval[Patient.birthDate + (choice.low as Quantity),
			  Patient.birthDate + (choice.high as Quantity) + 1 year)
		when choice is Timing then
      Message(null, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a Timing value is not supported') as Interval&lt;DateTime&gt;
		else
			null as Interval&lt;DateTime&gt;
	end</code></pre>
  </td>

</tr>



        



        



        



        


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

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

</tr>
<tr>

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

</tr>



        


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

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
@description: Given an interval, 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">
    
      
      <a name="qicorecommon-references"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

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

</tr>



        



        



        


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

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
@description: Returns true if 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;Reference&gt;, resource Resource):
  exists (references R where R.references(resource))</code></pre>
  </td>

</tr>



        


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

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
@description: Returns true if the given reference is to the given 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 Reference, resource Resource):
  resource.id = Last(Split(reference.reference, '/'))</code></pre>
  </td>

</tr>



        



        



        



        



        



        




        
        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cqmcommon-inpatient-encounter"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Inpatient Encounter&quot;:
  [Encounter: &quot;Encounter Inpatient&quot;] EncounterInpatient
    where EncounterInpatient.status = 'finished'
      and EncounterInpatient.period ends during day of &quot;Measurement Period&quot;</code></pre>
  </td>

</tr>



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        


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

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

</tr>
<tr>

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

</tr>



        



        


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

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
 @description: Returns true if the given diagnosis is present on admission, based on the given poaValueSet
 @comment: See the QICore 6 Authoring Patterns discussion on [Principal Diagnosis and Present on Admission](https://github.com/cqframework/CQL-Formatting-and-Usage-Wiki/wiki/Authoring-Patterns-QICore-v6.0.0#conditions-present-on-admission-and-principal-diagnoses) for more information
 */
 define fluent function isDiagnosisPresentOnAdmission(encounter Encounter, diagnosisValueSet ValueSet, poaValueSet ValueSet):
   exists (
     (encounter.claimDiagnosis()) CD
       where CD.onAdmission in poaValueSet
         and (
           CD.diagnosis in diagnosisValueSet
             or CD.diagnosis.getCondition().code in diagnosisValueSet
         )
   )</code></pre>
  </td>

</tr>



        


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

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
@description: Returns the claim diagnosis elements for the given encounter
@comment: See the QICore 6 Authoring Patterns discussion on [Principal Diagnosis and Present on Admission](https://github.com/cqframework/CQL-Formatting-and-Usage-Wiki/wiki/Authoring-Patterns-QICore-v6.0.0#conditions-present-on-admission-and-principal-diagnoses) for more information
*/
define fluent function claimDiagnosis(encounter Encounter):
  encounter E
    let 
      claim: ([Claim] C where C.status = 'active' and C.use = 'claim' and exists (C.item I where I.encounter.references(E))),
      claimItem: (claim.item I where I.encounter.references(E))
    return claim.diagnosis D where D.sequence in claimItem.diagnosisSequence</code></pre>
  </td>

</tr>



        



        



        


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

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
@description: Returns the Condition resource for the given reference
*/
define fluent function getCondition(reference Reference):
  singleton from (([ConditionEncounterDiagnosis] union [ConditionProblemsHealthConcerns]) C where reference.references(C.id))</code></pre>
  </td>

</tr>



        



        



        



        



        




        
        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        



        


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

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
@description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period)
value to a CQL DateTime Interval
@comment: If the start value of the given period is unspecified, the starting
boundary of the resulting interval will be open (meaning the start of the interval
is unknown, as opposed to interpreted as the beginning of time).
*/
define function ToInterval(period FHIR.Period):
    if period is null then
        null
    else
        if period.&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">
    
      
      <a name="fhirhelpers-toconcept"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
@description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.
*/
define function ToConcept(concept FHIR.CodeableConcept):
    if concept is null then
        null
    else
        System.Concept {
            codes: concept.coding C return ToCode(C),
            display: concept.text.value
        }</code></pre>
  </td>

</tr>



        


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

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
@description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code.
*/
define function ToCode(coding FHIR.Coding):
    if coding is null then
        null
    else
        System.Code {
          code: coding.code.value,
          system: coding.system.value,
          version: coding.version.value,
          display: coding.display.value
        }</code></pre>
  </td>

</tr>



        



        



        



        



        



        



        



        


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

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

</tr>
<tr>

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

</tr>



        



        



        



        




        
        



        



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-delivery-encounters-with-calculated-gestational-age-greater-than-or-equal-to-20-weeks"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Delivery Encounters With Calculated Gestational Age Greater Than Or Equal To 20 Weeks&quot;:
  PCMaternal.&quot;Delivery Encounter With Age Range&quot; DeliveryEncounter
    where DeliveryEncounter.calculatedGestationalAge ( ) &gt;= 20</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-delivery-encounters-with-estimated-gestational-age-assessment-greater-than-or-equal-to-20-weeks"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Delivery Encounters With Estimated Gestational Age Assessment Greater Than Or Equal To 20 Weeks&quot;:
  PCMaternal.&quot;Delivery Encounter With Age Range&quot; DeliveryEncounter
    where DeliveryEncounter.calculatedGestationalAge ( ) is null
      and ( DeliveryEncounter.lastEstimatedGestationalAge ( ) &gt;= 20 weeks )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-delivery-encounters-with-gestational-age-greater-than-or-equal-to-20-weeks-based-on-coding"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Delivery Encounters With Gestational Age Greater Than Or Equal To 20 Weeks Based On Coding&quot;:
  PCMaternal.&quot;Delivery Encounter With Age Range&quot; DeliveryEncounter
    where DeliveryEncounter.calculatedGestationalAge ( ) is null
      and DeliveryEncounter.lastEstimatedGestationalAge ( ) is null
      and ( DeliveryEncounter.reasonCode in &quot;20 to 42 Plus Weeks Gestation&quot;
          or DeliveryEncounter.encounterDiagnosis ( ).code in &quot;20 to 42 Plus Weeks Gestation&quot;
      )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-delivery-encounters-at-greater-than-or-equal-to-20-weeks-gestation"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot;:
  &quot;Delivery Encounters With Calculated Gestational Age Greater Than Or Equal To 20 Weeks&quot;
    union &quot;Delivery Encounters With Estimated Gestational Age Assessment Greater Than Or Equal To 20 Weeks&quot;
    union &quot;Delivery Encounters With Gestational Age Greater Than Or Equal To 20 Weeks Based On Coding&quot;</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-asthma"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Asthma&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Acute or Persistent Asthma&quot;, &quot;Present On Admission is Yes or Exempt&quot; )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-delivery-encounters-with-severe-obstetric-complications-diagnosis-or-procedure-excluding-blood-transfusion"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Delivery Encounters With Severe Obstetric Complications Diagnosis Or Procedure Excluding Blood Transfusion&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Severe Maternal Morbidity Diagnoses&quot;, &quot;Present on Admission is No or Unable To Determine&quot; )
      or ( exists ( [&quot;Procedure&quot;: &quot;Severe Maternal Morbidity Procedures&quot;] SMMProcedures
            where SMMProcedures.status = 'completed'
              and SMMProcedures.performed.toInterval ( ) starts during TwentyWeeksPlusEncounter.hospitalizationWithEDOBTriageObservation ( )
        )
      )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-delivery-encounters-with-expiration"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Delivery Encounters With Expiration&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.hospitalization.dischargeDisposition in &quot;Patient Expired&quot;</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-delivery-encounters-with-blood-transfusion"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Delivery Encounters With Blood Transfusion&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    with [&quot;Procedure&quot;: &quot;Blood Transfusion&quot;] BloodTransfusion
      such that BloodTransfusion.status = 'completed'
        and BloodTransfusion.performed.toInterval ( ) starts during TwentyWeeksPlusEncounter.hospitalizationWithEDOBTriageObservation ( )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-delivery-encounters-with-severe-obstetric-complications"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Delivery Encounters With Severe Obstetric Complications&quot;:
  &quot;Delivery Encounters With Severe Obstetric Complications Diagnosis Or Procedure Excluding Blood Transfusion&quot;
    union &quot;Delivery Encounters With Expiration&quot;
    union &quot;Delivery Encounters With Blood Transfusion&quot;</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-delivery-encounters-with-hysterectomy"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Delivery Encounters With Hysterectomy&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    with [&quot;Procedure&quot;: &quot;Hysterectomy&quot;] Hysterectomy
      such that Hysterectomy.status = 'completed'
        and Hysterectomy.performed.toInterval ( ) starts during TwentyWeeksPlusEncounter.hospitalizationWithEDOBTriageObservation ( )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-cardiac-conversion,-tracheostomy-or-ventilation-procedures"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Cardiac Conversion, Tracheostomy Or Ventilation Procedures&quot;:
  [&quot;Procedure&quot;: &quot;Conversion of Cardiac Rhythm&quot;]
    union [&quot;Procedure&quot;: &quot;Tracheostomy&quot;]
    union [&quot;Procedure&quot;: &quot;Ventilation&quot;]</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-delivery-encounters-with-cardiac-conversion,-tracheostomy-or-ventilation-procedures"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Delivery Encounters With Cardiac Conversion, Tracheostomy Or Ventilation Procedures&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    with &quot;Cardiac Conversion, Tracheostomy Or Ventilation Procedures&quot; ConvTrachVentProcedures
      such that ConvTrachVentProcedures.status = 'completed'
        and ConvTrachVentProcedures.performed.toInterval ( ) starts during TwentyWeeksPlusEncounter.hospitalizationWithEDOBTriageObservation ( )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-soc-with-hysterectomy-or-blood-transfusion-with-placenta-increta-or-placenta-percreta-without-additional-soc"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;SOC With Hysterectomy Or Blood Transfusion With Placenta Increta Or Placenta Percreta Without Additional SOC&quot;:
  ( &quot;Delivery Encounters With Severe Obstetric Complications&quot; SOCEncounter
      where ( SOCEncounter.reasonCode in &quot;Placenta Increta or Percreta&quot;
          or SOCEncounter.encounterDiagnosis ( ).code in &quot;Placenta Increta or Percreta&quot;
      )
        and ( exists &quot;Delivery Encounters With Blood Transfusion&quot;
            or exists &quot;Delivery Encounters With Hysterectomy&quot;
        )
  )
	//The following logic keeps encounter in the numerator if there is an additional SOC besides Blood Transfusion or Hysterectomy
    
    except ( ( &quot;Delivery Encounters With Severe Obstetric Complications&quot; SOCEncounter
          where SOCEncounter.isDiagnosisPresentOnAdmission ( &quot;Severe Maternal Morbidity Diagnoses&quot;, &quot;Present on Admission is No or Unable To Determine&quot; )
      )
        union &quot;Delivery Encounters With Cardiac Conversion, Tracheostomy Or Ventilation Procedures&quot;
        union &quot;Delivery Encounters With Expiration&quot;
    )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-numerator-exclusions-1"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Numerator Exclusions 1&quot;:
  &quot;SOC With Hysterectomy Or Blood Transfusion With Placenta Increta Or Placenta Percreta Without Additional SOC&quot;</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-delivery-encounters-with-severe-obstetric-complications-excluding-blood-transfusions"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Delivery Encounters With Severe Obstetric Complications Excluding Blood Transfusions&quot;:
  &quot;Delivery Encounters With Severe Obstetric Complications Diagnosis Or Procedure Excluding Blood Transfusion&quot;
    union &quot;Delivery Encounters With Expiration&quot;</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-delivery-encounters-with-severe-obstetric-complications-excluding-blood-transfusions-only"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Delivery Encounters With Severe Obstetric Complications Excluding Blood Transfusions Only&quot;:
  &quot;Delivery Encounters With Severe Obstetric Complications&quot;
    intersect &quot;Delivery Encounters With Severe Obstetric Complications Excluding Blood Transfusions&quot;</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-soc-excluding-blood-transfusions-only-with-hysterectomy-or-blood-transfusion-with-placenta-increta-or-placenta-percreta-without-additional-soc"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;SOC Excluding Blood Transfusions Only With Hysterectomy Or Blood Transfusion With Placenta Increta Or Placenta Percreta Without Additional SOC&quot;:
  ( &quot;Delivery Encounters With Severe Obstetric Complications Excluding Blood Transfusions Only&quot; SOCExcludingTransfusion
      where ( SOCExcludingTransfusion.reasonCode in &quot;Placenta Increta or Percreta&quot;
          or SOCExcludingTransfusion.encounterDiagnosis ( ).code in &quot;Placenta Increta or Percreta&quot;
      )
        and ( exists &quot;Delivery Encounters With Blood Transfusion&quot;
            or exists &quot;Delivery Encounters With Hysterectomy&quot;
        )
  )
	
	//The following logic keeps encounter in the numerator if there is an additional SOC besides Blood Transfusion or Hysterectomy
    
    except ( ( &quot;Delivery Encounters With Severe Obstetric Complications Excluding Blood Transfusions Only&quot; SOCExcludingTransfusion
          where SOCExcludingTransfusion.isDiagnosisPresentOnAdmission ( &quot;Severe Maternal Morbidity Diagnoses&quot;, &quot;Present on Admission is No or Unable To Determine&quot; )
      )
        union &quot;Delivery Encounters With Cardiac Conversion, Tracheostomy Or Ventilation Procedures&quot;
        union &quot;Delivery Encounters With Expiration&quot;
    )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-numerator-exclusions-2"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Numerator Exclusions 2&quot;:
  &quot;SOC Excluding Blood Transfusions Only With Hysterectomy Or Blood Transfusion With Placenta Increta Or Placenta Percreta Without Additional SOC&quot;</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-placental-accreta-spectrum"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Placental Accreta Spectrum&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Placenta Accreta&quot;, &quot;Present On Admission is Yes or Exempt&quot; )
      or TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Placenta Increta or Percreta&quot;, &quot;Present On Admission is Yes or Exempt&quot; )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-hypertension"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Hypertension&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Hypertension&quot;, &quot;Present On Admission is Yes or Exempt&quot; )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-preterm-birth"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Preterm Birth&quot;:
  ( PCMaternal.&quot;Delivery Encounter With Age Range&quot; DeliveryEncounter
      let CGA: DeliveryEncounter.calculatedGestationalAge ( ),
      EGA: DeliveryEncounter.lastEstimatedGestationalAge ( )
      where CGA in Interval[20, 36]
        or ( CGA is null
            and ( EGA &gt;= 20 weeks
                and EGA &lt;= 36 weeks
            )
        )
  )
    union ( PCMaternal.&quot;Delivery Encounter With Age Range&quot; DeliveryEncounter
        let CGA: DeliveryEncounter.calculatedGestationalAge ( ),
        EGA: DeliveryEncounter.lastEstimatedGestationalAge ( )
        where CGA is null
          and EGA is null
          and exists ( ( DeliveryEncounter.claimDiagnosis ( ) ) CDiagnosis
              where CDiagnosis.onAdmission ~ &quot;POA-Y&quot;
          )
    )</code></pre>
  </td>

</tr>



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-sde-payer"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <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">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-placental-abruption"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Placental Abruption&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Placental Abruption&quot;, &quot;Present On Admission is Yes or Exempt&quot; )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-morbid-obesity"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Morbid Obesity&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Morbid or Severe Obesity&quot;, &quot;Present On Admission is Yes or Exempt&quot; )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-preexisting-diabetes"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Preexisting Diabetes&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Preexisting Diabetes&quot;, &quot;Present On Admission is Yes or Exempt&quot; )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-bariatric-surgery"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Bariatric Surgery&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Bariatric Surgery&quot;, &quot;Present On Admission is Yes or Exempt&quot; )</code></pre>
  </td>

</tr>



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-sde-race"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <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">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-placenta-previa"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Placenta Previa&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Placenta Previa&quot;, &quot;Present On Admission is Yes or Exempt&quot; )</code></pre>
  </td>

</tr>



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-sde-sex"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <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">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-bleeding-disorder"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Bleeding Disorder&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Bleeding Disorder&quot;, &quot;Present On Admission is Yes or Exempt&quot; )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-first-white-blood-cell-count-lab-test"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">//First resulted value 24 hours prior to start of encounter and before time of delivery
 //Report white blood cell count as 10*3/uL



define &quot;Risk Variable First White Blood Cell Count Lab Test&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    let FirstWBC: First([&quot;LaboratoryResultObservation&quot;: &quot;White Blood Cells Count Lab Test&quot;] WBC
        where WBC.issued during Interval[start of TwentyWeeksPlusEncounter.hospitalizationWithEDOBTriageObservation() - 1440 minutes, TwentyWeeksPlusEncounter.lastTimeOfDelivery()]
          and WBC.status in { 'final', 'amended', 'corrected' }
          and WBC.value is not null
        sort by issued.earliest()
    )
    return {
      EncounterId: TwentyWeeksPlusEncounter.id,
      FirstWBCResult: FirstWBC.value as Quantity,
      Timing: FirstWBC.issued
    }</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-first-hematocrit-lab-test"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">//First resulted value 24 hours prior to start of encounter and before time of delivery
 //Report hematocrit as %



define &quot;Risk Variable First Hematocrit Lab Test&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    let FirstHematocrit: First([&quot;LaboratoryResultObservation&quot;: &quot;Hematocrit Lab Test&quot;] Hematocrit
        where Hematocrit.issued during Interval[start of TwentyWeeksPlusEncounter.hospitalizationWithEDOBTriageObservation() - 1440 minutes, TwentyWeeksPlusEncounter.lastTimeOfDelivery()]
          and Hematocrit.status in { 'final', 'amended', 'corrected' }
          and Hematocrit.value is not null
        sort by issued.earliest()
    )
    return {
      EncounterId: TwentyWeeksPlusEncounter.id,
      FirstHematocritResult: FirstHematocrit.value as Quantity,
      Timing: FirstHematocrit.issued
    }</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-anemia"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Anemia&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Anemia&quot;, &quot;Present On Admission is Yes or Exempt&quot; )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-severe-preeclampsia"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Severe Preeclampsia&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Severe Preeclampsia&quot;, &quot;Present On Admission is Yes or Exempt&quot; )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-cardiac-disease"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Cardiac Disease&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Cardiac Disease&quot;, &quot;Present On Admission is Yes or Exempt&quot; )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-long-term-anticoagulant-use"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Long Term Anticoagulant Use&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Long Term Anticoagulant Use&quot;, &quot;Present On Admission is Yes or Exempt&quot; )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-systolic-blood-pressure"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">//First resulted value 24 hours prior to start of encounter and before time of delivery
//Report systolic blood pressure as mm[Hg]
//Systolic blood pressure value cannot be null per QICore profile requirement.




define &quot;Risk Variable Systolic Blood Pressure&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    let FirstSystolicBP: First([&quot;USCoreBloodPressureProfile&quot;] BP
        where BP.effective.earliest() during Interval[start of TwentyWeeksPlusEncounter.hospitalizationWithEDOBTriageObservation() - 1440 minutes, TwentyWeeksPlusEncounter.lastTimeOfDelivery()]
          and BP.status in { 'final', 'amended', 'corrected' }
          and BP.component.value is not null
        sort by effective.earliest()
    )
    return {
      EncounterId: TwentyWeeksPlusEncounter.id,
      FirstSBPResult: singleton from ( FirstSystolicBP.component C
          where C.code ~ &quot;Systolic blood pressure&quot;
          return C.value as Quantity
      ),
      Timing: FirstSystolicBP.effective.earliest ( )
    }</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-sde-delivery-encounters-with-severe-obstetric-complication-diagnosis"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;SDE Delivery Encounters With Severe Obstetric Complication Diagnosis&quot;:
  ( &quot;Delivery Encounters With Severe Obstetric Complications&quot;
    except &quot;SOC With Hysterectomy Or Blood Transfusion With Placenta Increta Or Placenta Percreta Without Additional SOC&quot; ) Encounter
    where Encounter.isDiagnosisPresentOnAdmission ( &quot;Severe Maternal Morbidity Diagnoses&quot;, &quot;Present on Admission is No or Unable To Determine&quot; )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-sde-soc-diagnoses-detail"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;SDE SOC Diagnoses Detail&quot;:
  &quot;SDE Delivery Encounters With Severe Obstetric Complication Diagnosis&quot; Encounter
    let complication: Encounter.pOAIsNoOrUTD ( )
    return {
      id: Encounter.id,
      code: Encounter.type,
      complications: complication Complication
        where Complication in &quot;Severe Maternal Morbidity Diagnoses&quot;
          or Complication.getCondition ( ).code in &quot;Severe Maternal Morbidity Diagnoses&quot;
        return {
          code: Complication,
          SOCDxCategory: Complication.sOCDxCategory ( )
        }
    }</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-substance-abuse"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Substance Abuse&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Substance Abuse&quot;, &quot;Present On Admission is Yes or Exempt&quot; )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-renal-disease"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Renal Disease&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Renal Disease&quot;, &quot;Present On Admission is Yes or Exempt&quot; )</code></pre>
  </td>

</tr>



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-sde-variable-calculated-gestational-age"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">//The next definition establishes a variable of CGA (Calculated Gestational Age).  CGA is a supplemental data element to store the calculated gestational age result from the &quot;CalculatedGestationalAge&quot; function.  The data element enables the capturing and saving of the CGA for data analysis post data receipt. Hospitals do not need to submit any additional data to comply with this definition. 


define &quot;SDE Variable Calculated Gestational Age&quot;:
  PCMaternal.&quot;Variable Calculated Gestational Age&quot;</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-gastrointestinal-disease"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Gastrointestinal Disease&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Gastrointestinal Disease&quot;, &quot;Present On Admission is Yes or Exempt&quot; )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-pulmonary-hypertension"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Pulmonary Hypertension&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Pulmonary Hypertension&quot;, &quot;Present On Admission is Yes or Exempt&quot; )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-sde-delivery-encounters-with-severe-obstetric-complication-procedures"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;SDE Delivery Encounters With Severe Obstetric Complication Procedures&quot;:
  ( &quot;Delivery Encounters With Severe Obstetric Complications&quot;
    except &quot;SOC With Hysterectomy Or Blood Transfusion With Placenta Increta Or Placenta Percreta Without Additional SOC&quot; ) Encounter
    where exists ( [&quot;Procedure&quot;: &quot;Severe Maternal Morbidity Procedures&quot;]
      union [&quot;Procedure&quot;: &quot;Blood Transfusion&quot;] ) SMMProcedures
      where SMMProcedures.status = 'completed'
        and SMMProcedures.performed.toInterval ( ) starts during Encounter.hospitalizationWithEDOBTriageObservation ( )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-other-preeclampsia"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Other Preeclampsia&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Mild or Moderate Preeclampsia&quot;, &quot;Present On Admission is Yes or Exempt&quot; )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-thyrotoxicosis"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Thyrotoxicosis&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Thyrotoxicosis&quot;, &quot;Present On Admission is Yes or Exempt&quot; )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-initial-population"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Initial Population&quot;:
  PCMaternal.&quot;Delivery Encounter With Age Range&quot;</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-neuromuscular-disease"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Neuromuscular Disease&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Neuromuscular Disease&quot;, &quot;Present On Admission is Yes or Exempt&quot; )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-economic-housing-instability"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Economic Housing Instability&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Economic Housing Instability&quot;, &quot;Present On Admission is Yes or Exempt&quot; )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-hiv"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable HIV&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;HIV in Pregnancy Childbirth and Puerperium&quot;, &quot;Present On Admission is Yes or Exempt&quot; )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-maternal-age"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Maternal Age&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    let MaternalAge: AgeInYearsAt(date from start of TwentyWeeksPlusEncounter.period)
    return { TwentyWeeksPlusEncounter, MaternalAge }</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-heart-rate"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">//First resulted value 24 hours prior to start of encounter and before time of delivery
 //Report heart rate as beats/min
 //Heart rate value cannot be null per QICore profile requirement.




define &quot;Risk Variable Heart Rate&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    let FirstHeartRate: First([USCoreHeartRateProfile] HeartRate
        where HeartRate.effective.earliest() during Interval[start of TwentyWeeksPlusEncounter.hospitalizationWithEDOBTriageObservation() - 1440 minutes, TwentyWeeksPlusEncounter.lastTimeOfDelivery()]
          and HeartRate.status in { 'final', 'amended', 'corrected' }
        sort by effective.earliest()
    )
    return {
      EncounterId: TwentyWeeksPlusEncounter.id,
      FirstHRResult: FirstHeartRate.value as Quantity,
      Timing: FirstHeartRate.effective.earliest ( )
    }</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-mental-health-disorder"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Mental Health Disorder&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Mental Health Disorder&quot;, &quot;Present On Admission is Yes or Exempt&quot; )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-obstetrical-vte"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Obstetrical VTE&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Venous Thromboembolism in Pregnancy&quot;, &quot;Present On Admission is Yes or Exempt&quot; )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-numerator-1"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Numerator 1&quot;:
  &quot;Delivery Encounters With Severe Obstetric Complications&quot;</code></pre>
  </td>

</tr>



        


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

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Numerator 2&quot;:
  &quot;Delivery Encounters With Severe Obstetric Complications Excluding Blood Transfusions Only&quot;</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-autoimmune-disease"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Autoimmune Disease&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Autoimmune Disease&quot;, &quot;Present On Admission is Yes or Exempt&quot; )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-previous-cesarean"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Previous Cesarean&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Previous Cesarean&quot;, &quot;Present On Admission is Yes or Exempt&quot; )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-gestational-diabetes"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Gestational Diabetes&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Gestational Diabetes&quot;, &quot;Present On Admission is Yes or Exempt&quot; )</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-sde-soc-procedure-detail"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;SDE SOC Procedure Detail&quot;:
  &quot;SDE Delivery Encounters With Severe Obstetric Complication Procedures&quot; Encounter
    let procedure: Encounter.sOCProcedures ( )
    return {
      id: Encounter.id,
      code: Encounter.type,
      procedures: procedure P
        return {
          code: P,
          SOCProcedureCategory: P.sOCProcedureCategory ( )
        }
    }</code></pre>
  </td>

</tr>



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-risk-variable-multiple-pregnancy"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Risk Variable Multiple Pregnancy&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Multiple Pregnancy&quot;, &quot;Present On Admission is Yes or Exempt&quot; )</code></pre>
  </td>

</tr>



        


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

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Denominator&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot;</code></pre>
  </td>

</tr>



        



        


<tr>
  <th scope="row" rowspan="2" class="row-header">
    
      
      <a name="cms1028fhirpcsevereobcomps-sde-ethnicity"> </a>
    
    Logic Definition
  </th>

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

</tr>
<tr>

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

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function pOAIsNoOrUTD(TheEncounter Encounter):
  ( TheEncounter.claimDiagnosis ( ) ) CDiagnoses
    where CDiagnoses.onAdmission in &quot;Present on Admission is No or Unable To Determine&quot;
    return CDiagnoses.diagnosis</code></pre>
  </td>

</tr>



        


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

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function sOCDxCategory(Dx Concept):
  case
    when Dx in &quot;Acute Heart Failure&quot; then 'Acute Heart Failure'
    when Dx in &quot;Acute Myocardial Infarction&quot; then 'Acute Myocardial Infarction'
    when Dx in &quot;Acute Renal Failure&quot; then 'Acute Renal Failure'
    when Dx in &quot;Acute Respiratory Distress Syndrome&quot; then 'Acute Respiratory Distress Syndrome'
    when Dx in &quot;Air and Thrombotic Embolism&quot; then 'Air and Thrombotic Embolism'
    when Dx in &quot;Amniotic Fluid Embolism&quot; then 'Amniotic Fluid Embolism'
    when Dx in &quot;Aortic Aneurysm&quot; then 'Aortic Aneurysm'
    when Dx in &quot;Cardiac Arrest Ventricular Fibrillation&quot; then 'Cardiac Arrest Ventricular Fibrillation'
    when Dx in &quot;Disseminated Intravascular Coagulation&quot; then 'Disseminated Intravascular Coagulation'
    when Dx in &quot;Eclampsia&quot; then 'Eclampsia'
    when Dx in &quot;Heart Failure Cardiac Arrest Related to Procedure or Surgery&quot; then 'Heart Failure Cardiac Arrest Related to Procedure or Surgery'
    when Dx in &quot;Puerperal Cerebrovascular Disorder&quot; then 'Puerperal Cerebrovascular Disorder'
    when Dx in &quot;Pulmonary Edema&quot; then 'Pulmonary Edema'
    when Dx in &quot;Sepsis&quot; then 'Sepsis'
    when Dx in &quot;Severe Anesthesia Complications&quot; then 'Severe Anesthesia Complications'
    when Dx in &quot;Shock&quot; then 'Shock'
    when Dx in &quot;Sickle Cell Disease with Crisis&quot; then 'Sickle Cell Disease with Crisis' 
    else null end</code></pre>
  </td>

</tr>



        


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

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function sOCProcedures(TheEncounter Encounter):
  ( [&quot;Procedure&quot;: &quot;Severe Maternal Morbidity Procedures&quot;]
    union [&quot;Procedure&quot;: &quot;Blood Transfusion&quot;] ) SMMProcedures
    where SMMProcedures.status = 'completed'
      and SMMProcedures.performed.toInterval ( ) starts during TheEncounter.hospitalizationWithEDOBTriageObservation ( )</code></pre>
  </td>

</tr>



        


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

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

</tr>
<tr>

  <td>
    <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function sOCProcedureCategory(TheProcedure Procedure):
  case
    when TheProcedure.code in &quot;Blood Transfusion&quot; then 'Blood Transfusion'
    when TheProcedure.code in &quot;Conversion of Cardiac Rhythm&quot; then 'Conversion of cardiac rhythm'
    when TheProcedure.code in &quot;Hysterectomy&quot; then 'Hysterectomy'
    when TheProcedure.code in &quot;Tracheostomy&quot; then 'Tracheostomy'
    when TheProcedure.code in &quot;Ventilation&quot; then 'Ventilation' 
    else null end</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 LOINC
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://loinc.org
    <br/>
    <em>Canonical URL</em>: <tt>http://loinc.org</tt>
    
  </td>
</tr>
 


<tr>
  
  
  

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


  
  <td class="content-container">
    
    <em>Description</em>: Code system Present On Admission Indicators
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: https://www.cms.gov/Medicare/Medicare-Fee-for-Service-Payment/HospitalAcqCond/Coding
    <br/>
    <em>Canonical URL</em>: <tt>https://www.cms.gov/Medicare/Medicare-Fee-for-Service-Payment/HospitalAcqCond/Coding</tt>
    
  </td>
</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>: http://snomed.info/sct
    <br/>
    <em>Canonical URL</em>: <tt>http://snomed.info/sct</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Encounter Inpatient
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307
    <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 Delivery Procedures
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.59
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.59</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>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143
    <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 ED Visit and OB Triage
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.369
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.369</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Estimated Gestational Age at Delivery
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.26
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.26</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set 20 to 42 Plus Weeks Gestation
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.67
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.67</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Acute or Persistent Asthma
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.271
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.271</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 is Yes or Exempt
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.63
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.63</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Severe Maternal Morbidity Diagnoses
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.255
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.255</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 is No or Unable To Determine
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.370
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.370</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Severe Maternal Morbidity Procedures
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.256
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.256</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Patient Expired
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.309
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.309</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Blood Transfusion
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.213
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.213</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Placenta Increta or Percreta
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.388
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.388</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Hysterectomy
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.358
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.358</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Conversion of Cardiac Rhythm
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.357
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.357</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Tracheostomy
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.359
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.359</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Ventilation
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.360
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.360</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Placenta Accreta
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.302
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.302</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Hypertension
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.332
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.332</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>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591
    <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 Placental Abruption
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.305
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.305</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Morbid or Severe Obesity
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.290
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.290</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Preexisting Diabetes
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.275
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.275</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Bariatric Surgery
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.317
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.317</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Placenta Previa
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.78
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.78</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Bleeding Disorder
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.287
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.287</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set White Blood Cells Count Lab Test
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.129
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.129</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Hematocrit Lab Test
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.114
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.114</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Anemia
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.323
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.323</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Severe Preeclampsia
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.327
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.327</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Cardiac Disease
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.341
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.341</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Long Term Anticoagulant Use
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.366
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.366</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Acute Heart Failure
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.233
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.233</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Acute Myocardial Infarction
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.623
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.623</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Acute Renal Failure
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.53
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.53</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Acute Respiratory Distress Syndrome
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.214
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.214</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Air and Thrombotic Embolism
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.243
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.243</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Amniotic Fluid Embolism
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.217
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.217</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Aortic Aneurysm
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.219
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.219</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Cardiac Arrest Ventricular Fibrillation
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.221
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.221</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Disseminated Intravascular Coagulation
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.223
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.223</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Eclampsia
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.225
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.225</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Heart Failure Cardiac Arrest Related to Procedure or Surgery
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.227
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.227</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Puerperal Cerebrovascular Disorder
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.229
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.229</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Pulmonary Edema
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.231
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.231</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Sepsis
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.237
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.237</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Severe Anesthesia Complications
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.235
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.235</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Shock
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.239
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.239</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Sickle Cell Disease with Crisis
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.241
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.241</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Substance Abuse
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.320
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.320</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Renal Disease
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.335
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.335</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Gastrointestinal Disease
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.338
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.338</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Pulmonary Hypertension
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.281
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.281</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Mild or Moderate Preeclampsia
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.329
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.329</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Thyrotoxicosis
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.296
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.296</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Neuromuscular Disease
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.308
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.308</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Economic Housing Instability
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.292
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.292</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set HIV in Pregnancy Childbirth and Puerperium
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.272
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.272</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Mental Health Disorder
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.314
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.314</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Venous Thromboembolism in Pregnancy
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.363
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.363</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Autoimmune Disease
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.311
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.311</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Previous Cesarean
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.278
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.278</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Gestational Diabetes
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.269
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.269</tt>
    
  </td>
</tr>
 


<tr>
  
  

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


  
  
  <td class="content-container">
    
    <em>Description</em>: Value set Multiple Pregnancy
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.284
    <br/>
    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.284</tt>
    
  </td>
</tr>
 


  
  <tr>
    <th scope="row" class="row-header">Direct Reference Code</th>
    <td class="content-container">
      
        <em>Display</em>: Date and time of obstetric delivery
        <br/>
      
      <em>Code</em>: 93857-1
      <br/>
      <em>System</em>: <tt>http://loinc.org</tt>
    </td>
  </tr>

  <tr>
    <th scope="row" class="row-header">Direct Reference Code</th>
    <td class="content-container">
      
        <em>Display</em>: Delivery date Estimated
        <br/>
      
      <em>Code</em>: 11778-8
      <br/>
      <em>System</em>: <tt>http://loinc.org</tt>
    </td>
  </tr>

  <tr>
    <th scope="row" class="row-header">Direct Reference Code</th>
    <td class="content-container">
      
      <em>Code</em>: Y
      <br/>
      <em>System</em>: <tt>https://www.cms.gov/Medicare/Medicare-Fee-for-Service-Payment/HospitalAcqCond/Coding</tt>
    </td>
  </tr>

  <tr>
    <th scope="row" class="row-header">Direct Reference Code</th>
    <td class="content-container">
      
        <em>Display</em>: Male (finding)
        <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 (finding)
        <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>: 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>: QICore model information
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: http://hl7.org/fhir/Library/QICore-ModelInfo
    <br/>
    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/Library/QICore-ModelInfo</tt>
    
  </td>
</tr>
 


<tr>
  

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


  <td class="content-container">
    
    <em>Description</em>: Library PCMaternal
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: https://madie.cms.gov/Library/PCMaternal|5.25.000
    <br/>
    <em>Canonical URL</em>: <tt>https://madie.cms.gov/Library/PCMaternal|5.25.000</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>: https://madie.cms.gov/Library/CQMCommon|4.1.000
    <br/>
    <em>Canonical URL</em>: <tt>https://madie.cms.gov/Library/CQMCommon|4.1.000</tt>
    
  </td>
</tr>
 


<tr>
  

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


  <td class="content-container">
    
    <em>Description</em>: Library FHIRHelpers
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: https://madie.cms.gov/Library/FHIRHelpers|4.4.000
    <br/>
    <em>Canonical URL</em>: <tt>https://madie.cms.gov/Library/FHIRHelpers|4.4.000</tt>
    
  </td>
</tr>
 


<tr>
  

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


  <td class="content-container">
    
    <em>Description</em>: Library QICoreCommon
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: https://madie.cms.gov/Library/QICoreCommon|4.0.000
    <br/>
    <em>Canonical URL</em>: <tt>https://madie.cms.gov/Library/QICoreCommon|4.0.000</tt>
    
  </td>
</tr>
 


<tr>
  

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


  <td class="content-container">
    
    <em>Description</em>: Library SDE
    
    <br/>
    
    
    
    
    
    
    <em>Resource</em>: https://madie.cms.gov/Library/SupplementalDataElements|5.1.000
    <br/>
    <em>Canonical URL</em>: <tt>https://madie.cms.gov/Library/SupplementalDataElements|5.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>: Encounter
    <br/>
  
    <em>Profile(s)</em>: 
  
    http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter
    <br/>        
  
   
   
    <em>Must Support Elements</em>: type, period, status, status.value, reasonCode, onAdmission, diagnosis, diagnosis.code, hospitalization, hospitalization.dischargeDisposition, id, id.value
    <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> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143
    <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>: 
  
    http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter
    <br/>        
  
   
   
    <em>Must Support Elements</em>: type, period, status, status.value, reasonCode, onAdmission, diagnosis, diagnosis.code, hospitalization, hospitalization.dischargeDisposition, id, id.value
    <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> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.369
    <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>: 
  
    http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter
    <br/>        
  
   
   
    <em>Must Support Elements</em>: type, status, status.value, period, reasonCode, onAdmission, diagnosis, diagnosis.code, hospitalization, hospitalization.dischargeDisposition, id, id.value
    <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> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307
    <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>: 
  
    http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient
    <br/>        
  
   
   
    <em>Must Support Elements</em>: birthDate, birthDate.value, url, extension
    <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>: 
  
    http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure
    <br/>        
  
   
   
    <em>Must Support Elements</em>: code, status, status.value, 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> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.59
    <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>: 
  
    http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure
    <br/>        
  
   
   
    <em>Must Support Elements</em>: code, status, status.value, 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> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.358
    <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>: 
  
    http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure
    <br/>        
  
   
   
    <em>Must Support Elements</em>: code, status, status.value, 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> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.357
    <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>: 
  
    http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure
    <br/>        
  
   
   
    <em>Must Support Elements</em>: code, status, status.value, 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> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.359
    <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>: 
  
    http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure
    <br/>        
  
   
   
    <em>Must Support Elements</em>: code, status, status.value, 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> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.360
    <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>: 
  
    http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure
    <br/>        
  
   
   
    <em>Must Support Elements</em>: code, status, status.value, 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> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.256
    <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>: 
  
    http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure
    <br/>        
  
   
   
    <em>Must Support Elements</em>: code, status, status.value, 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> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.213
    <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>: 
  
    http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure
    <br/>        
  
   
   
    <em>Must Support Elements</em>: code, status, status.value, performed
    <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>: 
  
    http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-simple-observation
    <br/>        
  
   
   
    <em>Must Support Elements</em>: code, value, status, status.value, effective
    <br/>
   
  
    <em>Code Filter(s)</em>: 
    <br/>
  
  
    <span class="tab-one"><em>Path</em>: code</span>
    <br/>
  
  
  
  
    <span class="tab-one"><em>Code(s)</em>: 
    
      
      http://loinc.org#93857-1: 'Date and time of obstetric delivery'
      
    
    </span>
    <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>: 
  
    http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-simple-observation
    <br/>        
  
   
   
    <em>Must Support Elements</em>: code, value, status, status.value, effective
    <br/>
   
  
    <em>Code Filter(s)</em>: 
    <br/>
  
  
    <span class="tab-one"><em>Path</em>: code</span>
    <br/>
  
  
  
  
    <span class="tab-one"><em>Code(s)</em>: 
    
      
      http://loinc.org#11778-8: 'Delivery date Estimated'
      
    
    </span>
    <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>: 
  
    http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-simple-observation
    <br/>        
  
   
   
    <em>Must Support Elements</em>: code, effective, value, status, 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> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.26
    <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>: 
  
    http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-simple-observation
    <br/>        
  
   
   
    <em>Must Support Elements</em>: value
    <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>: 
  
    http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-encounter-diagnosis
    <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>: 
  
    http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-problems-health-concerns
    <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>: 
  
    http://hl7.org/fhir/StructureDefinition/Resource
    <br/>        
  
   
   
    <em>Must Support Elements</em>: id, id.value
    <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>: 
  
    http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-claim
    <br/>        
  
   
   
    <em>Must Support Elements</em>: status, status.value, use, use.value, item
    <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>: 
  
    http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage
    <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> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591
    <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>: 
  
    http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation-lab
    <br/>        
  
   
   
    <em>Must Support Elements</em>: code, issued, issued.value, status, status.value, 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> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.129
    <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>: 
  
    http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation-lab
    <br/>        
  
   
   
    <em>Must Support Elements</em>: code, issued, issued.value, status, status.value, 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> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.114
    <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>: 
  
    http://hl7.org/fhir/us/core/StructureDefinition/us-core-blood-pressure
    <br/>        
  
   
   
    <em>Must Support Elements</em>: effective, status, status.value, 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>: 
  
    http://hl7.org/fhir/us/core/StructureDefinition/us-core-heart-rate
    <br/>        
  
   
   
    <em>Must Support Elements</em>: effective, status, status.value, value
    <br/>
   
   
  </td>
</tr>

  
  

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

    </tbody>
  </table>
</div>
  </text>
  <contained>
    <Library>
      <id value="effective-data-requirements"/>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
        <valueCoding>
          <system value="http://loinc.org"/>
          <code value="93857-1"/>
          <display value="Date and time of obstetric delivery"/>
        </valueCoding>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
        <valueCoding>
          <system value="http://loinc.org"/>
          <code value="11778-8"/>
          <display value="Delivery date Estimated"/>
        </valueCoding>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
        <valueCoding>
          <system
                  value="https://www.cms.gov/Medicare/Medicare-Fee-for-Service-Payment/HospitalAcqCond/Coding"/>
          <code value="Y"/>
        </valueCoding>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
        <valueCoding>
          <system value="http://snomed.info/sct"/>
          <code value="248153007"/>
          <display value="Male (finding)"/>
        </valueCoding>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
        <valueCoding>
          <system value="http://snomed.info/sct"/>
          <code value="248152002"/>
          <display value="Female (finding)"/>
        </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="CQMCommon"/>
        </extension>
        <extension url="name">
          <valueString value="Inpatient Encounter"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Inpatient Encounter&quot;:
  [Encounter: &quot;Encounter Inpatient&quot;] EncounterInpatient
    where EncounterInpatient.status = 'finished'
      and EncounterInpatient.period ends during day of &quot;Measurement Period&quot;"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="0"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="PCMaternal"/>
        </extension>
        <extension url="name">
          <valueString value="Encounter With Age Range"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Encounter With Age Range&quot;:
 CQMCommon.&quot;Inpatient Encounter&quot; InpatientEncounter
                      where AgeInYearsAt(date from start of InpatientEncounter.period) in Interval[ 8, 65 )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="1"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="PCMaternal"/>
        </extension>
        <extension url="name">
          <valueString value="Delivery Encounter With Age Range"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Delivery Encounter With Age Range&quot;:
  &quot;Encounter With Age Range&quot; EncounterWithAge
                with [&quot;Procedure&quot;: &quot;Delivery Procedures&quot;] DeliveryProcedure
                such that DeliveryProcedure.status = 'completed'
                and DeliveryProcedure.performed.toInterval  ( ) starts during EncounterWithAge.hospitalizationWithEDOBTriageObservation ()"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="2"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString
                       value="Delivery Encounters With Calculated Gestational Age Greater Than Or Equal To 20 Weeks"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Delivery Encounters With Calculated Gestational Age Greater Than Or Equal To 20 Weeks&quot;:
  PCMaternal.&quot;Delivery Encounter With Age Range&quot; DeliveryEncounter
    where DeliveryEncounter.calculatedGestationalAge ( ) &gt;= 20"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="3"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString
                       value="Delivery Encounters With Estimated Gestational Age Assessment Greater Than Or Equal To 20 Weeks"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Delivery Encounters With Estimated Gestational Age Assessment Greater Than Or Equal To 20 Weeks&quot;:
  PCMaternal.&quot;Delivery Encounter With Age Range&quot; DeliveryEncounter
    where DeliveryEncounter.calculatedGestationalAge ( ) is null
      and ( DeliveryEncounter.lastEstimatedGestationalAge ( ) &gt;= 20 weeks )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="4"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString
                       value="Delivery Encounters With Gestational Age Greater Than Or Equal To 20 Weeks Based On Coding"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Delivery Encounters With Gestational Age Greater Than Or Equal To 20 Weeks Based On Coding&quot;:
  PCMaternal.&quot;Delivery Encounter With Age Range&quot; DeliveryEncounter
    where DeliveryEncounter.calculatedGestationalAge ( ) is null
      and DeliveryEncounter.lastEstimatedGestationalAge ( ) is null
      and ( DeliveryEncounter.reasonCode in &quot;20 to 42 Plus Weeks Gestation&quot;
          or DeliveryEncounter.encounterDiagnosis ( ).code in &quot;20 to 42 Plus Weeks Gestation&quot;
      )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="5"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString
                       value="Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot;:
  &quot;Delivery Encounters With Calculated Gestational Age Greater Than Or Equal To 20 Weeks&quot;
    union &quot;Delivery Encounters With Estimated Gestational Age Assessment Greater Than Or Equal To 20 Weeks&quot;
    union &quot;Delivery Encounters With Gestational Age Greater Than Or Equal To 20 Weeks Based On Coding&quot;"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="6"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Asthma"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Risk Variable Asthma&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Acute or Persistent Asthma&quot;, &quot;Present On Admission is Yes or Exempt&quot; )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="7"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString
                       value="Delivery Encounters With Severe Obstetric Complications Diagnosis Or Procedure Excluding Blood Transfusion"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Delivery Encounters With Severe Obstetric Complications Diagnosis Or Procedure Excluding Blood Transfusion&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Severe Maternal Morbidity Diagnoses&quot;, &quot;Present on Admission is No or Unable To Determine&quot; )
      or ( exists ( [&quot;Procedure&quot;: &quot;Severe Maternal Morbidity Procedures&quot;] SMMProcedures
            where SMMProcedures.status = 'completed'
              and SMMProcedures.performed.toInterval ( ) starts during TwentyWeeksPlusEncounter.hospitalizationWithEDOBTriageObservation ( )
        )
      )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="8"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Delivery Encounters With Expiration"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Delivery Encounters With Expiration&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.hospitalization.dischargeDisposition in &quot;Patient Expired&quot;"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="9"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Delivery Encounters With Blood Transfusion"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Delivery Encounters With Blood Transfusion&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    with [&quot;Procedure&quot;: &quot;Blood Transfusion&quot;] BloodTransfusion
      such that BloodTransfusion.status = 'completed'
        and BloodTransfusion.performed.toInterval ( ) starts during TwentyWeeksPlusEncounter.hospitalizationWithEDOBTriageObservation ( )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="10"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString
                       value="Delivery Encounters With Severe Obstetric Complications"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Delivery Encounters With Severe Obstetric Complications&quot;:
  &quot;Delivery Encounters With Severe Obstetric Complications Diagnosis Or Procedure Excluding Blood Transfusion&quot;
    union &quot;Delivery Encounters With Expiration&quot;
    union &quot;Delivery Encounters With Blood Transfusion&quot;"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="11"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Delivery Encounters With Hysterectomy"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Delivery Encounters With Hysterectomy&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    with [&quot;Procedure&quot;: &quot;Hysterectomy&quot;] Hysterectomy
      such that Hysterectomy.status = 'completed'
        and Hysterectomy.performed.toInterval ( ) starts during TwentyWeeksPlusEncounter.hospitalizationWithEDOBTriageObservation ( )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="12"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString
                       value="Cardiac Conversion, Tracheostomy Or Ventilation Procedures"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Cardiac Conversion, Tracheostomy Or Ventilation Procedures&quot;:
  [&quot;Procedure&quot;: &quot;Conversion of Cardiac Rhythm&quot;]
    union [&quot;Procedure&quot;: &quot;Tracheostomy&quot;]
    union [&quot;Procedure&quot;: &quot;Ventilation&quot;]"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="13"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString
                       value="Delivery Encounters With Cardiac Conversion, Tracheostomy Or Ventilation Procedures"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Delivery Encounters With Cardiac Conversion, Tracheostomy Or Ventilation Procedures&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    with &quot;Cardiac Conversion, Tracheostomy Or Ventilation Procedures&quot; ConvTrachVentProcedures
      such that ConvTrachVentProcedures.status = 'completed'
        and ConvTrachVentProcedures.performed.toInterval ( ) starts during TwentyWeeksPlusEncounter.hospitalizationWithEDOBTriageObservation ( )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="14"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString
                       value="SOC With Hysterectomy Or Blood Transfusion With Placenta Increta Or Placenta Percreta Without Additional SOC"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;SOC With Hysterectomy Or Blood Transfusion With Placenta Increta Or Placenta Percreta Without Additional SOC&quot;:
  ( &quot;Delivery Encounters With Severe Obstetric Complications&quot; SOCEncounter
      where ( SOCEncounter.reasonCode in &quot;Placenta Increta or Percreta&quot;
          or SOCEncounter.encounterDiagnosis ( ).code in &quot;Placenta Increta or Percreta&quot;
      )
        and ( exists &quot;Delivery Encounters With Blood Transfusion&quot;
            or exists &quot;Delivery Encounters With Hysterectomy&quot;
        )
  )
	//The following logic keeps encounter in the numerator if there is an additional SOC besides Blood Transfusion or Hysterectomy
    
    except ( ( &quot;Delivery Encounters With Severe Obstetric Complications&quot; SOCEncounter
          where SOCEncounter.isDiagnosisPresentOnAdmission ( &quot;Severe Maternal Morbidity Diagnoses&quot;, &quot;Present on Admission is No or Unable To Determine&quot; )
      )
        union &quot;Delivery Encounters With Cardiac Conversion, Tracheostomy Or Ventilation Procedures&quot;
        union &quot;Delivery Encounters With Expiration&quot;
    )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="15"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Numerator Exclusions 1"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Numerator Exclusions 1&quot;:
  &quot;SOC With Hysterectomy Or Blood Transfusion With Placenta Increta Or Placenta Percreta Without Additional SOC&quot;"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="16"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString
                       value="Delivery Encounters With Severe Obstetric Complications Excluding Blood Transfusions"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Delivery Encounters With Severe Obstetric Complications Excluding Blood Transfusions&quot;:
  &quot;Delivery Encounters With Severe Obstetric Complications Diagnosis Or Procedure Excluding Blood Transfusion&quot;
    union &quot;Delivery Encounters With Expiration&quot;"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="17"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString
                       value="Delivery Encounters With Severe Obstetric Complications Excluding Blood Transfusions Only"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Delivery Encounters With Severe Obstetric Complications Excluding Blood Transfusions Only&quot;:
  &quot;Delivery Encounters With Severe Obstetric Complications&quot;
    intersect &quot;Delivery Encounters With Severe Obstetric Complications Excluding Blood Transfusions&quot;"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="18"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString
                       value="SOC Excluding Blood Transfusions Only With Hysterectomy Or Blood Transfusion With Placenta Increta Or Placenta Percreta Without Additional SOC"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;SOC Excluding Blood Transfusions Only With Hysterectomy Or Blood Transfusion With Placenta Increta Or Placenta Percreta Without Additional SOC&quot;:
  ( &quot;Delivery Encounters With Severe Obstetric Complications Excluding Blood Transfusions Only&quot; SOCExcludingTransfusion
      where ( SOCExcludingTransfusion.reasonCode in &quot;Placenta Increta or Percreta&quot;
          or SOCExcludingTransfusion.encounterDiagnosis ( ).code in &quot;Placenta Increta or Percreta&quot;
      )
        and ( exists &quot;Delivery Encounters With Blood Transfusion&quot;
            or exists &quot;Delivery Encounters With Hysterectomy&quot;
        )
  )
	
	//The following logic keeps encounter in the numerator if there is an additional SOC besides Blood Transfusion or Hysterectomy
    
    except ( ( &quot;Delivery Encounters With Severe Obstetric Complications Excluding Blood Transfusions Only&quot; SOCExcludingTransfusion
          where SOCExcludingTransfusion.isDiagnosisPresentOnAdmission ( &quot;Severe Maternal Morbidity Diagnoses&quot;, &quot;Present on Admission is No or Unable To Determine&quot; )
      )
        union &quot;Delivery Encounters With Cardiac Conversion, Tracheostomy Or Ventilation Procedures&quot;
        union &quot;Delivery Encounters With Expiration&quot;
    )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="19"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Numerator Exclusions 2"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Numerator Exclusions 2&quot;:
  &quot;SOC Excluding Blood Transfusions Only With Hysterectomy Or Blood Transfusion With Placenta Increta Or Placenta Percreta Without Additional SOC&quot;"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="20"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Placental Accreta Spectrum"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Risk Variable Placental Accreta Spectrum&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Placenta Accreta&quot;, &quot;Present On Admission is Yes or Exempt&quot; )
      or TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Placenta Increta or Percreta&quot;, &quot;Present On Admission is Yes or Exempt&quot; )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="21"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Hypertension"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Risk Variable Hypertension&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Hypertension&quot;, &quot;Present On Admission is Yes or Exempt&quot; )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="22"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Preterm Birth"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Risk Variable Preterm Birth&quot;:
  ( PCMaternal.&quot;Delivery Encounter With Age Range&quot; DeliveryEncounter
      let CGA: DeliveryEncounter.calculatedGestationalAge ( ),
      EGA: DeliveryEncounter.lastEstimatedGestationalAge ( )
      where CGA in Interval[20, 36]
        or ( CGA is null
            and ( EGA &gt;= 20 weeks
                and EGA &lt;= 36 weeks
            )
        )
  )
    union ( PCMaternal.&quot;Delivery Encounter With Age Range&quot; DeliveryEncounter
        let CGA: DeliveryEncounter.calculatedGestationalAge ( ),
        EGA: DeliveryEncounter.lastEstimatedGestationalAge ( )
        where CGA is null
          and EGA is null
          and exists ( ( DeliveryEncounter.claimDiagnosis ( ) ) CDiagnosis
              where CDiagnosis.onAdmission ~ &quot;POA-Y&quot;
          )
    )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="23"/>
        </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;:
  [Coverage: type in &quot;Payer Type&quot;] Payer
    return {
      code: Payer.type,
      period: Payer.period
    }"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="24"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="SDE Payer"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;SDE Payer&quot;:
  SDE.&quot;SDE Payer&quot;"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="25"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Placental Abruption"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Risk Variable Placental Abruption&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Placental Abruption&quot;, &quot;Present On Admission is Yes or Exempt&quot; )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="26"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Morbid Obesity"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Risk Variable Morbid Obesity&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Morbid or Severe Obesity&quot;, &quot;Present On Admission is Yes or Exempt&quot; )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="27"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Preexisting Diabetes"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Risk Variable Preexisting Diabetes&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Preexisting Diabetes&quot;, &quot;Present On Admission is Yes or Exempt&quot; )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="28"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Bariatric Surgery"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Risk Variable Bariatric Surgery&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Bariatric Surgery&quot;, &quot;Present On Admission is Yes or Exempt&quot; )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="29"/>
        </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;:
  Patient.race R
    return Tuple {
      codes: R.ombCategory union R.detailed,
      display: R.text
    }"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="30"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="SDE Race"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;SDE Race&quot;:
  SDE.&quot;SDE Race&quot;"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="31"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Placenta Previa"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Risk Variable Placenta Previa&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Placenta Previa&quot;, &quot;Present On Admission is Yes or Exempt&quot; )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="32"/>
        </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;:
  case
    when Patient.sex = '248153007' then &quot;Male (finding)&quot;
    when Patient.sex = '248152002' then &quot;Female (finding)&quot;
    else null
  end"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="33"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="SDE Sex"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;SDE Sex&quot;:
  SDE.&quot;SDE Sex&quot;"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="34"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Bleeding Disorder"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Risk Variable Bleeding Disorder&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Bleeding Disorder&quot;, &quot;Present On Admission is Yes or Exempt&quot; )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="35"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString
                       value="Risk Variable First White Blood Cell Count Lab Test"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="//First resulted value 24 hours prior to start of encounter and before time of delivery
 //Report white blood cell count as 10*3/uL



define &quot;Risk Variable First White Blood Cell Count Lab Test&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    let FirstWBC: First([&quot;LaboratoryResultObservation&quot;: &quot;White Blood Cells Count Lab Test&quot;] WBC
        where WBC.issued during Interval[start of TwentyWeeksPlusEncounter.hospitalizationWithEDOBTriageObservation() - 1440 minutes, TwentyWeeksPlusEncounter.lastTimeOfDelivery()]
          and WBC.status in { 'final', 'amended', 'corrected' }
          and WBC.value is not null
        sort by issued.earliest()
    )
    return {
      EncounterId: TwentyWeeksPlusEncounter.id,
      FirstWBCResult: FirstWBC.value as Quantity,
      Timing: FirstWBC.issued
    }"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="36"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable First Hematocrit Lab Test"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="//First resulted value 24 hours prior to start of encounter and before time of delivery
 //Report hematocrit as %



define &quot;Risk Variable First Hematocrit Lab Test&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    let FirstHematocrit: First([&quot;LaboratoryResultObservation&quot;: &quot;Hematocrit Lab Test&quot;] Hematocrit
        where Hematocrit.issued during Interval[start of TwentyWeeksPlusEncounter.hospitalizationWithEDOBTriageObservation() - 1440 minutes, TwentyWeeksPlusEncounter.lastTimeOfDelivery()]
          and Hematocrit.status in { 'final', 'amended', 'corrected' }
          and Hematocrit.value is not null
        sort by issued.earliest()
    )
    return {
      EncounterId: TwentyWeeksPlusEncounter.id,
      FirstHematocritResult: FirstHematocrit.value as Quantity,
      Timing: FirstHematocrit.issued
    }"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="37"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Anemia"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Risk Variable Anemia&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Anemia&quot;, &quot;Present On Admission is Yes or Exempt&quot; )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="38"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Severe Preeclampsia"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Risk Variable Severe Preeclampsia&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Severe Preeclampsia&quot;, &quot;Present On Admission is Yes or Exempt&quot; )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="39"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Cardiac Disease"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Risk Variable Cardiac Disease&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Cardiac Disease&quot;, &quot;Present On Admission is Yes or Exempt&quot; )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="40"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Long Term Anticoagulant Use"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Risk Variable Long Term Anticoagulant Use&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Long Term Anticoagulant Use&quot;, &quot;Present On Admission is Yes or Exempt&quot; )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="41"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Systolic Blood Pressure"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="//First resulted value 24 hours prior to start of encounter and before time of delivery
//Report systolic blood pressure as mm[Hg]
//Systolic blood pressure value cannot be null per QICore profile requirement.




define &quot;Risk Variable Systolic Blood Pressure&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    let FirstSystolicBP: First([&quot;USCoreBloodPressureProfile&quot;] BP
        where BP.effective.earliest() during Interval[start of TwentyWeeksPlusEncounter.hospitalizationWithEDOBTriageObservation() - 1440 minutes, TwentyWeeksPlusEncounter.lastTimeOfDelivery()]
          and BP.status in { 'final', 'amended', 'corrected' }
          and BP.component.value is not null
        sort by effective.earliest()
    )
    return {
      EncounterId: TwentyWeeksPlusEncounter.id,
      FirstSBPResult: singleton from ( FirstSystolicBP.component C
          where C.code ~ &quot;Systolic blood pressure&quot;
          return C.value as Quantity
      ),
      Timing: FirstSystolicBP.effective.earliest ( )
    }"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="42"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString
                       value="SDE Delivery Encounters With Severe Obstetric Complication Diagnosis"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;SDE Delivery Encounters With Severe Obstetric Complication Diagnosis&quot;:
  ( &quot;Delivery Encounters With Severe Obstetric Complications&quot;
    except &quot;SOC With Hysterectomy Or Blood Transfusion With Placenta Increta Or Placenta Percreta Without Additional SOC&quot; ) Encounter
    where Encounter.isDiagnosisPresentOnAdmission ( &quot;Severe Maternal Morbidity Diagnoses&quot;, &quot;Present on Admission is No or Unable To Determine&quot; )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="43"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="SDE SOC Diagnoses Detail"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;SDE SOC Diagnoses Detail&quot;:
  &quot;SDE Delivery Encounters With Severe Obstetric Complication Diagnosis&quot; Encounter
    let complication: Encounter.pOAIsNoOrUTD ( )
    return {
      id: Encounter.id,
      code: Encounter.type,
      complications: complication Complication
        where Complication in &quot;Severe Maternal Morbidity Diagnoses&quot;
          or Complication.getCondition ( ).code in &quot;Severe Maternal Morbidity Diagnoses&quot;
        return {
          code: Complication,
          SOCDxCategory: Complication.sOCDxCategory ( )
        }
    }"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="44"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Substance Abuse"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Risk Variable Substance Abuse&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Substance Abuse&quot;, &quot;Present On Admission is Yes or Exempt&quot; )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="45"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Renal Disease"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Risk Variable Renal Disease&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Renal Disease&quot;, &quot;Present On Admission is Yes or Exempt&quot; )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="46"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="PCMaternal"/>
        </extension>
        <extension url="name">
          <valueString value="Variable Calculated Gestational Age"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Variable Calculated Gestational Age&quot;:
 &quot;Delivery Encounter With Age Range&quot; DeliveryEncounter
    let CGA: DeliveryEncounter.calculatedGestationalAge()
    return {
      EncounterID: DeliveryEncounter.id,
      CalculatedCGA: CGA
    }"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="47"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="SDE Variable Calculated Gestational Age"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="//The next definition establishes a variable of CGA (Calculated Gestational Age).  CGA is a supplemental data element to store the calculated gestational age result from the &quot;CalculatedGestationalAge&quot; function.  The data element enables the capturing and saving of the CGA for data analysis post data receipt. Hospitals do not need to submit any additional data to comply with this definition. 


define &quot;SDE Variable Calculated Gestational Age&quot;:
  PCMaternal.&quot;Variable Calculated Gestational Age&quot;"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="48"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Gastrointestinal Disease"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Risk Variable Gastrointestinal Disease&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Gastrointestinal Disease&quot;, &quot;Present On Admission is Yes or Exempt&quot; )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="49"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Pulmonary Hypertension"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Risk Variable Pulmonary Hypertension&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Pulmonary Hypertension&quot;, &quot;Present On Admission is Yes or Exempt&quot; )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="50"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString
                       value="SDE Delivery Encounters With Severe Obstetric Complication Procedures"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;SDE Delivery Encounters With Severe Obstetric Complication Procedures&quot;:
  ( &quot;Delivery Encounters With Severe Obstetric Complications&quot;
    except &quot;SOC With Hysterectomy Or Blood Transfusion With Placenta Increta Or Placenta Percreta Without Additional SOC&quot; ) Encounter
    where exists ( [&quot;Procedure&quot;: &quot;Severe Maternal Morbidity Procedures&quot;]
      union [&quot;Procedure&quot;: &quot;Blood Transfusion&quot;] ) SMMProcedures
      where SMMProcedures.status = 'completed'
        and SMMProcedures.performed.toInterval ( ) starts during Encounter.hospitalizationWithEDOBTriageObservation ( )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="51"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Other Preeclampsia"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Risk Variable Other Preeclampsia&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Mild or Moderate Preeclampsia&quot;, &quot;Present On Admission is Yes or Exempt&quot; )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="52"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Thyrotoxicosis"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Risk Variable Thyrotoxicosis&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Thyrotoxicosis&quot;, &quot;Present On Admission is Yes or Exempt&quot; )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="53"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Initial Population"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Initial Population&quot;:
  PCMaternal.&quot;Delivery Encounter With Age Range&quot;"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="54"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Neuromuscular Disease"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Risk Variable Neuromuscular Disease&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Neuromuscular Disease&quot;, &quot;Present On Admission is Yes or Exempt&quot; )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="55"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Economic Housing Instability"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Risk Variable Economic Housing Instability&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Economic Housing Instability&quot;, &quot;Present On Admission is Yes or Exempt&quot; )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="56"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable HIV"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Risk Variable HIV&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;HIV in Pregnancy Childbirth and Puerperium&quot;, &quot;Present On Admission is Yes or Exempt&quot; )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="57"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Maternal Age"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Risk Variable Maternal Age&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    let MaternalAge: AgeInYearsAt(date from start of TwentyWeeksPlusEncounter.period)
    return { TwentyWeeksPlusEncounter, MaternalAge }"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="58"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Heart Rate"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="//First resulted value 24 hours prior to start of encounter and before time of delivery
 //Report heart rate as beats/min
 //Heart rate value cannot be null per QICore profile requirement.




define &quot;Risk Variable Heart Rate&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    let FirstHeartRate: First([USCoreHeartRateProfile] HeartRate
        where HeartRate.effective.earliest() during Interval[start of TwentyWeeksPlusEncounter.hospitalizationWithEDOBTriageObservation() - 1440 minutes, TwentyWeeksPlusEncounter.lastTimeOfDelivery()]
          and HeartRate.status in { 'final', 'amended', 'corrected' }
        sort by effective.earliest()
    )
    return {
      EncounterId: TwentyWeeksPlusEncounter.id,
      FirstHRResult: FirstHeartRate.value as Quantity,
      Timing: FirstHeartRate.effective.earliest ( )
    }"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="59"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Mental Health Disorder"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Risk Variable Mental Health Disorder&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Mental Health Disorder&quot;, &quot;Present On Admission is Yes or Exempt&quot; )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="60"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Obstetrical VTE"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Risk Variable Obstetrical VTE&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Venous Thromboembolism in Pregnancy&quot;, &quot;Present On Admission is Yes or Exempt&quot; )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="61"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Numerator 1"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Numerator 1&quot;:
  &quot;Delivery Encounters With Severe Obstetric Complications&quot;"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="62"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Numerator 2"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Numerator 2&quot;:
  &quot;Delivery Encounters With Severe Obstetric Complications Excluding Blood Transfusions Only&quot;"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="63"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Autoimmune Disease"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Risk Variable Autoimmune Disease&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Autoimmune Disease&quot;, &quot;Present On Admission is Yes or Exempt&quot; )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="64"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Previous Cesarean"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Risk Variable Previous Cesarean&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Previous Cesarean&quot;, &quot;Present On Admission is Yes or Exempt&quot; )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="65"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Gestational Diabetes"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Risk Variable Gestational Diabetes&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Gestational Diabetes&quot;, &quot;Present On Admission is Yes or Exempt&quot; )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="66"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="SDE SOC Procedure Detail"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;SDE SOC Procedure Detail&quot;:
  &quot;SDE Delivery Encounters With Severe Obstetric Complication Procedures&quot; Encounter
    let procedure: Encounter.sOCProcedures ( )
    return {
      id: Encounter.id,
      code: Encounter.type,
      procedures: procedure P
        return {
          code: P,
          SOCProcedureCategory: P.sOCProcedureCategory ( )
        }
    }"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="67"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Risk Variable Multiple Pregnancy"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Risk Variable Multiple Pregnancy&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot; TwentyWeeksPlusEncounter
    where TwentyWeeksPlusEncounter.isDiagnosisPresentOnAdmission ( &quot;Multiple Pregnancy&quot;, &quot;Present On Admission is Yes or Exempt&quot; )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="68"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="Denominator"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;Denominator&quot;:
  &quot;Delivery Encounters At Greater Than Or Equal To 20 Weeks Gestation&quot;"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="69"/>
        </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;:
  Patient.ethnicity E
    return Tuple {
      codes: { E.ombCategory } union E.detailed,
      display: E.text
    }"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="70"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="SDE Ethnicity"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define &quot;SDE Ethnicity&quot;:
  SDE.&quot;SDE Ethnicity&quot;"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="71"/>
        </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="/*
@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]"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="72"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="QICoreCommon"/>
        </extension>
        <extension url="name">
          <valueString value="toInterval"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="/*
@description: Normalizes a value that is a choice of timing-valued types to an equivalent interval
@comment: Normalizes a choice type of DateTime, Quanitty, Interval&lt;DateTime&gt;, or Interval&lt;Quantity&gt; types
to an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible
representations for timing-valued elements in QICore, allowing this function to be used across any resource.
The input can be provided as a DateTime, Quantity, Interval&lt;DateTime&gt; or Interval&lt;Quantity&gt;.
The intent of this function is to provide a clear and concise mechanism to treat single
elements that have multiple possible representations as intervals so that logic doesn't have to account
for the variability. More complex calculations (such as medication request period or dispense period
calculation) need specific guidance and consideration. That guidance may make use of this function, but
the focus of this function is on single element calculations where the semantics are unambiguous.
If the input is a DateTime, the result a DateTime Interval beginning and ending on that DateTime.
If the input is a Quantity, the quantity is expected to be a calendar-duration interpreted as an Age,
and the result is a DateTime Interval beginning on the Date the patient turned that age and ending immediately before one year later.
If the input is a DateTime Interval, the result is the input.
If the input is a Quantity Interval, the quantities are expected to be calendar-durations interpreted as an Age, and the result
is a DateTime Interval beginning on the date the patient turned the age given as the start of the quantity interval, and ending
immediately before one year later than the date the patient turned the age given as the end of the quantity interval.
If the input is a Timing, an error will be thrown indicating that Timing calculations are not implemented. Any other input will reslt in a null DateTime Interval
*/
define fluent function toInterval(choice Choice&lt;DateTime, Quantity, Interval&lt;DateTime&gt;, Interval&lt;Quantity&gt;, Timing&gt;):
  case
	  when choice is DateTime then
    	Interval[choice as DateTime, choice as DateTime]
		when choice is Interval&lt;DateTime&gt; then
  		choice as Interval&lt;DateTime&gt;
		when choice is Quantity then
		  Interval[Patient.birthDate + (choice as Quantity),
			  Patient.birthDate + (choice as Quantity) + 1 year)
		when choice is Interval&lt;Quantity&gt; then
		  Interval[Patient.birthDate + (choice.low as Quantity),
			  Patient.birthDate + (choice.high as Quantity) + 1 year)
		when choice is Timing then
      Message(null, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a Timing value is not supported') as Interval&lt;DateTime&gt;
		else
			null as Interval&lt;DateTime&gt;
	end"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="73"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="PCMaternal"/>
        </extension>
        <extension url="name">
          <valueString value="hospitalizationWithEDOBTriageObservation"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define fluent function hospitalizationWithEDOBTriageObservation (TheEncounter Encounter ):
  /*hospitalizationWithEDOBTriageObservation returns the total interval from the start of any immediately prior emergency department visit or OB Triage visit through the observation visit to the discharge of the given encounter*/
  TheEncounter Visit
    let ObsVisit: Last([&quot;Encounter&quot;: &quot;Observation Services&quot;] LastObs
        where LastObs.period ends 1 hour or less on or before start of Visit.period
          and LastObs.status = 'finished'
        sort by 
        end of period
    ),
    VisitStart: Coalesce(start of ObsVisit.period, start of Visit.period),
    EDOBTriageVisit: Last([&quot;Encounter&quot;: &quot;ED Visit and OB Triage&quot;] LastEDOBTriage
        where LastEDOBTriage.period ends 1 hour or less on or before VisitStart
          and LastEDOBTriage.status = 'finished'
        sort by 
        end of period
    )
    return Interval[Coalesce(start of EDOBTriageVisit.period, VisitStart), 
    end of Visit.period]"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="74"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="PCMaternal"/>
        </extension>
        <extension url="name">
          <valueString value="calculatedGestationalAge"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define fluent function calculatedGestationalAge (TheEncounter Encounter ):
  //Gestational Age = (280 -(Estimated Delivery Date minus Reference Date/Delivery Date))/7
 ( 280 - ( difference in days between TheEncounter.lastTimeOfDelivery () and TheEncounter.lastEstimatedDeliveryDate( )) ) div 7"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="75"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="PCMaternal"/>
        </extension>
        <extension url="name">
          <valueString value="lastTimeOfDelivery"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define fluent function lastTimeOfDelivery (TheEncounter Encounter ):
  Last([&quot;SimpleObservation&quot;: &quot;Date and time of obstetric delivery&quot;] TimeOfDelivery
      where TimeOfDelivery.value as DateTime is not null
        and TimeOfDelivery.status in { 'final', 'amended', 'corrected' }
        and TimeOfDelivery.effective.earliest () during TheEncounter.hospitalizationWithEDOBTriageObservation ()
        and TimeOfDelivery.value as DateTime during TheEncounter.hospitalizationWithEDOBTriageObservation()
      sort by effective.earliest()
  ).value as DateTime"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="76"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="QICoreCommon"/>
        </extension>
        <extension url="name">
          <valueString value="earliest"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="/*
@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;DateTime, Quantity, Interval&lt;DateTime&gt;, Interval&lt;Quantity&gt;&gt; ):
  (choice.toInterval()) period
    return
      if (period.&quot;hasStart&quot;()) then start of period
      else end of period"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="77"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="QICoreCommon"/>
        </extension>
        <extension url="name">
          <valueString value="hasStart"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="/*
@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
  )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="78"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="PCMaternal"/>
        </extension>
        <extension url="name">
          <valueString value="lastEstimatedDeliveryDate"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define fluent function lastEstimatedDeliveryDate (TheEncounter Encounter ):
  /*This function identifies the last time the EDD was assessed 42 weeks or less prior to or on delivery and stores the result of that assessment.*/
  Last([&quot;SimpleObservation&quot;: &quot;Delivery date Estimated&quot;] EstimatedDateOfDelivery
      where EstimatedDateOfDelivery.value as DateTime is not null
        and EstimatedDateOfDelivery.status in { 'final', 'amended', 'corrected' }
        and EstimatedDateOfDelivery.effective.earliest ( ) 42 weeks or less before or on TheEncounter.lastTimeOfDelivery ()
      sort by effective.earliest ( )
  ).value as DateTime"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="79"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="PCMaternal"/>
        </extension>
        <extension url="name">
          <valueString value="lastEstimatedGestationalAge"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define fluent function lastEstimatedGestationalAge (TheEncounter Encounter ):
  Last([&quot;SimpleObservation&quot;: &quot;Estimated Gestational Age at Delivery&quot;] EstimatedGestationalAge
  let EGATiming:  EstimatedGestationalAge.effective.earliest() where 
  (EGATiming 24 hours or less before or on TheEncounter.lastTimeOfDelivery () 
  and EstimatedGestationalAge.value is not null 
  and EstimatedGestationalAge.status in { 'final', 'amended', 'corrected' }) or 
      (EGATiming same day as TheEncounter.lastTimeOfDelivery () 
      and EGATiming during TheEncounter.hospitalizationWithEDOBTriageObservation() 
      and EstimatedGestationalAge.value is not null)
 sort by effective.earliest ())
         .value as Quantity"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="80"/>
        </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="/*
@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
        }"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="81"/>
        </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="/*
@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
        }"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="82"/>
        </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="/*  
@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))"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="83"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="QICoreCommon"/>
        </extension>
        <extension url="name">
          <valueString value="references"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="/*
@description: Returns true if the given reference is to the given resourceId
@comment: Returns true if the `resourceId` parameter exactly equals the tail of the given reference.
NOTE: This function assumes resources from the same source server.
*/
define fluent function references(reference Reference, resourceId String):
  resourceId = Last(Split(reference.reference, '/'))"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="84"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CQMCommon"/>
        </extension>
        <extension url="name">
          <valueString value="isDiagnosisPresentOnAdmission"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="/*
 @description: Returns true if the given diagnosis is present on admission, based on the given poaValueSet
 @comment: See the QICore 6 Authoring Patterns discussion on [Principal Diagnosis and Present on Admission](https://github.com/cqframework/CQL-Formatting-and-Usage-Wiki/wiki/Authoring-Patterns-QICore-v6.0.0#conditions-present-on-admission-and-principal-diagnoses) for more information
 */
 define fluent function isDiagnosisPresentOnAdmission(encounter Encounter, diagnosisValueSet ValueSet, poaValueSet ValueSet):
   exists (
     (encounter.claimDiagnosis()) CD
       where CD.onAdmission in poaValueSet
         and (
           CD.diagnosis in diagnosisValueSet
             or CD.diagnosis.getCondition().code in diagnosisValueSet
         )
   )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="85"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CQMCommon"/>
        </extension>
        <extension url="name">
          <valueString value="claimDiagnosis"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="/*
@description: Returns the claim diagnosis elements for the given encounter
@comment: See the QICore 6 Authoring Patterns discussion on [Principal Diagnosis and Present on Admission](https://github.com/cqframework/CQL-Formatting-and-Usage-Wiki/wiki/Authoring-Patterns-QICore-v6.0.0#conditions-present-on-admission-and-principal-diagnoses) for more information
*/
define fluent function claimDiagnosis(encounter Encounter):
  encounter E
    let 
      claim: ([Claim] C where C.status = 'active' and C.use = 'claim' and exists (C.item I where I.encounter.references(E))),
      claimItem: (claim.item I where I.encounter.references(E))
    return claim.diagnosis D where D.sequence in claimItem.diagnosisSequence"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="86"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="QICoreCommon"/>
        </extension>
        <extension url="name">
          <valueString value="references"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="/*
@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;Reference&gt;, resource Resource):
  exists (references R where R.references(resource))"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="87"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="QICoreCommon"/>
        </extension>
        <extension url="name">
          <valueString value="references"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="/*
@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 Reference, resource Resource):
  resource.id = Last(Split(reference.reference, '/'))"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="88"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CQMCommon"/>
        </extension>
        <extension url="name">
          <valueString value="getCondition"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="/*
@description: Returns the Condition resource for the given reference
*/
define fluent function getCondition(reference Reference):
  singleton from (([ConditionEncounterDiagnosis] union [ConditionProblemsHealthConcerns]) C where reference.references(C.id))"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="89"/>
        </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="90"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="pOAIsNoOrUTD"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define fluent function pOAIsNoOrUTD(TheEncounter Encounter):
  ( TheEncounter.claimDiagnosis ( ) ) CDiagnoses
    where CDiagnoses.onAdmission in &quot;Present on Admission is No or Unable To Determine&quot;
    return CDiagnoses.diagnosis"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="91"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="sOCDxCategory"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define fluent function sOCDxCategory(Dx Concept):
  case
    when Dx in &quot;Acute Heart Failure&quot; then 'Acute Heart Failure'
    when Dx in &quot;Acute Myocardial Infarction&quot; then 'Acute Myocardial Infarction'
    when Dx in &quot;Acute Renal Failure&quot; then 'Acute Renal Failure'
    when Dx in &quot;Acute Respiratory Distress Syndrome&quot; then 'Acute Respiratory Distress Syndrome'
    when Dx in &quot;Air and Thrombotic Embolism&quot; then 'Air and Thrombotic Embolism'
    when Dx in &quot;Amniotic Fluid Embolism&quot; then 'Amniotic Fluid Embolism'
    when Dx in &quot;Aortic Aneurysm&quot; then 'Aortic Aneurysm'
    when Dx in &quot;Cardiac Arrest Ventricular Fibrillation&quot; then 'Cardiac Arrest Ventricular Fibrillation'
    when Dx in &quot;Disseminated Intravascular Coagulation&quot; then 'Disseminated Intravascular Coagulation'
    when Dx in &quot;Eclampsia&quot; then 'Eclampsia'
    when Dx in &quot;Heart Failure Cardiac Arrest Related to Procedure or Surgery&quot; then 'Heart Failure Cardiac Arrest Related to Procedure or Surgery'
    when Dx in &quot;Puerperal Cerebrovascular Disorder&quot; then 'Puerperal Cerebrovascular Disorder'
    when Dx in &quot;Pulmonary Edema&quot; then 'Pulmonary Edema'
    when Dx in &quot;Sepsis&quot; then 'Sepsis'
    when Dx in &quot;Severe Anesthesia Complications&quot; then 'Severe Anesthesia Complications'
    when Dx in &quot;Shock&quot; then 'Shock'
    when Dx in &quot;Sickle Cell Disease with Crisis&quot; then 'Sickle Cell Disease with Crisis' 
    else null end"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="92"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="sOCProcedures"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define fluent function sOCProcedures(TheEncounter Encounter):
  ( [&quot;Procedure&quot;: &quot;Severe Maternal Morbidity Procedures&quot;]
    union [&quot;Procedure&quot;: &quot;Blood Transfusion&quot;] ) SMMProcedures
    where SMMProcedures.status = 'completed'
      and SMMProcedures.performed.toInterval ( ) starts during TheEncounter.hospitalizationWithEDOBTriageObservation ( )"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="93"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
        <extension url="libraryName">
          <valueString value="CMS1028FHIRPCSevereOBComps"/>
        </extension>
        <extension url="name">
          <valueString value="sOCProcedureCategory"/>
        </extension>
        <extension url="statement">
          <valueString
                       value="define fluent function sOCProcedureCategory(TheProcedure Procedure):
  case
    when TheProcedure.code in &quot;Blood Transfusion&quot; then 'Blood Transfusion'
    when TheProcedure.code in &quot;Conversion of Cardiac Rhythm&quot; then 'Conversion of cardiac rhythm'
    when TheProcedure.code in &quot;Hysterectomy&quot; then 'Hysterectomy'
    when TheProcedure.code in &quot;Tracheostomy&quot; then 'Tracheostomy'
    when TheProcedure.code in &quot;Ventilation&quot; then 'Ventilation' 
    else null end"/>
        </extension>
        <extension url="displaySequence">
          <valueInteger value="94"/>
        </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="QICore model information"/>
        <resource value="http://hl7.org/fhir/Library/QICore-ModelInfo"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Library PCMaternal"/>
        <resource value="https://madie.cms.gov/Library/PCMaternal|5.25.000"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Library CQMCommon"/>
        <resource value="https://madie.cms.gov/Library/CQMCommon|4.1.000"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Library FHIRHelpers"/>
        <resource value="https://madie.cms.gov/Library/FHIRHelpers|4.4.000"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Library QICoreCommon"/>
        <resource value="https://madie.cms.gov/Library/QICoreCommon|4.0.000"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Library SDE"/>
        <resource
                  value="https://madie.cms.gov/Library/SupplementalDataElements|5.1.000"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Code system LOINC"/>
        <resource value="http://loinc.org"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Code system Present On Admission Indicators"/>
        <resource
                  value="https://www.cms.gov/Medicare/Medicare-Fee-for-Service-Payment/HospitalAcqCond/Coding"/>
      </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="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 Delivery Procedures"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.59"/>
      </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 ED Visit and OB Triage"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.369"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Estimated Gestational Age at Delivery"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.26"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set 20 to 42 Plus Weeks Gestation"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.67"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Acute or Persistent Asthma"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.271"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Present On Admission is Yes or Exempt"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.63"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Severe Maternal Morbidity Diagnoses"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.255"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display
                 value="Value set Present on Admission is No or Unable To Determine"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.370"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Severe Maternal Morbidity Procedures"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.256"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Patient Expired"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.309"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Blood Transfusion"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.213"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Placenta Increta or Percreta"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.388"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Hysterectomy"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.358"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Conversion of Cardiac Rhythm"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.357"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Tracheostomy"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.359"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Ventilation"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.360"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Placenta Accreta"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.302"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Hypertension"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.332"/>
      </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 Placental Abruption"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.305"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Morbid or Severe Obesity"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.290"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Preexisting Diabetes"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.275"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Bariatric Surgery"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.317"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Placenta Previa"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.78"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Bleeding Disorder"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.287"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set White Blood Cells Count Lab Test"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.129"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Hematocrit Lab Test"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.114"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Anemia"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.323"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Severe Preeclampsia"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.327"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Cardiac Disease"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.341"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Long Term Anticoagulant Use"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.366"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Acute Heart Failure"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.233"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Acute Myocardial Infarction"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.623"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Acute Renal Failure"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.53"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Acute Respiratory Distress Syndrome"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.214"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Air and Thrombotic Embolism"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.243"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Amniotic Fluid Embolism"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.217"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Aortic Aneurysm"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.219"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Cardiac Arrest Ventricular Fibrillation"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.221"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Disseminated Intravascular Coagulation"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.223"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Eclampsia"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.225"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display
                 value="Value set Heart Failure Cardiac Arrest Related to Procedure or Surgery"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.227"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Puerperal Cerebrovascular Disorder"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.229"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Pulmonary Edema"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.231"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Sepsis"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.237"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Severe Anesthesia Complications"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.235"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Shock"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.239"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Sickle Cell Disease with Crisis"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.241"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Substance Abuse"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.320"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Renal Disease"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.335"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Gastrointestinal Disease"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.338"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Pulmonary Hypertension"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.281"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Mild or Moderate Preeclampsia"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.329"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Thyrotoxicosis"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.296"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Neuromuscular Disease"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.308"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Economic Housing Instability"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.292"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display
                 value="Value set HIV in Pregnancy Childbirth and Puerperium"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.272"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Mental Health Disorder"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.314"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Venous Thromboembolism in Pregnancy"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.363"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Autoimmune Disease"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.311"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Previous Cesarean"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.278"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Gestational Diabetes"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.269"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Multiple Pregnancy"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.284"/>
      </relatedArtifact>
      <parameter>
        <name value="Measurement Period"/>
        <use value="in"/>
        <min value="0"/>
        <max value="1"/>
        <type value="Period"/>
      </parameter>
      <parameter>
        <name value="Numerator Exclusions 1"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Numerator Exclusions 2"/>
        <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="Resource"/>
      </parameter>
      <parameter>
        <name value="Numerator 1"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Numerator 2"/>
        <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="Resource"/>
      </parameter>
      <parameter>
        <name value="SDE Payer"/>
        <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="SDE SOC Diagnoses Detail"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="SDE Variable Calculated Gestational Age"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name
              value="SDE Delivery Encounters With Severe Obstetric Complication Procedures"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name
              value="SDE Delivery Encounters With Severe Obstetric Complication Diagnosis"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="SDE SOC Procedure Detail"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="SDE Ethnicity"/>
        <use value="out"/>
        <min value="0"/>
        <max value="1"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Asthma"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Placental Accreta Spectrum"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Hypertension"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Preterm Birth"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Placental Abruption"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Morbid Obesity"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Preexisting Diabetes"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Bariatric Surgery"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Placenta Previa"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Bleeding Disorder"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable First White Blood Cell Count Lab Test"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable First Hematocrit Lab Test"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Anemia"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Severe Preeclampsia"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Cardiac Disease"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Long Term Anticoagulant Use"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Systolic Blood Pressure"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Substance Abuse"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Renal Disease"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Gastrointestinal Disease"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Pulmonary Hypertension"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Other Preeclampsia"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Thyrotoxicosis"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Neuromuscular Disease"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Economic Housing Instability"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable HIV"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Maternal Age"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Heart Rate"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Mental Health Disorder"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Obstetrical VTE"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Autoimmune Disease"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Previous Cesarean"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Gestational Diabetes"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Risk Variable Multiple Pregnancy"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <dataRequirement>
        <type value="Encounter"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"/>
        <mustSupport value="type"/>
        <mustSupport value="period"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="reasonCode"/>
        <mustSupport value="onAdmission"/>
        <mustSupport value="diagnosis"/>
        <mustSupport value="diagnosis.code"/>
        <mustSupport value="hospitalization"/>
        <mustSupport value="hospitalization.dischargeDisposition"/>
        <mustSupport value="id"/>
        <mustSupport value="id.value"/>
        <codeFilter>
          <path value="type"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Encounter"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"/>
        <mustSupport value="type"/>
        <mustSupport value="period"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="reasonCode"/>
        <mustSupport value="onAdmission"/>
        <mustSupport value="diagnosis"/>
        <mustSupport value="diagnosis.code"/>
        <mustSupport value="hospitalization"/>
        <mustSupport value="hospitalization.dischargeDisposition"/>
        <mustSupport value="id"/>
        <mustSupport value="id.value"/>
        <codeFilter>
          <path value="type"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.369"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Encounter"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"/>
        <mustSupport value="type"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="period"/>
        <mustSupport value="reasonCode"/>
        <mustSupport value="onAdmission"/>
        <mustSupport value="diagnosis"/>
        <mustSupport value="diagnosis.code"/>
        <mustSupport value="hospitalization"/>
        <mustSupport value="hospitalization.dischargeDisposition"/>
        <mustSupport value="id"/>
        <mustSupport value="id.value"/>
        <codeFilter>
          <path value="type"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Patient"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"/>
        <mustSupport value="birthDate"/>
        <mustSupport value="birthDate.value"/>
        <mustSupport value="url"/>
        <mustSupport value="extension"/>
      </dataRequirement>
      <dataRequirement>
        <type value="Procedure"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure"/>
        <mustSupport value="code"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="performed"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.59"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Procedure"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure"/>
        <mustSupport value="code"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="performed"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.358"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Procedure"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure"/>
        <mustSupport value="code"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="performed"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.357"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Procedure"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure"/>
        <mustSupport value="code"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="performed"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.359"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Procedure"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure"/>
        <mustSupport value="code"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="performed"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.360"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Procedure"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure"/>
        <mustSupport value="code"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="performed"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.256"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Procedure"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure"/>
        <mustSupport value="code"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="performed"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.213"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Procedure"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure"/>
        <mustSupport value="code"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="performed"/>
      </dataRequirement>
      <dataRequirement>
        <type value="Observation"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-simple-observation"/>
        <mustSupport value="code"/>
        <mustSupport value="value"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="effective"/>
        <codeFilter>
          <path value="code"/>
          <code>
            <system value="http://loinc.org"/>
            <code value="93857-1"/>
            <display value="Date and time of obstetric delivery"/>
          </code>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Observation"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-simple-observation"/>
        <mustSupport value="code"/>
        <mustSupport value="value"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="effective"/>
        <codeFilter>
          <path value="code"/>
          <code>
            <system value="http://loinc.org"/>
            <code value="11778-8"/>
            <display value="Delivery date Estimated"/>
          </code>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Observation"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-simple-observation"/>
        <mustSupport value="code"/>
        <mustSupport value="effective"/>
        <mustSupport value="value"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.26"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Observation"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-simple-observation"/>
        <mustSupport value="value"/>
      </dataRequirement>
      <dataRequirement>
        <type value="Condition"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-encounter-diagnosis"/>
      </dataRequirement>
      <dataRequirement>
        <type value="Condition"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-problems-health-concerns"/>
      </dataRequirement>
      <dataRequirement>
        <type value="Resource"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Resource"/>
        <mustSupport value="id"/>
        <mustSupport value="id.value"/>
      </dataRequirement>
      <dataRequirement>
        <type value="Claim"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-claim"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="use"/>
        <mustSupport value="use.value"/>
        <mustSupport value="item"/>
      </dataRequirement>
      <dataRequirement>
        <type value="Coverage"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-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/qicore/StructureDefinition/qicore-observation-lab"/>
        <mustSupport value="code"/>
        <mustSupport value="issued"/>
        <mustSupport value="issued.value"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="value"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.129"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Observation"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation-lab"/>
        <mustSupport value="code"/>
        <mustSupport value="issued"/>
        <mustSupport value="issued.value"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="value"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.114"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Observation"/>
        <profile
                 value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-blood-pressure"/>
        <mustSupport value="effective"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="component"/>
      </dataRequirement>
      <dataRequirement>
        <type value="Observation"/>
        <profile
                 value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-heart-rate"/>
        <mustSupport value="effective"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="value"/>
      </dataRequirement>
    </Library>
  </contained>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-supplementalDataGuidance" id="supplementalDataGuidance">
    <extension url="guidance">
      <valueString
                   value="&lt;p&gt;For every patient evaluated by this measure also identify payer, race, ethnicity and sex. No additional supplemental data elements are required to be submitted by reporting entities; all other needed data points are calculated following data receipt.&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
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-supplementalDataGuidance" id="riskAdjustmentVariableGuidance">
    <extension url="guidance">
      <valueString
                   value="&lt;p&gt;Please see the included Severe Obstetric Complications Risk Adjustment Methodology Report.&lt;/p&gt;
&lt;p&gt;Pre-existing conditions and variables must be present on admission. Please note that present on admission codes may be extracted from billing/claims data that was entered by coding staff (Leonard, Kennedy, Carmichael, Lyell, &amp;amp; Main, 2020; Main, Leonard, &amp;amp; Menard, 2020).&lt;/p&gt;
&lt;ul&gt;
 &lt;li&gt;&lt;p&gt;Anemia (includes sickle cell disease)&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;Asthma&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;Autoimmune Disease&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;Bariatric Surgery&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;Bleeding Disorder&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;Cardiac Disease&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;Economic Housing Instability&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;Gastrointestinal Disease&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;Gestational Diabetes&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;HIV&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;Hypertension&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;Long-term Anticoagulant Use&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;Maternal Age (derived from birthdate)&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;Mental Health Disorder&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;Morbid Obesity&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;Multiple Pregnancy&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;Neuromuscular Disease&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;Obstetric VTE&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;Other Pre-eclampsia&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;Placenta Previa&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;Placental Abruption&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;Placental Accreta Spectrum&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;Pre-existing Diabetes&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;Preterm Birth&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;Previous Cesarean&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;Pulmonary Hypertension&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;Renal Disease&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;Severe Pre-eclampsia&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;Substance Abuse&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;Thyrotoxicosis&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Lab and Physical Exam Results: Report the first resulted value 24 hours prior to start of encounter and before time of delivery in UCUM units specified:&lt;/p&gt;
&lt;ul&gt;
 &lt;li&gt;&lt;p&gt;Heart rate: {beats}/min&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;Systolic blood pressure: mm[Hg]&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;Hematocrit: %&lt;/p&gt;&lt;/li&gt;
 &lt;li&gt;&lt;p&gt;White blood cell count: 10*3/uL&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;"/>
    </extension>
    <extension url="usage">
      <valueCodeableConcept>
        <coding>
          <system
                  value="http://terminology.hl7.org/CodeSystem/measure-data-usage"/>
          <code value="risk-adjustment-factor"/>
          <display value="Risk Adjustment Factor"/>
        </coding>
        <text value="Risk Adjustment Variable Guidance"/>
      </valueCodeableConcept>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-definitionTerm">
    <extension url="term">
      <valueString value="Severe Obstetric Complications (SOC)"/>
    </extension>
    <extension url="definition">
      <valueMarkdown
                     value="For this measure, specifications are modeled after the nationally available and adopted CDC definition for Severe Maternal Morbidity (SMM) with the addition of maternal mortality. At times, we may refer to the CDC indicators of morbidity as SMM, but the outcome of the measure, which includes morbidity and mortality, is referred to as Severe Obstetric Complications (SOC).
"/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements">
    <valueReference>
      <reference value="#effective-data-requirements"/>
    </valueReference>
  </extension>
  <url value="https://madie.cms.gov/Measure/CMS1028FHIRPCSevereOBComps"/>
  <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="CMS1028FHIR"/>
  </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:6cf03fe2-b962-4f83-ac37-26d7477183c7"/>
  </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:d2400512-5e4e-433c-8a5c-0a85be20e660"/>
  </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="3687e"/>
    <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="1028FHIR"/>
    <assigner>
      <display value="CMS"/>
    </assigner>
  </identifier>
  <version value="1.0.000"/>
  <name value="CMS1028FHIRPCSevereOBComps"/>
  <title value="Severe Obstetric ComplicationsFHIR
"/>
  <status value="active"/>
  <experimental value="false"/>
  <date value="2025-08-25T19:37:53+00:00"/>
  <publisher value="The Joint Commission"/>
  <contact>
    <telecom>
      <system value="url"/>
      <value value="https://www.jointcommission.org/"/>
    </telecom>
  </contact>
  <description
               value="Patients with severe obstetric complications that occur during the inpatient delivery hospitalization
"/>
  <usage
         value="Note: This measure will be stratified by race/ethnicity and payer after measure submission.

In the case of multiple births, map the first delivery date/time (Baby A) as the delivery date/time for the encounter. This measure allows for 3 approaches to determine gestational age (GA) in the following order of precedence:

1. The GA is calculated using the American College of Obstetricians and Gynecologists ReVITALize guidelines.\*

2. When the calculated GA is not available, the GA is obtained from a discrete field in the electronic health record. The intent is to capture the last estimated GA in the interval starting 24 hours or less prior to delivery and ending before midnight on the same day of delivery.

3. The GA is based on ICD10 or SNOMED codes indicative of weeks gestation. This option is only used when results from items #1 and #2 (see above) are not available.

\*ACOG ReVITALize Guidelines for Calculating Gestational Age (ACOG, 2014):  

Gestational Age = (280-(Estimated Due Date minus Reference Date)) / 7

* Estimated Due Date (EDD): The best obstetrical EDD is determined by last menstrual period if confirmed by early ultrasound or no ultrasound performed, or early ultrasound if no known last menstrual period or the ultrasound is not consistent with last menstrual period, or known date of fertilization (e.g., assisted reproductive technology)

* Reference Date is the date on which you are trying to determine gestational age. For purposes of this dQM, Reference Date would be the Date of Delivery.

Note however, the calculation may yield a non-whole number, and gestational age should be rounded down to the nearest completed week. For example, an infant born on the 5th day of the 36th week (35 weeks and 5/7 days) is at a gestational age of 35 weeks, not 36 weeks.

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

This FHIR-based measure has been derived from the QDM-based measure: CMS1028v4. 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).
"/>
  <copyright
             value="Measure specifications are in the Public Domain.

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.
"/>
  <effectivePeriod>
    <start value="2026-01-01"/>
    <end value="2026-12-31"/>
  </effectivePeriod>
  <author>
    <name value="The Joint Commission"/>
    <telecom>
      <system value="url"/>
      <value value="https://www.jointcommission.org/"/>
    </telecom>
  </author>
  <author>
    <name value="Centers for Medicare &amp;amp; Medicaid Services (CMS)"/>
    <telecom>
      <system value="url"/>
      <value value="https://www.cms.gov/"/>
    </telecom>
  </author>
  <author>
    <name
          value="Yale New Haven Health Service Corporation/ Center for Outcomes Research and Evaluation"/>
    <telecom>
      <system value="url"/>
      <value value="https://medicine.yale.edu/core/"/>
    </telecom>
  </author>
  <relatedArtifact>
    <type value="citation"/>
    <citation
              value="American College of Obstetricians and Gynecologists and the Society for Maternal-Fetal Medicine. (2016, September 01). Severe maternal morbidity: Screening and review. American Journal of Obstetrics \&amp; Gynecology, 215(3), B17-B22. http://dx.doi.org/https://doi.org/10.1016/j.ajog.2016.07.050
"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation
              value="Centers for Disease Control and Prevention. Severe maternal morbidity in the United States. January 31, 2020; https://www.cdc.gov/reproductivehealth/maternalinfanthealth/severematernalmorbidity.html
"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation
              value="Hoyert DL, Minino AM. Maternal mortality in the United States: changes in coding, publication, and data release, 2018. National Vital Statistics Report, 69(2), 2020.
"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation
              value="Leonard SA, Main EK, Carmichael SL. The contribution of maternal characteristics and cesarean delivery to an increasing trend of severe maternal morbidity. BMC Pregnancy Childbirth. BMC Pregnancy Childbirth. 2019 Jan 9;19(1):16. doi: 10.1186/s12884-018-2169-3.
"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation
              value="Leonard SA, Main EK, Scott KA, Profit J, Carmichael SL. Racial and ethnic disparities in severe maternal morbidity prevalence and trends. Ann Epidemiol. 2019 Feb 28. pii: S1047-2797(18)30899-8.
"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation
              value="Leonard, S. A., Kennedy, C. J., Carmichael, S. L., Lyell, D. J., \&amp; Main, E. K. (2020). An Expanded Obstetric Comorbidity Scoring System for Predicting Severe Maternal Morbidity. Obstetrics and gynecology, 136(3), 440-449. https://doi.org/10.1097/AOG.0000000000004022
"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation
              value="Main, E. K., Leonard, S. A., \&amp; Menard, M. K. (2020). Association of Maternal Comorbidity With Severe Maternal Morbidity: A Cohort Study of California Mothers Delivering Between 1997 and 2014. Annals of internal medicine, 173(11 Suppl), S11-S18. https://doi.org/10.7326/M19-3253
"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation
              value="Office of Disease Prevention and Health Promotion. (n.d.). Reduce severe maternal complications identified during delivery hospitalization- MICH-05. Retrieved from https://health.gov/healthypeople/objectives-and-data/browse-objectives/pregnancy-and-childbirth/reduce-severe-maternal-complications-identified-during-delivery-hospitalizations-mich-05
"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="citation"/>
    <citation
              value="U.S. Department of Health and Human Services. HHS Outlines New Plans and a Partnership to Reduce U.S. Pregnancy-related Deaths. 2020; https://www.hhs.gov/about/news/2020/12/03/hhs-outlines-new-plans-to-reduce-us-pregnancy-related-deaths.html.
"/>
  </relatedArtifact>
  <library value="https://madie.cms.gov/Library/CMS1028FHIRPCSevereOBComps"/>
  <disclaimer
              value="These performance measures are not clinical guidelines, do not establish a standard of medical care, and have not been tested for all potential applications. The measures and specifications are provided without warranty.
"/>
  <rationale
             value="The United States (US) experiences higher rates of maternal morbidity and mortality than most other developed countries. The Centers for Disease Control and Prevention (CDC) (2021) report that these rates have continued to trend upward in recent decades. Research indicates that the overall rate of severe maternal morbidity (SMM) increased by almost 200% between 1993 and 2014 to 144 per 10,000 delivery hospitalizations (CDC, 2021), with more than 25,000 women per year experiencing obstetric complications (U.S. Department of Health and Human Services, 2020). Recent maternal mortality data from 2018 reveal that 658 women in the US died from maternal causes, resulting in a rate of 17.4 deaths per 100,000 live births, with 77% of the deaths attributed to direct obstetric causes like hemorrhage, preeclampsia, obstetric embolism, and other complications (Hoyert \&amp; Minino, 2020). 144 per 10,000 women hospitalized for delivery have experienced SMM, including hemorrhage, embolism, hypertension, stroke, and other serious complications (CDC, 2021). Racial and ethnic disparities exist: Black women and Hispanic women are at a significantly higher risk for developing these complications than are Non-Hispanic White women (Leonard, Main, Scott, Profit, \&amp; Carmichael, 2019). Increasing rates of SMM are resulting in increased healthcare costs, longer hospitalization stays and impacts on a woman's health (Callaghan, Creanga, \&amp; Kuklina, 2012).

There is limited national evaluation of hospitals' performance on maternal morbidity and mortality although SMM is widely used at the population level. SMM is linked to maternal mortality, varies significantly among hospitals, and has significant racial/ethnic and urban/rural disparities. SMM is a cost driver for both Medicaid and commercial plans. This measure is important as it will assist in the discovery and understanding of SMM patterns that can lead to improvements in the safety and quality of maternal care necessary to reduce SMM rates.
"/>
  <clinicalRecommendationStatement
                                   value="Healthy People 2030 Measure (MICH-05): Reduce severe maternal complications identified during delivery hospitalizations (U.S. Department of Health and Human Services, n.d.).

The American College of Obstetricians and Gynecologists (ACOG) and the Society for Maternal-Fetal Medicine recommend identifying potential cases of severe maternal morbidity for further review, with a focus on outcomes and complications, and consider this an important step toward promoting safe obstetric care (American College of Obstetricians and Gynecologists and the Society for Maternal-Fetal Medicine, Kilpatrick, \&amp; Ecker, 2016).
"/>
  <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="Two hospital-level measure scores are calculated as a risk-adjusted proportion reported as a rate per 10,000 delivery hospitalizations:

1. All Severe Obstetric Complications (SOC).   

((Numerator 1 - Numerator Exclusions 1) / Denominator) \* 10,000 delivery hospitalizations

2. SOC excluding encounters where transfusion was the only SOC.  

((Numerator 2 - Numerator Exclusions 2) / Denominator) \* 10,000 delivery hospitalizations

Numerator 1: Delivery encounters with SOC

Numerator 2: Delivery encounters with SOC excluding encounters where transfusion was the only SOC

Numerator Exclusions 1: Delivery encounters with blood transfusion or hysterectomy with placenta percreta or placenta increta and no additional SOCs

Numerator Exclusions 2: Delivery encounters with SOC excluding encounters where transfusion was the only SOC with a hysterectomy or blood transfusion with a diagnosis of placenta percreta or placenta increta and no additional SOCs

Denominator: Delivery encounters with \&gt; or = 20 weeks' gestation completed
"/>
    </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>
    <description value="All Severe Obstetric Complications (SOC)
"/>
    <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 for patients age greater than or equal to 8 years and less than 65 admitted to the hospital for inpatient acute care who undergo a delivery procedure with a discharge date during the measurement period
"/>
      <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="Inpatient hospitalizations for patients delivering stillborn or live birth with greater than or equal to 20 weeks, 0 days gestation completed
"/>
      <criteria>
        <language value="text/cql-identifier"/>
        <expression value="Denominator"/>
      </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="All Severe Obstetric Complications (SOC).

Inpatient hospitalizations for patients with severe obstetric complications (not present on admission that occur during the current delivery encounter) including the following:

* Severe maternal morbidity diagnoses (see list below)

* Severe maternal morbidity procedures (see list below)

* Discharge disposition of expired

Please note that present on admission codes may be extracted from billing/claims data that was entered by coding staff.

Severe Maternal Morbidity Diagnoses:

* Cardiac

  * Acute heart failure

  * Acute myocardial infarction

  * Aortic aneurysm

  * Cardiac arrest/ventricular fibrillation

  * Heart failure/arrest during procedure or surgery

* Hemorrhage

  * Disseminated intravascular coagulation

  * Shock

* Renal

  * Acute renal failure

* Respiratory

  * Adult respiratory distress syndrome

  * Pulmonary edema

* Sepsis

* Other OB

  * Air and thrombotic embolism

  * Amniotic fluid embolism

  * Eclampsia

  * Severe anesthesia complications

* Other Medical

  * Puerperal cerebrovascular disorder

  * Sickle cell disease with crisis

Severe Maternal Morbidity Procedures:

* Blood transfusion

* Conversion of cardiac rhythm

* Hysterectomy

* Temporary tracheostomy

* Ventilation

"/>
      <criteria>
        <language value="text/cql-identifier"/>
        <expression value="Numerator 1"/>
      </criteria>
    </population>
    <population id="NumeratorExclusion_1">
      <code>
        <coding>
          <system
                  value="http://terminology.hl7.org/CodeSystem/measure-population"/>
          <code value="numerator-exclusion"/>
          <display value="Numerator Exclusion"/>
        </coding>
      </code>
      <description
                   value="Inpatient hospitalizations with blood transfusion or hysterectomy with a diagnosis of placenta percreta or placenta increta and no additional severe obstetrical complications
"/>
      <criteria>
        <language value="text/cql-identifier"/>
        <expression value="Numerator Exclusions 1"/>
      </criteria>
    </population>
  </group>
  <group id="Group_2">
    <extension
               url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoring">
      <valueCodeableConcept>
        <coding>
          <system
                  value="http://terminology.hl7.org/CodeSystem/measure-scoring"/>
          <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="Two hospital-level measure scores are calculated as a risk-adjusted proportion reported as a rate per 10,000 delivery hospitalizations:

1. All Severe Obstetric Complications (SOC).   

((Numerator 1 -- Numerator Exclusions 1) / Denominator) \* 10,000 delivery hospitalizations

2. SOC excluding encounters where transfusion was the only SOC.  

((Numerator 2 -- Numerator Exclusions 2) / Denominator) \* 10,000 delivery hospitalizations

Numerator 1: Delivery encounters with SOC

Numerator 2: Delivery encounters with SOC excluding encounters where transfusion was the only SOC

Numerator Exclusions 1: Delivery encounters with blood transfusion or hysterectomy with placenta percreta or placenta increta and no additional SOCs

Numerator Exclusions 2: Delivery encounters with SOC excluding encounters where transfusion was the only SOC with a hysterectomy or blood transfusion with a diagnosis of placenta percreta or placenta increta and no additional SOCs

Denominator: Delivery encounters with \&gt; or = 20 weeks' gestation completed
"/>
    </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>
    <description
                 value="SOC excluding encounters where transfusion was the only SOC
"/>
    <population id="InitialPopulation_2">
      <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 for patients age greater than or equal to 8 years and less than 65 admitted to the hospital for inpatient acute care who undergo a delivery procedure with a discharge date during the measurement period
"/>
      <criteria>
        <language value="text/cql-identifier"/>
        <expression value="Initial Population"/>
      </criteria>
    </population>
    <population id="Denominator_2">
      <code>
        <coding>
          <system
                  value="http://terminology.hl7.org/CodeSystem/measure-population"/>
          <code value="denominator"/>
          <display value="Denominator"/>
        </coding>
      </code>
      <description
                   value="Inpatient hospitalizations for patients delivering stillborn or live birth with greater than or equal to 20 weeks, 0 days gestation completed
"/>
      <criteria>
        <language value="text/cql-identifier"/>
        <expression value="Denominator"/>
      </criteria>
    </population>
    <population id="Numerator_2">
      <code>
        <coding>
          <system
                  value="http://terminology.hl7.org/CodeSystem/measure-population"/>
          <code value="numerator"/>
          <display value="Numerator"/>
        </coding>
      </code>
      <description
                   value="Delivery encounters with SOC excluding encounters where transfusion was the only SOC.

Inpatient hospitalizations for patients with severe obstetric complications (not present on admission that occur during the current delivery encounter) including:

* Severe maternal morbidity diagnoses (see following list)

* Severe maternal morbidity procedures (see following list)

* Discharge disposition of expired, yet excluding encounters where transfusion was the only SOC.

Please note that present on admission codes may be those entered by coding staff, extracted from billing/claims data.

Severe Maternal Morbidity Diagnoses:

* Cardiac

  * Acute heart failure

  * Acute myocardial infarction

  * Aortic aneurysm

  * Cardiac arrest/ventricular fibrillation

  * Heart failure/arrest during procedure or surgery

* Hemorrhage

  * Disseminated intravascular coagulation

  * Shock

* Renal

  * Acute renal failure

* Respiratory

  * Adult respiratory distress syndrome

  * Pulmonary edema

* Sepsis

* Other OB

  * Air and thrombotic embolism

  * Amniotic fluid embolism

  * Eclampsia

  * Severe anesthesia complications

* Other

  * Medical Puerperal cerebrovascular disorder

  * Sickle cell disease with crisis

Severe Maternal Morbidity Procedures:

* Blood transfusion

* Conversion of cardiac rhythm

* Hysterectomy

* Temporary tracheostomy

* Ventilation

"/>
      <criteria>
        <language value="text/cql-identifier"/>
        <expression value="Numerator 2"/>
      </criteria>
    </population>
    <population id="NumeratorExclusion_2">
      <code>
        <coding>
          <system
                  value="http://terminology.hl7.org/CodeSystem/measure-population"/>
          <code value="numerator-exclusion"/>
          <display value="Numerator Exclusion"/>
        </coding>
      </code>
      <description
                   value="Inpatient hospitalizations with SOC excluding encounters where transfusion was the only SOC with a hysterectomy or blood transfusion with a diagnosis of placenta percreta or placenta increta and no additional severe obstetrical complications
"/>
      <criteria>
        <language value="text/cql-identifier"/>
        <expression value="Numerator Exclusions 2"/>
      </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
"/>
    <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
"/>
    <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
"/>
    <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
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="SDE Sex"/>
    </criteria>
  </supplementalData>
  <supplementalData
                    id="sde-delivery-encounters-with-severe-obstetric-complication-diagnosis">
    <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 Delivery Encounters With Severe Obstetric Complication Diagnosis
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression
                  value="SDE Delivery Encounters With Severe Obstetric Complication Diagnosis"/>
    </criteria>
  </supplementalData>
  <supplementalData id="sde-soc-diagnoses-detail">
    <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 SOC Diagnoses Detail
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="SDE SOC Diagnoses Detail"/>
    </criteria>
  </supplementalData>
  <supplementalData id="sde-soc-procedure-detail">
    <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 SOC Procedure Detail
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="SDE SOC Procedure Detail"/>
    </criteria>
  </supplementalData>
  <supplementalData id="sde-variable-calculated-gestational-age">
    <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 Variable Calculated Gestational Age
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="SDE Variable Calculated Gestational Age"/>
    </criteria>
  </supplementalData>
  <supplementalData
                    id="sde-delivery-encounters-with-severe-obstetric-complication-procedures">
    <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 Delivery Encounters With Severe Obstetric Complication Procedures
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression
                  value="SDE Delivery Encounters With Severe Obstetric Complication Procedures"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-anemia">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Anemia
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Anemia"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-asthma">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Asthma
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Asthma"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-autoimmune-disease">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Autoimmune Disease
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Autoimmune Disease"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-bariatric-surgery">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Bariatric Surgery
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Bariatric Surgery"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-bleeding-disorder">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Bleeding Disorder
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Bleeding Disorder"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-cardiac-disease">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Cardiac Disease
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Cardiac Disease"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-economic-housing-instability">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Economic Housing Instability
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Economic Housing Instability"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-gastrointestinal-disease">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Gastrointestinal Disease
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Gastrointestinal Disease"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-gestational-diabetes">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Gestational Diabetes
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Gestational Diabetes"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-hiv">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable HIV
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable HIV"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-hypertension">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Hypertension
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Hypertension"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-long-term-anticoagulant-use">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Long Term Anticoagulant Use
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Long Term Anticoagulant Use"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-maternal-age">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Maternal Age
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Maternal Age"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-mental-health-disorder">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Mental Health Disorder
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Mental Health Disorder"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-morbid-obesity">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Morbid Obesity
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Morbid Obesity"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-multiple-pregnancy">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Multiple Pregnancy
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Multiple Pregnancy"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-obstetrical-vte">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Obstetrical VTE
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Obstetrical VTE"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-other-preeclampsia">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Other Preeclampsia
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Other Preeclampsia"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-placenta-previa">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Placenta Previa
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Placenta Previa"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-placental-abruption">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Placental Abruption
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Placental Abruption"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-placental-accreta-spectrum">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Placental Accreta Spectrum
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Placental Accreta Spectrum"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-preexisting-diabetes">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Preexisting Diabetes
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Preexisting Diabetes"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-previous-cesarean">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Previous Cesarean
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Previous Cesarean"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-pulmonary-hypertension">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Pulmonary Hypertension
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Pulmonary Hypertension"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-renal-disease">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Renal Disease
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Renal Disease"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-severe-preeclampsia">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Severe Preeclampsia
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Severe Preeclampsia"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-substance-abuse">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Substance Abuse
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Substance Abuse"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-thyrotoxicosis">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Thyrotoxicosis
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Thyrotoxicosis"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-preterm-birth">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Preterm Birth
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Preterm Birth"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-first-hematocrit-lab-test">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable First Hematocrit Lab Test
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable First Hematocrit Lab Test"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-first-white-blood-cell-count-lab-test">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description
                 value="Risk Variable First White Blood Cell Count Lab Test
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression
                  value="Risk Variable First White Blood Cell Count Lab Test"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-heart-rate">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Heart Rate
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Heart Rate"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-systolic-blood-pressure">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Systolic Blood Pressure
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Systolic Blood Pressure"/>
    </criteria>
  </supplementalData>
  <supplementalData id="risk-variable-neuromuscular-disease">
    <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="risk-adjustment-factor"/>
      </coding>
    </usage>
    <description value="Risk Variable Neuromuscular Disease
"/>
    <criteria>
      <language value="text/cql-identifier"/>
      <expression value="Risk Variable Neuromuscular Disease"/>
    </criteria>
  </supplementalData>
</Measure>