<Measure xmlns="http://hl7.org/fhir">
   <id value="TreatmentPrescribedForClusterHeadache"></id>
   <meta>
      <profile value="http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablemeasure"></profile>
      <profile value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm"></profile>
      <profile value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/publishable-measure-cqfm"></profile>
      <profile value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/executable-measure-cqfm"></profile>
      <profile value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cql-measure-cqfm"></profile>
      <profile value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/elm-measure-cqfm"></profile>
      <profile value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/proportion-measure-cqfm"></profile>
   </meta>
   <text>
      <status value="extensions"></status>
      <div xmlns="http://www.w3.org/1999/xhtml" class="col-12"> 
         <table class="narrative-table"> 
            <tbody> 
               <tr> 
                  <th colspan="2" scope="row" class="row-header">Metadata</th> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Title</th> 
                  <td class="content-container">Treatment Prescribed for Cluster Headache</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Version</th> 
                  <td class="content-container">Draft based on 0.1.000</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Short Name</th> 
                  <td class="content-container">TreatmentForClusterHeadache</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">GUID (Version Independent)</th> 
                  <td class="content-container">urn:uuid:99661d24-34dd-43eb-a19d-5b3912aefdc6</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">GUID (Version Specific)</th> 
                  <td class="content-container">urn:uuid:b12e8f77-82aa-41d1-8b14-5ea8283dc00b</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">Status</th> 
                  <td class="content-container">draft</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Steward (Publisher)</th> 
                  <td class="content-container">American Academy of Neurology</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Developer</th> 
                  <td class="content-container">Lantana Consulting Group</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Description</th> 
                  <td class="content-container">Percentage of patients 18 years of age or older with a diagnosis of cluster headache (CH) who were prescribed: - acute treatment (population 1) - short-term and/or long-term preventive treatment (population 2) including treatments prescribed by a different clinician.</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Copyright</th> 
                  <td class="content-container">Limited proprietary coding may be contained in the Measure specifications for convenience. A license agreement must be entered prior to a third-party’s use of Current Procedural Terminology (CPT[R]) or other proprietary code set contained in the Measure. Any other use of CPT or other coding by the third-party is strictly prohibited. AANI, APA, AMA, and the former members of the PCPI disclaim all liability for use or accuracy of any CPT or other coding contained in the specifications. CPT(R) contained in the Measure specifications is copyright 2004-2025 American Medical Association. LOINC(R) is 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 is copyright 2025 World Health Organization. All Rights Reserved.</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Disclaimer</th> 
                  <td class="content-container">These performance measures are not clinical guidelines and do not establish a standard of medical care, and have not been tested for all potential applications. THE MEASURES AND SPECIFICATIONS ARE PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND. Due to technical limitations, registered trademarks are indicated by (R) or [R] and unregistered trademarks are indicated by (TM) or [TM].</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Rationale</th> 
                  <td class="content-container">Cluster headache is underdiagnosed and undertreated due to difficult symptomology and poor recognition (Klapper et al., 2000, Robbins et al., 2016). Although cluster headache has a much lower prevalence than many other types of headaches (Fischera et al., 2008), it is often considered the most severe headache pain. Suicidal ideations in one study were as high as 55% of the study population (Rozen et al., 2011). Appropriate acute and preventive treatment for patients diagnosed with cluster headache leads to reliable symptom relief for attacks and reduction of attack frequency and severity. Cluster headache leads to major socioeconomic effects on patients as well as society due to direct healthcare costs and indirect costs caused by loss of working capacity (Gaul et al., 2011). Approximately 20% of CH patients have lost a job secondary to CH, while another 8% are out of work or on disability secondary to their headaches (Rozen et al., 2011). According to a 2015 study by Lademan et al., “guideline-adherent treatment in cluster headache is about 70% for acute treatment and about 35% for prophylactic treatment". The efficacy rate for treatments for both groups is above 90%.6 This evidence presents a wide gap in care for patients with cluster headache.</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Clinical Recommendation Statement</th> 
                  <td class="content-container">For the acute treatment of CH attacks, Level A advice can be given for the use of sumatriptan SC 6 mg, intranasal zolmitriptan 5 and 10 mg, and 100% oxygen. Level B advice can be given for the use of intranasal sumatriptan 20 mg and oral zolmitriptan 5 and 10 mg. Level C advice can be given for intranasal 10% cocaine, intranasal 10% lidocaine, and subcutaneous octreotide 100 μg (Francis et al., 2010). For the prevention of CH attacks during a cluster bout, Level B advice can be given for intranasal civamide 100 μL and suboccipital steroid injection. Level C advice can be given for melatonin 10 mg, verapamil 360 mg, and lithium 900 mg (Francis et al., 2010). Several new treatments are emerging for the prevention of CH. Open-label and pilot studies have been conducted with topiramate and gabapentin. Deep brain stimulation and occipital nerve stimulation have also been assessed with small trials in medically refractory patients. In the future, there may be a greater number of evidence-based treatment options for the prevention of CH (Francis et al., 2010). The first option for the treatment of acute attacks of cluster headache should be the inhalation of 100% oxygen with at least 7 l/min over 15 min (class II trials) or with the subcutaneous injection of 6 mg sumatriptan (class I trials). An alternative would be sumatriptan 20 mg nasal spray or zolmitriptan 5 mg nasal spray (one class I trial each), with the disadvantage of a slower onset and the advantage of being able to treat more attacks in 24 h than with injected sumatriptan (May et al., 2006). Prophylaxis of cluster headache should be tried first with verapamil at a daily dose of at least 240mg (maximum dose depends on efficacy or tolerability, ECG controls are obligatory with increasing doses). Although no class I or II trials are available, steroids are clearly effective for treating cluster headache. Therefore, the use of at least 100 mg methylprednisone (or equivalent corticosteroid) given orally or up to 500mg I.V. per day over 5 days (then tapering down) is recommended (May et al., 2006). Intranasal lidocaine (4%) and subcutaneous octreotide (100 μg) can be tried for treating acute cluster headache attacks if level A medication is ineffective or contraindicated. Oral administration of zolmitriptan at 5–10mg is effective in some patients (class I trial) but high doses produce more side effects and limit practical use (May et al., 2006). Methysergide and lithium are drugs of second choice if verapamil is ineffective or contraindicated. Corticosteroids can be used for short periods where bouts are short or to help establish another medication. Topiramate is promising, but only open trials exist at this point. Melatonin is useful in some patients. Except for lithium, the maximum dose depends on efficacy and tolerability. Ergotamine tartrate is recommended for short-term prophylaxis (class III studies). Despite positive class II studies, pizotifen and intranasal capsaicin should only be used in rare cases because of side effects (May et al., 2006). There is insufficient evidence from good quality RCTs to establish the effects of HBOT on cluster headache as a treatment for an acute episode or as a prophylaxis against future clusters. Three RCTs suggest that the administration of NBOT to treat acute cluster headache is likely to be effective in more than 70% of cases, and given the safety and ease of administration of NBOT, NBOT use is likely to continue. There is no evidence to support NBOT use as a prophylactic measure (Bennett et al., 2015).</td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  Bennett, M. H., French, C., Schnabel, A., Wasiak, J., Kranke, P., &amp; Weibel, S. (2015). Normobaric and hyperbaric oxygen therapy for the treatment and prevention of migraine and cluster headache. Cochrane Database of Systematic Reviews, 2015(12), CD005219. https://doi.org/10.1002/14651858.CD005219.pub3    </td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  Evers, S., Áfra, J., Frese, A., Goadsby, P. J., Linde, M., May, A., &amp; Sándor, P. S. (2010). Cluster headache and other trigemino‐autonomic cephalgias. In S. Olesen, P. Tfelt-Hansen, &amp; M. A. Welch (Eds.), The headaches (4th ed., pp. 179–190). Wiley-Blackwell. https://doi.org/10.1002/9781444328394.ch11    </td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  Fischera, M., Marziniak, M., Gralow, I., &amp; Evers, S. (2008). The incidence and prevalence of cluster headache: A meta-analysis of population-based studies. Cephalalgia, 28(6), 614–618. https://doi.org/10.1111/j.1468-2982.2008.01592.x    </td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  Francis, G. J., Becker, W. J., &amp; Pringsheim, T. M. (2010). Acute and preventive pharmacologic treatment of cluster headache. Neurology, 75(5), 463–473. https://doi.org/10.1212/WNL.0b013e3181eb58c8    </td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  Gaul, C., Finken, J., Biermann, J., Mostardt, S., Diener, H.-C., Müller, O., Wasem, J., &amp; Neumann, A. (2011). Treatment costs and indirect costs of cluster headache: A health economics analysis. Cephalalgia, 31(16), 1664–1672. https://doi.org/10.1177/0333102411425866    </td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  Klapper, J. A., Klapper, A., &amp; Voss, T. (2000). The misdiagnosis of cluster headache: A nonclinic, population-based, internet survey. Headache: The Journal of Head and Face Pain, 40(9), 730–735. https://doi.org/10.1046/j.1526-4610.2000.00127.x    </td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  Lademann, V., Jansen, J.-P., Evers, S., &amp; Frese, A. (2015). Evaluation of guideline-adherent treatment in cluster headache. Cephalalgia, 36(8), 760–764. https://doi.org/10.1177/0333102415612774    </td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  May, A., Leone, M., Áfra, J., Linde, M., Sándor, P. S., Evers, S., &amp; Goadsby, P. J. (2006). EFNS guidelines on the treatment of cluster headache and other trigeminal-autonomic cephalalgias. European Journal of Neurology, 13(10), 1066–1077. https://doi.org/10.1111/j.1468-1331.2006.01566.x    </td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  Robbins, M. S., Starling, A. J., Pringsheim, T. M., Becker, W. J., &amp; Schwedt, T. J. (2016). Treatment of cluster headache: The American Headache Society evidence-based guidelines. Headache, 56(7), 1093–1106. https://doi.org/10.1111/head.12866    </td> 
               </tr> 
               <tr>   
                  <th scope="row" class="row-header">Citation</th>  
                  <td class="content-container">  Rozen, T. D., &amp; Fishman, R. S. (2011). Cluster headache in the United States of America: Demographics, clinical characteristics, triggers, suicidality, and personal burden. Headache: The Journal of Head and Face Pain, 52(1), 99–113. https://doi.org/10.1111/j.1526-4610.2011.02028.x    </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Guidance (Usage)</th> 
                  <td class="content-container">Population 1: Acute treatment prescribed for cluster headache - Acute treatments include, but are not limited to, the following: - oxygen 100%, - sumatriptan subcutaneous (SC) - sumatriptan intranasal (IN) - zolmitriptan IN - dihydroergotamine (DHE) ((intravenous (IV), IM, SC, IN) - external vagus nerve stimulation Population 2: Preventive treatment prescribed for cluster headache - Short term preventive treatments include, but are not limited to, the following: - occipital nerve injection with steroid - oral steroid(s). - Long term preventive treatments include, but are not limited to, the following: - lithium - galcanezumab - verapamil A provider cannot prescribe ineffective or contraindicated treatment. A patient may not need treatment if they have not had any CH attacks in the past 12 months. A patient and/or caregiver reserve the right to decline a prescription. Some of these treatments are costly to be paid out of pocket for a patient who does not have health insurance.</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">Percentage of patients 18 years of age or older with a diagnosis of cluster headache (CH) who were prescribed an acute treatment including treatments prescribed by a different clinician</td> 
               </tr>  
               <tr> 
                  <th scope="row" class="row-header">Basis</th> 
                  <td class="content-container">boolean</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Scoring</th> 
                  <td class="content-container">[http://terminology.hl7.org/CodeSystem/measure-scoring#proportion: 'Proportion']</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Type</th> 
                  <td class="content-container">[http://terminology.hl7.org/CodeSystem/measure-type#process: 'Process']</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Improvement Notation</th> 
                  <td class="content-container">[http://terminology.hl7.org/CodeSystem/measure-improvement-notation#increase: 'Increased score indicates improvement']</td> 
               </tr>  
               <tr>  
                  <th scope="row" class="row-header">Initial Population</th> 
                  <td class="content-container"> 
                     <em>ID</em>: InitialPopulation_1 
                     <br></br>  
                     <em>Description</em>: 
                     <p style="white-space: pre-line" class="tab-one">Patients aged 18 years of age or older at the start of the measurement period, who have a diagnosis of CH and have an encounter during the measurement period</p>   
                     <em>Logic Definition</em>: 
                     <a href="#primary-treatmentprescribedforclusterheadache-initial-population">Initial Population</a>  
                  </td> 
               </tr>  
               <tr>  
                  <th scope="row" class="row-header">Denominator</th> 
                  <td class="content-container"> 
                     <em>ID</em>: Denominator_1 
                     <br></br>  
                     <em>Description</em>: 
                     <p style="white-space: pre-line" class="tab-one">Equals Initial Population</p>   
                     <em>Logic Definition</em>: 
                     <a href="#primary-treatmentprescribedforclusterheadache-denominator">Denominator</a>  
                  </td> 
               </tr>  
               <tr>  
                  <th scope="row" class="row-header">Numerator</th> 
                  <td class="content-container"> 
                     <em>ID</em>: Numerator_1 
                     <br></br>  
                     <em>Description</em>: 
                     <p style="white-space: pre-line" class="tab-one">Patients who were prescribed acute treatment, including treatments prescribed by a different clinician once during the measurement period</p>   
                     <em>Logic Definition</em>: 
                     <a href="#primary-treatmentprescribedforclusterheadache-numerator-1">Numerator 1</a>  
                  </td> 
               </tr>  
               <tr>  
                  <th scope="row" class="row-header">Denominator Exception</th> 
                  <td class="content-container"> 
                     <em>ID</em>: DenominatorException_1 
                     <br></br>  
                     <em>Description</em>: 
                     <p style="white-space: pre-line" class="tab-one">Guideline recommended treatment is exempt for the following: • Patient had an adverse event or allergy to CH treatments. • Patient declined treatment. • Medical reason exist for not prescribing CH treatment (medically contraindicated or ineffective, unwarranted, or attacks are infrequent or controlled).</p>   
                     <em>Logic Definition</em>: 
                     <a href="#primary-treatmentprescribedforclusterheadache-denominator-exceptions-1">Denominator Exceptions 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">Percentage of patients 18 years of age or older with a diagnosis of cluster headache (CH) who were prescribed short-term and/or long-term preventive treatment including treatments prescribed by a different clinician.</td> 
               </tr>  
               <tr> 
                  <th scope="row" class="row-header">Basis</th> 
                  <td class="content-container">boolean</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Scoring</th> 
                  <td class="content-container">[http://terminology.hl7.org/CodeSystem/measure-scoring#proportion: 'Proportion']</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Type</th> 
                  <td class="content-container">[http://terminology.hl7.org/CodeSystem/measure-type#process: 'Process']</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Improvement Notation</th> 
                  <td class="content-container">[http://terminology.hl7.org/CodeSystem/measure-improvement-notation#increase: 'Increased score indicates improvement']</td> 
               </tr>  
               <tr>  
                  <th scope="row" class="row-header">Initial Population</th> 
                  <td class="content-container"> 
                     <em>ID</em>: InitialPopulation_2 
                     <br></br>  
                     <em>Description</em>: 
                     <p style="white-space: pre-line" class="tab-one">Patients aged 18 years of age or older at the start of the measurement period, who have a diagnosis of CH and have an encounter during the measurement period</p>   
                     <em>Logic Definition</em>: 
                     <a href="#primary-treatmentprescribedforclusterheadache-initial-population">Initial Population</a>  
                  </td> 
               </tr>  
               <tr>  
                  <th scope="row" class="row-header">Denominator</th> 
                  <td class="content-container"> 
                     <em>ID</em>: Denominator_2 
                     <br></br>  
                     <em>Description</em>: 
                     <p style="white-space: pre-line" class="tab-one">Equals Initial Population</p>   
                     <em>Logic Definition</em>: 
                     <a href="#primary-treatmentprescribedforclusterheadache-denominator">Denominator</a>  
                  </td> 
               </tr>  
               <tr>  
                  <th scope="row" class="row-header">Numerator</th> 
                  <td class="content-container"> 
                     <em>ID</em>: Numerator_2 
                     <br></br>  
                     <em>Description</em>: 
                     <p style="white-space: pre-line" class="tab-one">Patients who were prescribed short-term or long-term preventive treatment, including treatments prescribed by a different clinician once during the measurement period</p>   
                     <em>Logic Definition</em>: 
                     <a href="#primary-treatmentprescribedforclusterheadache-numerator-2">Numerator 2</a>  
                  </td> 
               </tr>  
               <tr>  
                  <th scope="row" class="row-header">Denominator Exception</th> 
                  <td class="content-container"> 
                     <em>ID</em>: DenominatorException_2 
                     <br></br>  
                     <em>Description</em>: 
                     <p style="white-space: pre-line" class="tab-one">Guideline recommended treatment is exempt for the following: • Patient had an adverse event or allergy to CH treatments • Patient declined treatment • Medical reason exist for not prescribing cluster headache treatment (medically contraindicated or ineffective, unwarranted, or attacks are infrequent or controlled)</p>   
                     <em>Logic Definition</em>: 
                     <a href="#primary-treatmentprescribedforclusterheadache-denominator-exceptions-2">Denominator Exceptions 2</a>  
                  </td> 
               </tr>   
               <tr> 
                  <th scope="row" class="row-header">Supplemental Data Guidance</th> 
                  <td class="content-container">For every patient evaluated by this measure also identify payer, race, ethnicity and sex</td> 
               </tr> 
               <tr> 
                  <th colspan="2" scope="row" class="row-header">Supplemental Data Elements</th> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Supplemental Data Element</th> 
                  <td class="content-container"> 
                     <em>ID</em>: sde-ethnicity  
                     <br></br>   
                     <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#supplemental-data]  
                     <br></br>  
                     <em>Description</em>: SDE Ethnicity   
                     <br></br> 
                     <em>Logic Definition</em>: 
                     <a href="#treatmentprescribedforclusterheadache-sde-ethnicity">SDE Ethnicity</a>  
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Supplemental Data Element</th> 
                  <td class="content-container"> 
                     <em>ID</em>: sde-payer  
                     <br></br>   
                     <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#supplemental-data]  
                     <br></br>  
                     <em>Description</em>: SDE Payer   
                     <br></br> 
                     <em>Logic Definition</em>: 
                     <a href="#treatmentprescribedforclusterheadache-sde-payer">SDE Payer</a>  
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Supplemental Data Element</th> 
                  <td class="content-container"> 
                     <em>ID</em>: sde-race  
                     <br></br>   
                     <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#supplemental-data]  
                     <br></br>  
                     <em>Description</em>: SDE Race   
                     <br></br> 
                     <em>Logic Definition</em>: 
                     <a href="#treatmentprescribedforclusterheadache-sde-race">SDE Race</a>  
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Supplemental Data Element</th> 
                  <td class="content-container"> 
                     <em>ID</em>: sde-sex  
                     <br></br>   
                     <em>Usage Code</em>: [http://terminology.hl7.org/CodeSystem/measure-data-usage#supplemental-data]  
                     <br></br>  
                     <em>Description</em>: SDE Sex   
                     <br></br> 
                     <em>Logic Definition</em>: 
                     <a href="#treatmentprescribedforclusterheadache-sde-sex">SDE Sex</a>  
                  </td> 
               </tr> 
               <tr> 
                  <th colspan="2" scope="row" class="row-header">Measure Logic</th> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Primary Library</th> 
                  <td class="content-container">https://madie.cms.gov/Library/TreatmentPrescribedForClusterHeadache</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Contents</th> 
                  <td class="content-container"> 
                     <em>
                        <a href="#population-criteria">Population Criteria</a>
                     </em> 
                     <br></br> 
                     <em>
                        <a href="#definitions">Logic Definitions</a>
                     </em> 
                     <br></br> 
                     <em>
                        <a href="#terminology">Terminology</a>
                     </em> 
                     <br></br> 
                     <em>
                        <a href="#dependencies">Dependencies</a>
                     </em> 
                     <br></br> 
                     <em>
                        <a href="#data-requirements">Data Requirements</a>
                     </em> 
                     <br></br> 
                  </td> 
               </tr> 
               <tr> 
                  <th colspan="2" scope="row" class="row-header">
                     <a name="population-criteria"> </a>Population Criteria
                  </th> 
               </tr>   
               <tr> 
                  <th colspan="2" scope="row" class="row-header">Measure Group (Rate) (ID: Group_1)</th> 
               </tr>         
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="primary-treatmentprescribedforclusterheadache-initial-population"> </a>  Initial Population  
                  </th> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Initial Population":
  exists ( "Adult Encounters With Diagnosis Of Cluster Headaches" )</code></pre> 
                  </td> 
               </tr>                                                
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="primary-treatmentprescribedforclusterheadache-denominator"> </a>  Denominator  
                  </th> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Denominator":
  "Initial Population"</code></pre> 
                  </td> 
               </tr>                                                           
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="primary-treatmentprescribedforclusterheadache-numerator-1"> </a>  Numerator  
                  </th> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Numerator 1":
  "Has Cluster Headache Acute Treatment Ordered Or Reported"</code></pre> 
                  </td> 
               </tr>                                         
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="primary-treatmentprescribedforclusterheadache-denominator-exceptions-1"> </a>  Denominator Exception  
                  </th> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Denominator Exceptions 1":
  "Has Exceptions For Not Prescribing Acute Treatment"</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-treatmentprescribedforclusterheadache-initial-population"> </a>  Initial Population  
                  </th> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Initial Population":
  exists ( "Adult Encounters With Diagnosis Of Cluster Headaches" )</code></pre> 
                  </td> 
               </tr>                                                
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="primary-treatmentprescribedforclusterheadache-denominator"> </a>  Denominator  
                  </th> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Denominator":
  "Initial Population"</code></pre> 
                  </td> 
               </tr>                                                                  
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="primary-treatmentprescribedforclusterheadache-numerator-2"> </a>  Numerator  
                  </th> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Numerator 2":
  "Has Cluster Headache Preventive Treatment Ordered Or Reported"</code></pre> 
                  </td> 
               </tr>                                                      
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="primary-treatmentprescribedforclusterheadache-denominator-exceptions-2"> </a>  Denominator Exception  
                  </th> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Denominator Exceptions 2":
  "Has Exceptions For Not Prescribing Preventive Treatment"</code></pre> 
                  </td> 
               </tr>                
               <tr> 
                  <th colspan="2" scope="row" class="row-header">
                     <a name="definitions"> </a>Logic Definitions
                  </th> 
               </tr>   
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="supplementaldataelements-sde-sex"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> SupplementalDataElements
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "SDE Sex":
  case
    when Patient.sex = '248153007' then "Male (finding)"
    when Patient.sex = '248152002' then "Female (finding)"
    else null
  end</code></pre> 
                  </td> 
               </tr>         
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="supplementaldataelements-sde-payer"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> SupplementalDataElements
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "SDE Payer":
  [Coverage: type in "Payer Type"] Payer
    return {
      code: Payer.type,
      period: Payer.period
    }</code></pre> 
                  </td> 
               </tr>    
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="supplementaldataelements-sde-ethnicity"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> SupplementalDataElements
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "SDE Ethnicity":
  Patient.ethnicity E
    return Tuple {
      codes: { E.ombCategory } union E.detailed,
      display: E.text
    }</code></pre> 
                  </td> 
               </tr>    
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="supplementaldataelements-sde-race"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> SupplementalDataElements
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "SDE Race":
  Patient.race R
    return Tuple {
      codes: R.ombCategory union R.detailed,
      display: R.text
    }</code></pre> 
                  </td> 
               </tr>       
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="treatmentprescribedforclusterheadache-sde-sex"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> TreatmentPrescribedForClusterHeadache
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "SDE Sex":
  SDE."SDE Sex"</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="treatmentprescribedforclusterheadache-adult-encounters-with-diagnosis-of-cluster-headaches"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> TreatmentPrescribedForClusterHeadache
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">//Population 1 


define "Adult Encounters With Diagnosis Of Cluster Headaches":
  ( ( [Encounter: "Office Visit"]
      union [Encounter: "Online Evaluation and Management Encounters"]
      union [Encounter: "Telephone Visits All"] ) QualifyingEncounter
      with [ConditionProblemsHealthConcerns: "Cluster Headache"] ClusterHA
        such that "AgeInYearsAt"(date from start of "Measurement Period") &gt;= 18
          and QualifyingEncounter.period during day of "Measurement Period"
          and ClusterHA.prevalenceInterval ( ) starts before or on day of QualifyingEncounter.period
          and QualifyingEncounter.status = 'finished'
          and ClusterHA.isActive ( )
  )</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="treatmentprescribedforclusterheadache-initial-population"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> TreatmentPrescribedForClusterHeadache
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Initial Population":
  exists ( "Adult Encounters With Diagnosis Of Cluster Headaches" )</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="treatmentprescribedforclusterheadache-denominator"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> TreatmentPrescribedForClusterHeadache
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Denominator":
  "Initial Population"</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="treatmentprescribedforclusterheadache-has-allergy-to-acute-cluster-headache-medication"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> TreatmentPrescribedForClusterHeadache
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Has Allergy To Acute Cluster Headache Medication":
  exists ( [AllergyIntolerance: "Ingredient of Acute Cluster Headache Medication"] AcuteAllergy
      with "Adult Encounters With Diagnosis Of Cluster Headaches" ValidEncounter
        such that start of AcuteAllergy.onset.toInterval ( ) before or on day of ValidEncounter.period
          or AcuteAllergy.clinicalStatus ~ QICoreCommon."allergy-active"
  )</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="treatmentprescribedforclusterheadache-has-adverse-reaction-to-acute-cluster-headache-medication"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> TreatmentPrescribedForClusterHeadache
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Has Adverse Reaction To Acute Cluster Headache Medication":
  exists ( [AdverseEvent: "Ingredient of Acute Cluster Headache Medication"] AdverseEvent
      with "Adult Encounters With Diagnosis Of Cluster Headaches" ValidEncounter
        such that AdverseEvent.recordedDate before or on day of ValidEncounter.period
          and AdverseEvent.actuality ~ 'actual'
  )</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="treatmentprescribedforclusterheadache-has-patient-or-medical-reason-no-acute-cluster-headache-treatment-orders-or-procedures"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> TreatmentPrescribedForClusterHeadache
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Has Patient Or Medical Reason No Acute Cluster Headache Treatment Orders Or Procedures":
  exists ( [MedicationNotRequested: medication in "Acute cluster headache medication"] NoMedicationTx
      where NoMedicationTx.authoredOn during day of "Measurement Period"
        and ( NoMedicationTx.reasonCode in "Patient Declines Treatment for Cluster Headache (SNOMEDCT)"
            or NoMedicationTx.reasonCode in "Medical Reason For Not Providing Treatment"
        )
        and NoMedicationTx.status ~ 'completed'
  )
    or exists ( ( [ServiceNotRequested: "Non Invasive Oxygen Therapy by Nasal Cannula or Mask"]
        union [ServiceNotRequested: "Oxygen Therapy"]
        union [ServiceNotRequested: "External Vagus Nerve Stimulation (HCPCS II)"]
        union [ServiceNotRequested: "External Vagus Nerve Stimulator (UMLS)"] ) NoAcuteTx
        where NoAcuteTx.authoredOn during day of "Measurement Period"
          and ( NoAcuteTx.reasonRefused in "Patient Declines Treatment for Cluster Headache (SNOMEDCT)"
              or NoAcuteTx.reasonCode in "Medical Reason For Not Providing Treatment"
          )
          and NoAcuteTx.status ~ 'completed'
    )
    or exists ( ( [ProcedureNotDone: "Oxygen Therapy"]
        union [ProcedureNotDone: "Non Invasive Oxygen Therapy by Nasal Cannula or Mask"] ) NoAcutePx
        where NoAcutePx.recorded during day of "Measurement Period"
          and ( NoAcutePx.statusReason in "Patient Declines Treatment for Cluster Headache (SNOMEDCT)"
              or NoAcutePx.statusReason in "Medical Reason For Not Providing Treatment"
          )
          and NoAcutePx.status ~ 'not-done'
    )</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="treatmentprescribedforclusterheadache-patient-or-medical-reason-for-no-device"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> TreatmentPrescribedForClusterHeadache
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Patient Or Medical Reason for No Device":
  exists ( from
      ( [DeviceRequest: "Oxygen Therapy (Physical Object)"]
        union [DeviceRequest: "Oxygen Therapy (HCPCS)"]
        union [DeviceRequest: "External Vagus Nerve Stimulation (SNOMEDCT)"]
        union [DeviceRequest: "External Vagus Nerve Stimulation (HCPCS II)"]
        union [DeviceRequest: "External Vagus Nerve Stimulator (UMLS)"] ) DeviceOrderReject,
      [TaskRejected] T
      where DeviceOrderReject.intent in { 'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order' }
        and DeviceOrderReject.status = 'active'
        and T.focus.references ( DeviceOrderReject )
        and T.code ~ QICoreCommon."Fulfill"
        and DeviceOrderReject.authoredOn during day of "Measurement Period"
        and ( T.statusReason in "Patient Declines Treatment for Cluster Headache (SNOMEDCT)"
            or T.statusReason in "Medical Reason For Not Providing Treatment"
        )
      return {
        id: DeviceOrderReject.id,
        requestStatusReason: T.statusReason,
        authoredOn: DeviceOrderReject.authoredOn
      }
  )</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="treatmentprescribedforclusterheadache-has-exceptions-for-not-prescribing-acute-treatment"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> TreatmentPrescribedForClusterHeadache
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Has Exceptions For Not Prescribing Acute Treatment":
  "Has Allergy To Acute Cluster Headache Medication"
    or "Has Adverse Reaction To Acute Cluster Headache Medication"
    or "Has Patient Or Medical Reason No Acute Cluster Headache Treatment Orders Or Procedures"
    or "Patient Or Medical Reason for No Device"</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="treatmentprescribedforclusterheadache-denominator-exceptions-1"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> TreatmentPrescribedForClusterHeadache
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Denominator Exceptions 1":
  "Has Exceptions For Not Prescribing Acute Treatment"</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="treatmentprescribedforclusterheadache-has-cluster-headache-acute-treatment-order-or-procedure"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> TreatmentPrescribedForClusterHeadache
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Has Cluster Headache Acute Treatment Order Or Procedure":
  exists ( [MedicationRequest: medication in "Acute cluster headache medication"] MedicationTx
      where MedicationTx.authoredOn during day of "Measurement Period"
        and MedicationTx.status in { 'active', 'completed' }
  )
    or exists ( ( [ServiceRequest: "Non Invasive Oxygen Therapy by Nasal Cannula or Mask"]
        union [ServiceRequest: "Oxygen Therapy"]
        union [ServiceRequest: "External Vagus Nerve Stimulation (HCPCS II)"]
        union [ServiceRequest: "External Vagus Nerve Stimulator (UMLS)"] ) AcuteTx
        where AcuteTx.authoredOn during day of "Measurement Period"
          and AcuteTx.intent ~ 'order'
          and AcuteTx.status in { 'active', 'completed' }
    )
    or exists ( ( [DeviceRequest: "Oxygen Therapy (Physical Object)"]
        union [DeviceRequest: "Oxygen Therapy (HCPCS)"]
        union [DeviceRequest: "External Vagus Nerve Stimulation (SNOMEDCT)"]
        union [DeviceRequest: "External Vagus Nerve Stimulation (HCPCS II)"]
        union [DeviceRequest: "External Vagus Nerve Stimulator (UMLS)"] ) DeviceOrder
        where DeviceOrder.authoredOn during day of "Measurement Period"
          and DeviceOrder.intent ~ 'order'
          and DeviceOrder.status in { 'active', 'completed' }
          and not exists ( ["TaskRejected"] TaskReject
              where TaskReject.focus.references ( DeviceOrder )
                and TaskReject.code ~ QICoreCommon."Fulfill"
          )
    )
    or exists ( ( [Procedure: "Oxygen Therapy"]
        union [Procedure: "Non Invasive Oxygen Therapy by Nasal Cannula or Mask"]
        union [Procedure: "External Vagus Nerve Stimulation (HCPCS II)"]
        union [Procedure: "External Vagus Nerve Stimulator (UMLS)"] ) AcutePx
        where AcutePx.performed.toInterval ( ) during day of "Measurement Period"
          and AcutePx.status ~ 'completed'
    )</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="treatmentprescribedforclusterheadache-acute-treatment-devices"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> TreatmentPrescribedForClusterHeadache
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Acute Treatment Devices":
  ( [Device: "Oxygen Therapy (Physical Object)"]
      union [Device: "Oxygen Therapy (HCPCS)"]
      union [Device: "External Vagus Nerve Stimulation (SNOMEDCT)"]
      union [Device: "External Vagus Nerve Stimulation (HCPCS II)"]
      union [Device: "External Vagus Nerve Stimulator (UMLS)"]
  )</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="treatmentprescribedforclusterheadache-device-reported"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> TreatmentPrescribedForClusterHeadache
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Device Reported":
  ( [DeviceUseStatement] DeviceInUse
    where DeviceInUse.recordedOn during day of "Measurement Period"
      and DeviceInUse.status ~ 'active' ) DeviceUse
    where exists ( "Acute Treatment Devices" )</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="treatmentprescribedforclusterheadache-has-cluster-headache-acute-treatment-reported"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> TreatmentPrescribedForClusterHeadache
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Has Cluster Headache Acute Treatment Reported":
  exists ( [MedicationStatement: medication in "Acute cluster headache medication"] AcuteMed
      where AcuteMed.status ~ 'active'
        and AcuteMed.dateAsserted during day of "Measurement Period"
  )
    or ( exists "Device Reported" )</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="treatmentprescribedforclusterheadache-has-cluster-headache-acute-treatment-ordered-or-reported"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> TreatmentPrescribedForClusterHeadache
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Has Cluster Headache Acute Treatment Ordered Or Reported":
  ( "Has Cluster Headache Acute Treatment Order Or Procedure"
      or "Has Cluster Headache Acute Treatment Reported"
  )</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="treatmentprescribedforclusterheadache-numerator-1"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> TreatmentPrescribedForClusterHeadache
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Numerator 1":
  "Has Cluster Headache Acute Treatment Ordered Or Reported"</code></pre> 
                  </td> 
               </tr>  
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="treatmentprescribedforclusterheadache-sde-payer"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> TreatmentPrescribedForClusterHeadache
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "SDE Payer":
  SDE."SDE Payer"</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="treatmentprescribedforclusterheadache-has-cluster-headache-preventive-treatment-order-or-procedure"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> TreatmentPrescribedForClusterHeadache
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Has Cluster Headache Preventive Treatment Order Or Procedure":
  exists ( ( [MedicationRequest: medication in "Short term preventive medication for cluster headache"]
      union [MedicationRequest: medication in "Long term preventive medications for cluster headache"] ) MedicationTx
      where MedicationTx.authoredOn during day of "Measurement Period"
        and MedicationTx.status in { 'active', 'completed' }
  )
    or exists ( [ServiceRequest: "Short term preventive treatment for cluster headache"] PreventiveTx
        where PreventiveTx.authoredOn during day of "Measurement Period"
          and PreventiveTx.intent ~ 'order'
          and PreventiveTx.status in { 'active', 'completed' }
    )
    or exists ( [Procedure: "Short term preventive treatment for cluster headache"] PreventivePx
        where PreventivePx.performed.toInterval ( ) starts during day of "Measurement Period"
          and PreventivePx.status = 'completed'
    )</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="treatmentprescribedforclusterheadache-has-cluster-headache-preventive-treatment-reported"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> TreatmentPrescribedForClusterHeadache
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Has Cluster Headache Preventive Treatment Reported":
  exists ( ( [MedicationStatement: medication in "Short term preventive medication for cluster headache"]
      union [MedicationStatement: medication in "Long term preventive medications for cluster headache"] ) PreventiveMed
      where PreventiveMed.status ~ 'active'
        and PreventiveMed.dateAsserted during day of "Measurement Period"
  )
    or exists ( [Procedure: "Short term preventive treatment for cluster headache"] ProcedureTx
        where ProcedureTx.recorded during day of "Measurement Period"
    )</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="treatmentprescribedforclusterheadache-has-cluster-headache-preventive-treatment-ordered-or-reported"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> TreatmentPrescribedForClusterHeadache
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">//Population 2                                                                               


define "Has Cluster Headache Preventive Treatment Ordered Or Reported":
  "Has Cluster Headache Preventive Treatment Order Or Procedure"
    or "Has Cluster Headache Preventive Treatment Reported"</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="treatmentprescribedforclusterheadache-numerator-2"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> TreatmentPrescribedForClusterHeadache
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Numerator 2":
  "Has Cluster Headache Preventive Treatment Ordered Or Reported"</code></pre> 
                  </td> 
               </tr>  
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="treatmentprescribedforclusterheadache-sde-ethnicity"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> TreatmentPrescribedForClusterHeadache
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "SDE Ethnicity":
  SDE."SDE Ethnicity"</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="treatmentprescribedforclusterheadache-has-allergy-to-preventive-cluster-headache-medication"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> TreatmentPrescribedForClusterHeadache
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Has Allergy To Preventive Cluster Headache Medication":
  exists ( ( [AllergyIntolerance: "Ingredient of Long term Preventive Cluster Headache Medication"]
      union [AllergyIntolerance: "Ingredient of Oral Steroid for Preventive Cluster Headache Medications"] ) PreventiveAllergy
      with "Adult Encounters With Diagnosis Of Cluster Headaches" ValidEncounter
        such that start of PreventiveAllergy.onset.toInterval ( ) before or on day of ValidEncounter.period
  )</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="treatmentprescribedforclusterheadache-has-adverse-reaction-to-preventive-cluster-headache-medication"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> TreatmentPrescribedForClusterHeadache
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Has Adverse Reaction To Preventive Cluster Headache Medication":
  exists ( ( [AdverseEvent: "Ingredient of Long term Preventive Cluster Headache Medication"]
      union [AdverseEvent: "Ingredient of Oral Steroid for Preventive Cluster Headache Medications"] ) AdverseEvent
      with "Adult Encounters With Diagnosis Of Cluster Headaches" ValidEncounter
        such that AdverseEvent.recordedDate before or on day of ValidEncounter.period
  )</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="treatmentprescribedforclusterheadache-has-patient-or-medical-reason-no-preventive-cluster-headache-treatment-orders-or-procedures"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> TreatmentPrescribedForClusterHeadache
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Has Patient Or Medical Reason No Preventive Cluster Headache Treatment Orders Or Procedures":
  exists ( ( [MedicationNotRequested: medication in "Short term preventive medication for cluster headache"]
      union [MedicationNotRequested: medication in "Long term preventive medications for cluster headache"] ) NoMedicationTx
      where NoMedicationTx.authoredOn during day of "Measurement Period"
        and ( NoMedicationTx.reasonCode in "Patient Declines Treatment for Cluster Headache (SNOMEDCT)"
            or NoMedicationTx.reasonCode in "Medical Reason For Not Providing Treatment"
        )
        and NoMedicationTx.status = 'completed'
  )
    or exists ( [ServiceNotRequested: "Short term preventive treatment for cluster headache"] NoPreventiveTx
        where NoPreventiveTx.authoredOn during day of "Measurement Period"
          and ( NoPreventiveTx.reasonRefused in "Patient Declines Treatment for Cluster Headache (SNOMEDCT)"
              or NoPreventiveTx.reasonRefused in "Medical Reason For Not Providing Treatment"
          )
          and NoPreventiveTx.status ~ 'completed'
    )
    or exists ( [ProcedureNotDone: "Short term preventive treatment for cluster headache"] NoPreventivePx
        where NoPreventivePx.recorded during day of "Measurement Period"
          and ( NoPreventivePx.statusReason in "Patient Declines Treatment for Cluster Headache (SNOMEDCT)"
              or NoPreventivePx.statusReason in "Medical Reason For Not Providing Treatment"
          )
          and NoPreventivePx.status = 'not-done'
    )</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="treatmentprescribedforclusterheadache-has-exceptions-for-not-prescribing-preventive-treatment"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> TreatmentPrescribedForClusterHeadache
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Has Exceptions For Not Prescribing Preventive Treatment":
  "Has Allergy To Preventive Cluster Headache Medication"
    or "Has Adverse Reaction To Preventive Cluster Headache Medication"
    or "Has Patient Or Medical Reason No Preventive Cluster Headache Treatment Orders Or Procedures"</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="treatmentprescribedforclusterheadache-denominator-exceptions-2"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> TreatmentPrescribedForClusterHeadache
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "Denominator Exceptions 2":
  "Has Exceptions For Not Prescribing Preventive Treatment"</code></pre> 
                  </td> 
               </tr>  
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="treatmentprescribedforclusterheadache-sde-race"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> TreatmentPrescribedForClusterHeadache
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define "SDE Race":
  SDE."SDE Race"</code></pre> 
                  </td> 
               </tr>                      
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="fhirhelpers-tostring"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> FHIRHelpers
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToString(value uri): value.value</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="fhirhelpers-tointerval"> </a> Logic Definition 
                  </th> 
                  <td class="content-container">
                     <em>Library Name:</em> FHIRHelpers
                  </td> 
               </tr> 
               <tr> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
@description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period)
value to a CQL DateTime Interval
@comment: If the start value of the given period is unspecified, the starting
boundary of the resulting interval will be open (meaning the start of the interval
is unknown, as opposed to interpreted as the beginning of time).
*/
define function ToInterval(period FHIR.Period):
    if period is null then
        null
    else
        if period."start" is null then
            Interval(period."start".value, period."end".value]
        else
            Interval[period."start".value, period."end".value]</code></pre> 
                  </td> 
               </tr>   
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="fhirhelpers-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="qicorecommon-prevalenceinterval"> </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 an interval representing the normalized prevalence period of a given Condition.
@comment: Uses the ToInterval and ToAbatementInterval functions to determine the widest potential interval from
onset to abatement as specified in the given Condition. If the condition is active, or has an abatement date the resulting 
interval will have a closed ending boundary. Otherwise, the resulting interval will have an open ending boundary.
*/
define fluent function prevalenceInterval(condition Choice&lt;"ConditionEncounterDiagnosis", "ConditionProblemsHealthConcerns"&gt;):
if condition.clinicalStatus ~ "active"
  or condition.clinicalStatus ~ "recurrence"
  or condition.clinicalStatus ~ "relapse" then
  Interval[start of condition.onset.toInterval(), end of condition.abatementInterval()]
else
    (end of condition.abatementInterval()) abatementDate
    return if abatementDate is null then
      Interval[start of condition.onset.toInterval(), abatementDate)
    else
      Interval[start of condition.onset.toInterval(), abatementDate]</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="qicorecommon-abatementinterval"> </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 an interval representing the normalized abatement of a given Condition.
@comment: If the abatement element of the Condition is represented as a DateTime, the result
is an interval beginning and ending on that DateTime.
If the abatement is represented as a Quantity, the quantity is expected to be a calendar-duration and is interpreted as the age of the patient. The
result is an interval from the date the patient turned that age to immediately before one year later.
If the abatement is represented as a Quantity Interval, the quantities are expected to be calendar-durations and are interpreted as an age range during
which the abatement occurred. The result is an interval from the date the patient turned the starting age of the quantity interval, and ending immediately
before one year later than the date the patient turned the ending age of the quantity interval.
*/
define fluent function abatementInterval(condition Choice&lt;"ConditionEncounterDiagnosis", "ConditionProblemsHealthConcerns"&gt;):
	if condition.abatement is DateTime then
	  Interval[condition.abatement as DateTime, condition.abatement as DateTime]
	else if condition.abatement is Quantity then
		Interval[Patient.birthDate + (condition.abatement as Quantity),
			Patient.birthDate + (condition.abatement as Quantity) + 1 year)
	else if condition.abatement is Interval&lt;Quantity&gt; then
	  Interval[Patient.birthDate + (condition.abatement.low as Quantity),
		  Patient.birthDate + (condition.abatement.high as Quantity) + 1 year)
	else if condition.abatement is Interval&lt;DateTime&gt; then
	  Interval[condition.abatement.low, condition.abatement.high)
	else null as Interval&lt;DateTime&gt;</code></pre> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" rowspan="2" class="row-header">  
                     <a name="qicorecommon-isactive"> </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">/* Candidates for FHIRCommon */

/*
@description: Returns true if the given condition has a clinical status of active, recurrence, or relapse
*/
define fluent function isActive(condition Choice&lt;"ConditionEncounterDiagnosis", "ConditionProblemsHealthConcerns"&gt;):
  condition.clinicalStatus ~ "active"
    or condition.clinicalStatus ~ "recurrence"
    or condition.clinicalStatus ~ "relapse"</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="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 colspan="2" scope="row" class="row-header">
                     <a name="terminology"> </a>Terminology
                  </th> 
               </tr>    
               <tr>  
                  <th scope="row" class="row-header">Code System</th> 
                  <td class="content-container"> 
                     <em>Description</em>: Code system SNOMEDCT  
                     <br></br>    
                     <em>Resource</em>: http://snomed.info/sct 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://snomed.info/sct</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Code System</th> 
                  <td class="content-container"> 
                     <em>Description</em>: Code system ConditionClinicalStatusCodes  
                     <br></br>    
                     <em>Resource</em>: http://terminology.hl7.org/CodeSystem/condition-clinical 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://terminology.hl7.org/CodeSystem/condition-clinical</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Code System</th> 
                  <td class="content-container"> 
                     <em>Description</em>: Code system AllergyIntoleranceClinicalStatusCodes  
                     <br></br>    
                     <em>Resource</em>: http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Code System</th> 
                  <td class="content-container"> 
                     <em>Description</em>: Code system TaskCodeSystem  
                     <br></br>    
                     <em>Resource</em>: http://hl7.org/fhir/CodeSystem/task-code 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://hl7.org/fhir/CodeSystem/task-code</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Office Visit  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.11.1005 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.11.1005</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Online Evaluation and Management Encounters  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.539 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.539</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Telephone Visits All  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1260.161 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1260.161</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Cluster Headache  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.464 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.464</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Ingredient of Acute Cluster Headache Medication  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.271 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.271</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Acute cluster headache medication  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.659 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.659</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Patient Declines Treatment for Cluster Headache (SNOMEDCT)  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.555 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.555</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Medical Reason For Not Providing Treatment  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.473 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.473</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Non Invasive Oxygen Therapy by Nasal Cannula or Mask  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.209 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.209</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Oxygen Therapy  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.550 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.550</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set External Vagus Nerve Stimulation (HCPCS II)  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.668 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.668</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set External Vagus Nerve Stimulator (UMLS)  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.666 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.666</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Oxygen Therapy (Physical Object)  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.665 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.665</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Oxygen Therapy (HCPCS)  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.552 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.552</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set External Vagus Nerve Stimulation (SNOMEDCT)  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.554 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.554</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Payer Type  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Short term preventive medication for cluster headache  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.655 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.655</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Long term preventive medications for cluster headache  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.654 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.654</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Short term preventive treatment for cluster headache  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.661 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.661</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Ingredient of Long term Preventive Cluster Headache Medication  
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.270 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.270</tt> 
                  </td> 
               </tr> 
               <tr>  
                  <th scope="row" class="row-header">Value Set</th>  
                  <td class="content-container"> 
                     <em>Description</em>: Value set Ingredient of Oral Steroid for Preventive Cluster Headache Medications 
                     <br></br>    
                     <em>Resource</em>: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.272 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.272</tt> 
                  </td> 
               </tr>  
               <tr> 
                  <th scope="row" class="row-header">Direct Reference Code</th> 
                  <td class="content-container"> 
                     <em>Display</em>: Male (finding) 
                     <br></br> 
                     <em>Code</em>: 248153007 
                     <br></br> 
                     <em>System</em>: 
                     <tt>http://snomed.info/sct</tt> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Direct Reference Code</th> 
                  <td class="content-container"> 
                     <em>Display</em>: Female (finding) 
                     <br></br> 
                     <em>Code</em>: 248152002 
                     <br></br> 
                     <em>System</em>: 
                     <tt>http://snomed.info/sct</tt> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Direct Reference Code</th> 
                  <td class="content-container"> 
                     <em>Display</em>: Active 
                     <br></br> 
                     <em>Code</em>: active 
                     <br></br> 
                     <em>System</em>: 
                     <tt>http://terminology.hl7.org/CodeSystem/condition-clinical</tt> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Direct Reference Code</th> 
                  <td class="content-container"> 
                     <em>Display</em>: Recurrence 
                     <br></br> 
                     <em>Code</em>: recurrence 
                     <br></br> 
                     <em>System</em>: 
                     <tt>http://terminology.hl7.org/CodeSystem/condition-clinical</tt> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Direct Reference Code</th> 
                  <td class="content-container"> 
                     <em>Display</em>: Relapse 
                     <br></br> 
                     <em>Code</em>: relapse 
                     <br></br> 
                     <em>System</em>: 
                     <tt>http://terminology.hl7.org/CodeSystem/condition-clinical</tt> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Direct Reference Code</th> 
                  <td class="content-container"> 
                     <em>Display</em>: Active 
                     <br></br> 
                     <em>Code</em>: active 
                     <br></br> 
                     <em>System</em>: 
                     <tt>http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical</tt> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Direct Reference Code</th> 
                  <td class="content-container"> 
                     <em>Display</em>: Fulfill 
                     <br></br> 
                     <em>Code</em>: fulfill 
                     <br></br> 
                     <em>System</em>: 
                     <tt>http://hl7.org/fhir/CodeSystem/task-code</tt> 
                  </td> 
               </tr>  
               <tr> 
                  <th colspan="2" scope="row" class="row-header">
                     <a name="dependencies"> </a>Dependencies
                  </th> 
               </tr>  
               <tr> 
                  <th scope="row" class="row-header">Dependency</th> 
                  <td class="content-container"> 
                     <em>Description</em>: QICore model information  
                     <br></br>    
                     <em>Resource</em>: http://hl7.org/fhir/Library/QICore-ModelInfo 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>http://hl7.org/fhir/Library/QICore-ModelInfo</tt> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Dependency</th> 
                  <td class="content-container"> 
                     <em>Description</em>: Library SDE  
                     <br></br>    
                     <em>Resource</em>: https://madie.cms.gov/Library/SupplementalDataElements|5.1.000 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>https://madie.cms.gov/Library/SupplementalDataElements|5.1.000</tt> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Dependency</th> 
                  <td class="content-container"> 
                     <em>Description</em>: Library FHIRHelpers  
                     <br></br>    
                     <em>Resource</em>: https://madie.cms.gov/Library/FHIRHelpers|4.4.000 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>https://madie.cms.gov/Library/FHIRHelpers|4.4.000</tt> 
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Dependency</th> 
                  <td class="content-container"> 
                     <em>Description</em>: Library QICoreCommon  
                     <br></br>    
                     <em>Resource</em>: https://madie.cms.gov/Library/QICoreCommon|4.0.000 
                     <br></br> 
                     <em>Canonical URL</em>: 
                     <tt>https://madie.cms.gov/Library/QICoreCommon|4.0.000</tt> 
                  </td> 
               </tr>               
               <tr> 
                  <th colspan="2" scope="row" class="row-header">
                     <a name="data-requirements"> </a>Data Requirements
                  </th> 
               </tr>  
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Patient 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient 
                     <br></br>   
                     <em>Must Support Elements</em>: extension, birthDate, birthDate.value, url 
                     <br></br>  
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Encounter 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter 
                     <br></br>   
                     <em>Must Support Elements</em>: type, period, status, status.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: type
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.11.1005 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Encounter 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter 
                     <br></br>   
                     <em>Must Support Elements</em>: type, period, status, status.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: type
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.539 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Encounter 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter 
                     <br></br>   
                     <em>Must Support Elements</em>: type, period, status, status.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: type
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1260.161 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Condition 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-problems-health-concerns 
                     <br></br>   
                     <em>Must Support Elements</em>: code 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.464 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: AllergyIntolerance 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-allergyintolerance 
                     <br></br>   
                     <em>Must Support Elements</em>: code, onset, clinicalStatus 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.271 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: AllergyIntolerance 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-allergyintolerance 
                     <br></br>   
                     <em>Must Support Elements</em>: code, onset 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.270 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: AllergyIntolerance 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-allergyintolerance 
                     <br></br>   
                     <em>Must Support Elements</em>: code, onset 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.272 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: AdverseEvent 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-adverseevent 
                     <br></br>   
                     <em>Must Support Elements</em>: event, recordedDate, recordedDate.value, actuality, actuality.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: event
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.271 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: AdverseEvent 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-adverseevent 
                     <br></br>   
                     <em>Must Support Elements</em>: event, recordedDate, recordedDate.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: event
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.270 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: AdverseEvent 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-adverseevent 
                     <br></br>   
                     <em>Must Support Elements</em>: event, recordedDate, recordedDate.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: event
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.272 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: MedicationRequest 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationnotrequested 
                     <br></br>   
                     <em>Must Support Elements</em>: medication, authoredOn, authoredOn.value, reasonCode, status, status.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: medication
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.659 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: MedicationRequest 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationnotrequested 
                     <br></br>   
                     <em>Must Support Elements</em>: medication, authoredOn, authoredOn.value, reasonCode, status, status.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: medication
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.655 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: MedicationRequest 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationnotrequested 
                     <br></br>   
                     <em>Must Support Elements</em>: medication, authoredOn, authoredOn.value, reasonCode, status, status.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: medication
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.654 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: ServiceRequest 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested 
                     <br></br>   
                     <em>Must Support Elements</em>: code, authoredOn, authoredOn.value, extension, reasonCode, status, status.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.209 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: ServiceRequest 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested 
                     <br></br>   
                     <em>Must Support Elements</em>: code, authoredOn, authoredOn.value, extension, reasonCode, status, status.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.550 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: ServiceRequest 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested 
                     <br></br>   
                     <em>Must Support Elements</em>: code, authoredOn, authoredOn.value, extension, reasonCode, status, status.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.668 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: ServiceRequest 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested 
                     <br></br>   
                     <em>Must Support Elements</em>: code, authoredOn, authoredOn.value, extension, reasonCode, status, status.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.666 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: ServiceRequest 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested 
                     <br></br>   
                     <em>Must Support Elements</em>: code, authoredOn, authoredOn.value, extension, reasonCode, status, status.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.661 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Procedure 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedurenotdone 
                     <br></br>   
                     <em>Must Support Elements</em>: code, extension, statusReason, status, status.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.550 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Procedure 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedurenotdone 
                     <br></br>   
                     <em>Must Support Elements</em>: code, extension, statusReason, status, status.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.209 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Procedure 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedurenotdone 
                     <br></br>   
                     <em>Must Support Elements</em>: code, extension, statusReason, status, status.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.661 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Resource 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/StructureDefinition/Resource 
                     <br></br>   
                     <em>Must Support Elements</em>: id, id.value 
                     <br></br>  
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: DeviceRequest 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicerequest 
                     <br></br>   
                     <em>Must Support Elements</em>: code, intent, intent.value, status, status.value, authoredOn, authoredOn.value, id, id.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.665 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: DeviceRequest 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicerequest 
                     <br></br>   
                     <em>Must Support Elements</em>: code, intent, intent.value, status, status.value, authoredOn, authoredOn.value, id, id.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.552 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: DeviceRequest 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicerequest 
                     <br></br>   
                     <em>Must Support Elements</em>: code, intent, intent.value, status, status.value, authoredOn, authoredOn.value, id, id.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.554 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: DeviceRequest 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicerequest 
                     <br></br>   
                     <em>Must Support Elements</em>: code, intent, intent.value, status, status.value, authoredOn, authoredOn.value, id, id.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.668 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: DeviceRequest 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicerequest 
                     <br></br>   
                     <em>Must Support Elements</em>: code, intent, intent.value, status, status.value, authoredOn, authoredOn.value, id, id.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.666 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Task 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-taskrejected 
                     <br></br>   
                     <em>Must Support Elements</em>: focus, code, statusReason 
                     <br></br>  
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: MedicationRequest 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest 
                     <br></br>   
                     <em>Must Support Elements</em>: medication, authoredOn, authoredOn.value, status, status.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: medication
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.659 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: MedicationRequest 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest 
                     <br></br>   
                     <em>Must Support Elements</em>: medication, authoredOn, authoredOn.value, status, status.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: medication
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.655 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: MedicationRequest 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest 
                     <br></br>   
                     <em>Must Support Elements</em>: medication, authoredOn, authoredOn.value, status, status.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: medication
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.654 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: ServiceRequest 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest 
                     <br></br>   
                     <em>Must Support Elements</em>: code, authoredOn, authoredOn.value, intent, intent.value, status, status.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.209 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: ServiceRequest 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest 
                     <br></br>   
                     <em>Must Support Elements</em>: code, authoredOn, authoredOn.value, intent, intent.value, status, status.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.550 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: ServiceRequest 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest 
                     <br></br>   
                     <em>Must Support Elements</em>: code, authoredOn, authoredOn.value, intent, intent.value, status, status.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.668 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: ServiceRequest 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest 
                     <br></br>   
                     <em>Must Support Elements</em>: code, authoredOn, authoredOn.value, intent, intent.value, status, status.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.666 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: ServiceRequest 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest 
                     <br></br>   
                     <em>Must Support Elements</em>: code, authoredOn, authoredOn.value, intent, intent.value, status, status.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.661 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Procedure 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure 
                     <br></br>   
                     <em>Must Support Elements</em>: code, performed, status, status.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.550 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Procedure 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure 
                     <br></br>   
                     <em>Must Support Elements</em>: code, performed, status, status.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.209 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Procedure 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure 
                     <br></br>   
                     <em>Must Support Elements</em>: code, performed, status, status.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.668 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Procedure 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure 
                     <br></br>   
                     <em>Must Support Elements</em>: code, performed, status, status.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.666 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Procedure 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure 
                     <br></br>   
                     <em>Must Support Elements</em>: code, performed, status, status.value, extension 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: code
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.661 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Device 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-device 
                     <br></br>   
                     <em>Must Support Elements</em>: type 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: type
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.665 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Device 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-device 
                     <br></br>   
                     <em>Must Support Elements</em>: type 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: type
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.552 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Device 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-device 
                     <br></br>   
                     <em>Must Support Elements</em>: type 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: type
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.554 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Device 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-device 
                     <br></br>   
                     <em>Must Support Elements</em>: type 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: type
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.668 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Device 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-device 
                     <br></br>   
                     <em>Must Support Elements</em>: type 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: type
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.666 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-deviceusestatement 
                     <br></br>   
                     <em>Must Support Elements</em>: recordedOn, recordedOn.value, status, status.value 
                     <br></br>  
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: MedicationStatement 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationstatement 
                     <br></br>   
                     <em>Must Support Elements</em>: medication, status, status.value, dateAsserted, dateAsserted.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: medication
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.659 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: MedicationStatement 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationstatement 
                     <br></br>   
                     <em>Must Support Elements</em>: medication, status, status.value, dateAsserted, dateAsserted.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: medication
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.655 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: MedicationStatement 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationstatement 
                     <br></br>   
                     <em>Must Support Elements</em>: medication, status, status.value, dateAsserted, dateAsserted.value 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: medication
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.654 
                     <br></br>   
                  </td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Data Requirement</th> 
                  <td class="content-container"> 
                     <em>Type</em>: Coverage 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage 
                     <br></br>   
                     <em>Must Support Elements</em>: type, period 
                     <br></br>  
                     <em>Code Filter(s)</em>: 
                     <br></br>  
                     <span class="tab-one">
                        <em>Path</em>: type
                     </span> 
                     <br></br>  
                     <span class="tab-one">
                        <em>ValueSet</em>:
                     </span> http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591 
                     <br></br>   
                  </td> 
               </tr>  
               <tr> 
                  <th colspan="2" scope="row" class="row-header">Generated using version 0.4.8 of the sample-content-ig Liquid templates</th> 
               </tr> 
            </tbody> 
         </table> 
      </div>
   </text>
   <contained>
      <Library xmlns="http://hl7.org/fhir">
         <id value="effective-data-requirements"></id>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
               <system value="http://snomed.info/sct"></system>
               <code value="248153007"></code>
               <display value="Male (finding)"></display>
            </valueCoding>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
               <system value="http://snomed.info/sct"></system>
               <code value="248152002"></code>
               <display value="Female (finding)"></display>
            </valueCoding>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
               <system value="http://terminology.hl7.org/CodeSystem/condition-clinical"></system>
               <code value="active"></code>
               <display value="Active"></display>
            </valueCoding>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
               <system value="http://terminology.hl7.org/CodeSystem/condition-clinical"></system>
               <code value="recurrence"></code>
               <display value="Recurrence"></display>
            </valueCoding>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
               <system value="http://terminology.hl7.org/CodeSystem/condition-clinical"></system>
               <code value="relapse"></code>
               <display value="Relapse"></display>
            </valueCoding>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
               <system value="http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical"></system>
               <code value="active"></code>
               <display value="Active"></display>
            </valueCoding>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode">
            <valueCoding>
               <system value="http://hl7.org/fhir/CodeSystem/task-code"></system>
               <code value="fulfill"></code>
               <display value="Fulfill"></display>
            </valueCoding>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="SupplementalDataElements"></valueString>
            </extension>
            <extension url="name">
               <valueString value="SDE Sex"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;SDE Sex&quot;:
  case
    when Patient.sex = '248153007' then &quot;Male (finding)&quot;
    when Patient.sex = '248152002' then &quot;Female (finding)&quot;
    else null
  end"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="0"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="TreatmentPrescribedForClusterHeadache"></valueString>
            </extension>
            <extension url="name">
               <valueString value="SDE Sex"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;SDE Sex&quot;:
  SDE.&quot;SDE Sex&quot;"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="1"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="TreatmentPrescribedForClusterHeadache"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Adult Encounters With Diagnosis Of Cluster Headaches"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="//Population 1 


define &quot;Adult Encounters With Diagnosis Of Cluster Headaches&quot;:
  ( ( [Encounter: &quot;Office Visit&quot;]
      union [Encounter: &quot;Online Evaluation and Management Encounters&quot;]
      union [Encounter: &quot;Telephone Visits All&quot;] ) QualifyingEncounter
      with [ConditionProblemsHealthConcerns: &quot;Cluster Headache&quot;] ClusterHA
        such that &quot;AgeInYearsAt&quot;(date from start of &quot;Measurement Period&quot;) &gt;= 18
          and QualifyingEncounter.period during day of &quot;Measurement Period&quot;
          and ClusterHA.prevalenceInterval ( ) starts before or on day of QualifyingEncounter.period
          and QualifyingEncounter.status = 'finished'
          and ClusterHA.isActive ( )
  )"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="2"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="TreatmentPrescribedForClusterHeadache"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Initial Population"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Initial Population&quot;:
  exists ( &quot;Adult Encounters With Diagnosis Of Cluster Headaches&quot; )"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="3"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="TreatmentPrescribedForClusterHeadache"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Denominator"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Denominator&quot;:
  &quot;Initial Population&quot;"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="4"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="TreatmentPrescribedForClusterHeadache"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Has Allergy To Acute Cluster Headache Medication"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Has Allergy To Acute Cluster Headache Medication&quot;:
  exists ( [AllergyIntolerance: &quot;Ingredient of Acute Cluster Headache Medication&quot;] AcuteAllergy
      with &quot;Adult Encounters With Diagnosis Of Cluster Headaches&quot; ValidEncounter
        such that start of AcuteAllergy.onset.toInterval ( ) before or on day of ValidEncounter.period
          or AcuteAllergy.clinicalStatus ~ QICoreCommon.&quot;allergy-active&quot;
  )"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="5"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="TreatmentPrescribedForClusterHeadache"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Has Adverse Reaction To Acute Cluster Headache Medication"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Has Adverse Reaction To Acute Cluster Headache Medication&quot;:
  exists ( [AdverseEvent: &quot;Ingredient of Acute Cluster Headache Medication&quot;] AdverseEvent
      with &quot;Adult Encounters With Diagnosis Of Cluster Headaches&quot; ValidEncounter
        such that AdverseEvent.recordedDate before or on day of ValidEncounter.period
          and AdverseEvent.actuality ~ 'actual'
  )"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="6"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="TreatmentPrescribedForClusterHeadache"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Has Patient Or Medical Reason No Acute Cluster Headache Treatment Orders Or Procedures"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Has Patient Or Medical Reason No Acute Cluster Headache Treatment Orders Or Procedures&quot;:
  exists ( [MedicationNotRequested: medication in &quot;Acute cluster headache medication&quot;] NoMedicationTx
      where NoMedicationTx.authoredOn during day of &quot;Measurement Period&quot;
        and ( NoMedicationTx.reasonCode in &quot;Patient Declines Treatment for Cluster Headache (SNOMEDCT)&quot;
            or NoMedicationTx.reasonCode in &quot;Medical Reason For Not Providing Treatment&quot;
        )
        and NoMedicationTx.status ~ 'completed'
  )
    or exists ( ( [ServiceNotRequested: &quot;Non Invasive Oxygen Therapy by Nasal Cannula or Mask&quot;]
        union [ServiceNotRequested: &quot;Oxygen Therapy&quot;]
        union [ServiceNotRequested: &quot;External Vagus Nerve Stimulation (HCPCS II)&quot;]
        union [ServiceNotRequested: &quot;External Vagus Nerve Stimulator (UMLS)&quot;] ) NoAcuteTx
        where NoAcuteTx.authoredOn during day of &quot;Measurement Period&quot;
          and ( NoAcuteTx.reasonRefused in &quot;Patient Declines Treatment for Cluster Headache (SNOMEDCT)&quot;
              or NoAcuteTx.reasonCode in &quot;Medical Reason For Not Providing Treatment&quot;
          )
          and NoAcuteTx.status ~ 'completed'
    )
    or exists ( ( [ProcedureNotDone: &quot;Oxygen Therapy&quot;]
        union [ProcedureNotDone: &quot;Non Invasive Oxygen Therapy by Nasal Cannula or Mask&quot;] ) NoAcutePx
        where NoAcutePx.recorded during day of &quot;Measurement Period&quot;
          and ( NoAcutePx.statusReason in &quot;Patient Declines Treatment for Cluster Headache (SNOMEDCT)&quot;
              or NoAcutePx.statusReason in &quot;Medical Reason For Not Providing Treatment&quot;
          )
          and NoAcutePx.status ~ 'not-done'
    )"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="7"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="TreatmentPrescribedForClusterHeadache"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Patient Or Medical Reason for No Device"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Patient Or Medical Reason for No Device&quot;:
  exists ( from
      ( [DeviceRequest: &quot;Oxygen Therapy (Physical Object)&quot;]
        union [DeviceRequest: &quot;Oxygen Therapy (HCPCS)&quot;]
        union [DeviceRequest: &quot;External Vagus Nerve Stimulation (SNOMEDCT)&quot;]
        union [DeviceRequest: &quot;External Vagus Nerve Stimulation (HCPCS II)&quot;]
        union [DeviceRequest: &quot;External Vagus Nerve Stimulator (UMLS)&quot;] ) DeviceOrderReject,
      [TaskRejected] T
      where DeviceOrderReject.intent in { 'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order' }
        and DeviceOrderReject.status = 'active'
        and T.focus.references ( DeviceOrderReject )
        and T.code ~ QICoreCommon.&quot;Fulfill&quot;
        and DeviceOrderReject.authoredOn during day of &quot;Measurement Period&quot;
        and ( T.statusReason in &quot;Patient Declines Treatment for Cluster Headache (SNOMEDCT)&quot;
            or T.statusReason in &quot;Medical Reason For Not Providing Treatment&quot;
        )
      return {
        id: DeviceOrderReject.id,
        requestStatusReason: T.statusReason,
        authoredOn: DeviceOrderReject.authoredOn
      }
  )"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="8"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="TreatmentPrescribedForClusterHeadache"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Has Exceptions For Not Prescribing Acute Treatment"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Has Exceptions For Not Prescribing Acute Treatment&quot;:
  &quot;Has Allergy To Acute Cluster Headache Medication&quot;
    or &quot;Has Adverse Reaction To Acute Cluster Headache Medication&quot;
    or &quot;Has Patient Or Medical Reason No Acute Cluster Headache Treatment Orders Or Procedures&quot;
    or &quot;Patient Or Medical Reason for No Device&quot;"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="9"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="TreatmentPrescribedForClusterHeadache"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Denominator Exceptions 1"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Denominator Exceptions 1&quot;:
  &quot;Has Exceptions For Not Prescribing Acute Treatment&quot;"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="10"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="TreatmentPrescribedForClusterHeadache"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Has Cluster Headache Acute Treatment Order Or Procedure"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Has Cluster Headache Acute Treatment Order Or Procedure&quot;:
  exists ( [MedicationRequest: medication in &quot;Acute cluster headache medication&quot;] MedicationTx
      where MedicationTx.authoredOn during day of &quot;Measurement Period&quot;
        and MedicationTx.status in { 'active', 'completed' }
  )
    or exists ( ( [ServiceRequest: &quot;Non Invasive Oxygen Therapy by Nasal Cannula or Mask&quot;]
        union [ServiceRequest: &quot;Oxygen Therapy&quot;]
        union [ServiceRequest: &quot;External Vagus Nerve Stimulation (HCPCS II)&quot;]
        union [ServiceRequest: &quot;External Vagus Nerve Stimulator (UMLS)&quot;] ) AcuteTx
        where AcuteTx.authoredOn during day of &quot;Measurement Period&quot;
          and AcuteTx.intent ~ 'order'
          and AcuteTx.status in { 'active', 'completed' }
    )
    or exists ( ( [DeviceRequest: &quot;Oxygen Therapy (Physical Object)&quot;]
        union [DeviceRequest: &quot;Oxygen Therapy (HCPCS)&quot;]
        union [DeviceRequest: &quot;External Vagus Nerve Stimulation (SNOMEDCT)&quot;]
        union [DeviceRequest: &quot;External Vagus Nerve Stimulation (HCPCS II)&quot;]
        union [DeviceRequest: &quot;External Vagus Nerve Stimulator (UMLS)&quot;] ) DeviceOrder
        where DeviceOrder.authoredOn during day of &quot;Measurement Period&quot;
          and DeviceOrder.intent ~ 'order'
          and DeviceOrder.status in { 'active', 'completed' }
          and not exists ( [&quot;TaskRejected&quot;] TaskReject
              where TaskReject.focus.references ( DeviceOrder )
                and TaskReject.code ~ QICoreCommon.&quot;Fulfill&quot;
          )
    )
    or exists ( ( [Procedure: &quot;Oxygen Therapy&quot;]
        union [Procedure: &quot;Non Invasive Oxygen Therapy by Nasal Cannula or Mask&quot;]
        union [Procedure: &quot;External Vagus Nerve Stimulation (HCPCS II)&quot;]
        union [Procedure: &quot;External Vagus Nerve Stimulator (UMLS)&quot;] ) AcutePx
        where AcutePx.performed.toInterval ( ) during day of &quot;Measurement Period&quot;
          and AcutePx.status ~ 'completed'
    )"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="11"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="TreatmentPrescribedForClusterHeadache"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Acute Treatment Devices"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Acute Treatment Devices&quot;:
  ( [Device: &quot;Oxygen Therapy (Physical Object)&quot;]
      union [Device: &quot;Oxygen Therapy (HCPCS)&quot;]
      union [Device: &quot;External Vagus Nerve Stimulation (SNOMEDCT)&quot;]
      union [Device: &quot;External Vagus Nerve Stimulation (HCPCS II)&quot;]
      union [Device: &quot;External Vagus Nerve Stimulator (UMLS)&quot;]
  )"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="12"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="TreatmentPrescribedForClusterHeadache"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Device Reported"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Device Reported&quot;:
  ( [DeviceUseStatement] DeviceInUse
    where DeviceInUse.recordedOn during day of &quot;Measurement Period&quot;
      and DeviceInUse.status ~ 'active' ) DeviceUse
    where exists ( &quot;Acute Treatment Devices&quot; )"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="13"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="TreatmentPrescribedForClusterHeadache"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Has Cluster Headache Acute Treatment Reported"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Has Cluster Headache Acute Treatment Reported&quot;:
  exists ( [MedicationStatement: medication in &quot;Acute cluster headache medication&quot;] AcuteMed
      where AcuteMed.status ~ 'active'
        and AcuteMed.dateAsserted during day of &quot;Measurement Period&quot;
  )
    or ( exists &quot;Device Reported&quot; )"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="14"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="TreatmentPrescribedForClusterHeadache"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Has Cluster Headache Acute Treatment Ordered Or Reported"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Has Cluster Headache Acute Treatment Ordered Or Reported&quot;:
  ( &quot;Has Cluster Headache Acute Treatment Order Or Procedure&quot;
      or &quot;Has Cluster Headache Acute Treatment Reported&quot;
  )"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="15"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="TreatmentPrescribedForClusterHeadache"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Numerator 1"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Numerator 1&quot;:
  &quot;Has Cluster Headache Acute Treatment Ordered Or Reported&quot;"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="16"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="SupplementalDataElements"></valueString>
            </extension>
            <extension url="name">
               <valueString value="SDE Payer"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;SDE Payer&quot;:
  [Coverage: type in &quot;Payer Type&quot;] Payer
    return {
      code: Payer.type,
      period: Payer.period
    }"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="17"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="TreatmentPrescribedForClusterHeadache"></valueString>
            </extension>
            <extension url="name">
               <valueString value="SDE Payer"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;SDE Payer&quot;:
  SDE.&quot;SDE Payer&quot;"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="18"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="TreatmentPrescribedForClusterHeadache"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Has Cluster Headache Preventive Treatment Order Or Procedure"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Has Cluster Headache Preventive Treatment Order Or Procedure&quot;:
  exists ( ( [MedicationRequest: medication in &quot;Short term preventive medication for cluster headache&quot;]
      union [MedicationRequest: medication in &quot;Long term preventive medications for cluster headache&quot;] ) MedicationTx
      where MedicationTx.authoredOn during day of &quot;Measurement Period&quot;
        and MedicationTx.status in { 'active', 'completed' }
  )
    or exists ( [ServiceRequest: &quot;Short term preventive treatment for cluster headache&quot;] PreventiveTx
        where PreventiveTx.authoredOn during day of &quot;Measurement Period&quot;
          and PreventiveTx.intent ~ 'order'
          and PreventiveTx.status in { 'active', 'completed' }
    )
    or exists ( [Procedure: &quot;Short term preventive treatment for cluster headache&quot;] PreventivePx
        where PreventivePx.performed.toInterval ( ) starts during day of &quot;Measurement Period&quot;
          and PreventivePx.status = 'completed'
    )"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="19"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="TreatmentPrescribedForClusterHeadache"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Has Cluster Headache Preventive Treatment Reported"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Has Cluster Headache Preventive Treatment Reported&quot;:
  exists ( ( [MedicationStatement: medication in &quot;Short term preventive medication for cluster headache&quot;]
      union [MedicationStatement: medication in &quot;Long term preventive medications for cluster headache&quot;] ) PreventiveMed
      where PreventiveMed.status ~ 'active'
        and PreventiveMed.dateAsserted during day of &quot;Measurement Period&quot;
  )
    or exists ( [Procedure: &quot;Short term preventive treatment for cluster headache&quot;] ProcedureTx
        where ProcedureTx.recorded during day of &quot;Measurement Period&quot;
    )"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="20"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="TreatmentPrescribedForClusterHeadache"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Has Cluster Headache Preventive Treatment Ordered Or Reported"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="//Population 2                                                                               


define &quot;Has Cluster Headache Preventive Treatment Ordered Or Reported&quot;:
  &quot;Has Cluster Headache Preventive Treatment Order Or Procedure&quot;
    or &quot;Has Cluster Headache Preventive Treatment Reported&quot;"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="21"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="TreatmentPrescribedForClusterHeadache"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Numerator 2"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Numerator 2&quot;:
  &quot;Has Cluster Headache Preventive Treatment Ordered Or Reported&quot;"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="22"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="SupplementalDataElements"></valueString>
            </extension>
            <extension url="name">
               <valueString value="SDE Ethnicity"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;SDE Ethnicity&quot;:
  Patient.ethnicity E
    return Tuple {
      codes: { E.ombCategory } union E.detailed,
      display: E.text
    }"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="23"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="TreatmentPrescribedForClusterHeadache"></valueString>
            </extension>
            <extension url="name">
               <valueString value="SDE Ethnicity"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;SDE Ethnicity&quot;:
  SDE.&quot;SDE Ethnicity&quot;"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="24"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="TreatmentPrescribedForClusterHeadache"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Has Allergy To Preventive Cluster Headache Medication"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Has Allergy To Preventive Cluster Headache Medication&quot;:
  exists ( ( [AllergyIntolerance: &quot;Ingredient of Long term Preventive Cluster Headache Medication&quot;]
      union [AllergyIntolerance: &quot;Ingredient of Oral Steroid for Preventive Cluster Headache Medications&quot;] ) PreventiveAllergy
      with &quot;Adult Encounters With Diagnosis Of Cluster Headaches&quot; ValidEncounter
        such that start of PreventiveAllergy.onset.toInterval ( ) before or on day of ValidEncounter.period
  )"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="25"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="TreatmentPrescribedForClusterHeadache"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Has Adverse Reaction To Preventive Cluster Headache Medication"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Has Adverse Reaction To Preventive Cluster Headache Medication&quot;:
  exists ( ( [AdverseEvent: &quot;Ingredient of Long term Preventive Cluster Headache Medication&quot;]
      union [AdverseEvent: &quot;Ingredient of Oral Steroid for Preventive Cluster Headache Medications&quot;] ) AdverseEvent
      with &quot;Adult Encounters With Diagnosis Of Cluster Headaches&quot; ValidEncounter
        such that AdverseEvent.recordedDate before or on day of ValidEncounter.period
  )"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="26"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="TreatmentPrescribedForClusterHeadache"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Has Patient Or Medical Reason No Preventive Cluster Headache Treatment Orders Or Procedures"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Has Patient Or Medical Reason No Preventive Cluster Headache Treatment Orders Or Procedures&quot;:
  exists ( ( [MedicationNotRequested: medication in &quot;Short term preventive medication for cluster headache&quot;]
      union [MedicationNotRequested: medication in &quot;Long term preventive medications for cluster headache&quot;] ) NoMedicationTx
      where NoMedicationTx.authoredOn during day of &quot;Measurement Period&quot;
        and ( NoMedicationTx.reasonCode in &quot;Patient Declines Treatment for Cluster Headache (SNOMEDCT)&quot;
            or NoMedicationTx.reasonCode in &quot;Medical Reason For Not Providing Treatment&quot;
        )
        and NoMedicationTx.status = 'completed'
  )
    or exists ( [ServiceNotRequested: &quot;Short term preventive treatment for cluster headache&quot;] NoPreventiveTx
        where NoPreventiveTx.authoredOn during day of &quot;Measurement Period&quot;
          and ( NoPreventiveTx.reasonRefused in &quot;Patient Declines Treatment for Cluster Headache (SNOMEDCT)&quot;
              or NoPreventiveTx.reasonRefused in &quot;Medical Reason For Not Providing Treatment&quot;
          )
          and NoPreventiveTx.status ~ 'completed'
    )
    or exists ( [ProcedureNotDone: &quot;Short term preventive treatment for cluster headache&quot;] NoPreventivePx
        where NoPreventivePx.recorded during day of &quot;Measurement Period&quot;
          and ( NoPreventivePx.statusReason in &quot;Patient Declines Treatment for Cluster Headache (SNOMEDCT)&quot;
              or NoPreventivePx.statusReason in &quot;Medical Reason For Not Providing Treatment&quot;
          )
          and NoPreventivePx.status = 'not-done'
    )"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="27"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="TreatmentPrescribedForClusterHeadache"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Has Exceptions For Not Prescribing Preventive Treatment"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Has Exceptions For Not Prescribing Preventive Treatment&quot;:
  &quot;Has Allergy To Preventive Cluster Headache Medication&quot;
    or &quot;Has Adverse Reaction To Preventive Cluster Headache Medication&quot;
    or &quot;Has Patient Or Medical Reason No Preventive Cluster Headache Treatment Orders Or Procedures&quot;"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="28"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="TreatmentPrescribedForClusterHeadache"></valueString>
            </extension>
            <extension url="name">
               <valueString value="Denominator Exceptions 2"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;Denominator Exceptions 2&quot;:
  &quot;Has Exceptions For Not Prescribing Preventive Treatment&quot;"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="29"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="SupplementalDataElements"></valueString>
            </extension>
            <extension url="name">
               <valueString value="SDE Race"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;SDE Race&quot;:
  Patient.race R
    return Tuple {
      codes: R.ombCategory union R.detailed,
      display: R.text
    }"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="30"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="TreatmentPrescribedForClusterHeadache"></valueString>
            </extension>
            <extension url="name">
               <valueString value="SDE Race"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define &quot;SDE Race&quot;:
  SDE.&quot;SDE Race&quot;"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="31"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="FHIRHelpers"></valueString>
            </extension>
            <extension url="name">
               <valueString value="ToString"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="define function ToString(value uri): value.value"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="32"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="FHIRHelpers"></valueString>
            </extension>
            <extension url="name">
               <valueString value="ToInterval"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="/*
@description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period)
value to a CQL DateTime Interval
@comment: If the start value of the given period is unspecified, the starting
boundary of the resulting interval will be open (meaning the start of the interval
is unknown, as opposed to interpreted as the beginning of time).
*/
define function ToInterval(period FHIR.Period):
    if period is null then
        null
    else
        if period.&quot;start&quot; is null then
            Interval(period.&quot;start&quot;.value, period.&quot;end&quot;.value]
        else
            Interval[period.&quot;start&quot;.value, period.&quot;end&quot;.value]"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="33"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="QICoreCommon"></valueString>
            </extension>
            <extension url="name">
               <valueString value="prevalenceInterval"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="/*
@description: Returns an interval representing the normalized prevalence period of a given Condition.
@comment: Uses the ToInterval and ToAbatementInterval functions to determine the widest potential interval from
onset to abatement as specified in the given Condition. If the condition is active, or has an abatement date the resulting 
interval will have a closed ending boundary. Otherwise, the resulting interval will have an open ending boundary.
*/
define fluent function prevalenceInterval(condition Choice&lt;&quot;ConditionEncounterDiagnosis&quot;, &quot;ConditionProblemsHealthConcerns&quot;&gt;):
if condition.clinicalStatus ~ &quot;active&quot;
  or condition.clinicalStatus ~ &quot;recurrence&quot;
  or condition.clinicalStatus ~ &quot;relapse&quot; then
  Interval[start of condition.onset.toInterval(), end of condition.abatementInterval()]
else
    (end of condition.abatementInterval()) abatementDate
    return if abatementDate is null then
      Interval[start of condition.onset.toInterval(), abatementDate)
    else
      Interval[start of condition.onset.toInterval(), abatementDate]"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="34"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="QICoreCommon"></valueString>
            </extension>
            <extension url="name">
               <valueString value="abatementInterval"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="/*
@description: Returns an interval representing the normalized abatement of a given Condition.
@comment: If the abatement element of the Condition is represented as a DateTime, the result
is an interval beginning and ending on that DateTime.
If the abatement is represented as a Quantity, the quantity is expected to be a calendar-duration and is interpreted as the age of the patient. The
result is an interval from the date the patient turned that age to immediately before one year later.
If the abatement is represented as a Quantity Interval, the quantities are expected to be calendar-durations and are interpreted as an age range during
which the abatement occurred. The result is an interval from the date the patient turned the starting age of the quantity interval, and ending immediately
before one year later than the date the patient turned the ending age of the quantity interval.
*/
define fluent function abatementInterval(condition Choice&lt;&quot;ConditionEncounterDiagnosis&quot;, &quot;ConditionProblemsHealthConcerns&quot;&gt;):
	if condition.abatement is DateTime then
	  Interval[condition.abatement as DateTime, condition.abatement as DateTime]
	else if condition.abatement is Quantity then
		Interval[Patient.birthDate + (condition.abatement as Quantity),
			Patient.birthDate + (condition.abatement as Quantity) + 1 year)
	else if condition.abatement is Interval&lt;Quantity&gt; then
	  Interval[Patient.birthDate + (condition.abatement.low as Quantity),
		  Patient.birthDate + (condition.abatement.high as Quantity) + 1 year)
	else if condition.abatement is Interval&lt;DateTime&gt; then
	  Interval[condition.abatement.low, condition.abatement.high)
	else null as Interval&lt;DateTime&gt;"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="35"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="QICoreCommon"></valueString>
            </extension>
            <extension url="name">
               <valueString value="isActive"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="/* Candidates for FHIRCommon */

/*
@description: Returns true if the given condition has a clinical status of active, recurrence, or relapse
*/
define fluent function isActive(condition Choice&lt;&quot;ConditionEncounterDiagnosis&quot;, &quot;ConditionProblemsHealthConcerns&quot;&gt;):
  condition.clinicalStatus ~ &quot;active&quot;
    or condition.clinicalStatus ~ &quot;recurrence&quot;
    or condition.clinicalStatus ~ &quot;relapse&quot;"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="36"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="FHIRHelpers"></valueString>
            </extension>
            <extension url="name">
               <valueString value="ToConcept"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="/*
@description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.
*/
define function ToConcept(concept FHIR.CodeableConcept):
    if concept is null then
        null
    else
        System.Concept {
            codes: concept.coding C return ToCode(C),
            display: concept.text.value
        }"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="37"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="FHIRHelpers"></valueString>
            </extension>
            <extension url="name">
               <valueString value="ToCode"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="/*
@description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code.
*/
define function ToCode(coding FHIR.Coding):
    if coding is null then
        null
    else
        System.Code {
          code: coding.code.value,
          system: coding.system.value,
          version: coding.version.value,
          display: coding.display.value
        }"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="38"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="QICoreCommon"></valueString>
            </extension>
            <extension url="name">
               <valueString value="references"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="/*
@description: Returns true if the given reference is to the given 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, '/'))"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="39"></valueInteger>
            </extension>
         </extension>
         <extension url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
               <valueString value="QICoreCommon"></valueString>
            </extension>
            <extension url="name">
               <valueString value="toInterval"></valueString>
            </extension>
            <extension url="statement">
               <valueString value="/*
@description: Normalizes a value that is a choice of timing-valued types to an equivalent interval
@comment: Normalizes a choice type of DateTime, Quanitty, Interval&lt;DateTime&gt;, or Interval&lt;Quantity&gt; types
to an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible
representations for timing-valued elements in QICore, allowing this function to be used across any resource.
The input can be provided as a DateTime, Quantity, Interval&lt;DateTime&gt; or Interval&lt;Quantity&gt;.
The intent of this function is to provide a clear and concise mechanism to treat single
elements that have multiple possible representations as intervals so that logic doesn't have to account
for the variability. More complex calculations (such as medication request period or dispense period
calculation) need specific guidance and consideration. That guidance may make use of this function, but
the focus of this function is on single element calculations where the semantics are unambiguous.
If the input is a DateTime, the result a DateTime Interval beginning and ending on that DateTime.
If the input is a Quantity, the quantity is expected to be a calendar-duration interpreted as an Age,
and the result is a DateTime Interval beginning on the Date the patient turned that age and ending immediately before one year later.
If the input is a DateTime Interval, the result is the input.
If the input is a Quantity Interval, the quantities are expected to be calendar-durations interpreted as an Age, and the result
is a DateTime Interval beginning on the date the patient turned the age given as the start of the quantity interval, and ending
immediately before one year later than the date the patient turned the age given as the end of the quantity interval.
If the input is a Timing, an error will be thrown indicating that Timing calculations are not implemented. Any other input will reslt in a null DateTime Interval
*/
define fluent function toInterval(choice Choice&lt;DateTime, Quantity, Interval&lt;DateTime&gt;, Interval&lt;Quantity&gt;, Timing&gt;):
  case
	  when choice is DateTime then
    	Interval[choice as DateTime, choice as DateTime]
		when choice is Interval&lt;DateTime&gt; then
  		choice as Interval&lt;DateTime&gt;
		when choice is Quantity then
		  Interval[Patient.birthDate + (choice as Quantity),
			  Patient.birthDate + (choice as Quantity) + 1 year)
		when choice is Interval&lt;Quantity&gt; then
		  Interval[Patient.birthDate + (choice.low as Quantity),
			  Patient.birthDate + (choice.high as Quantity) + 1 year)
		when choice is Timing then
      Message(null, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a Timing value is not supported') as Interval&lt;DateTime&gt;
		else
			null as Interval&lt;DateTime&gt;
	end"></valueString>
            </extension>
            <extension url="displaySequence">
               <valueInteger value="40"></valueInteger>
            </extension>
         </extension>
         <name value="EffectiveDataRequirements"></name>
         <status value="active"></status>
         <type>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/library-type"></system>
               <code value="module-definition"></code>
            </coding>
         </type>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="QICore model information"></display>
            <resource value="http://hl7.org/fhir/Library/QICore-ModelInfo"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Library SDE"></display>
            <resource value="https://madie.cms.gov/Library/SupplementalDataElements|5.1.000"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Library FHIRHelpers"></display>
            <resource value="https://madie.cms.gov/Library/FHIRHelpers|4.4.000"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Library QICoreCommon"></display>
            <resource value="https://madie.cms.gov/Library/QICoreCommon|4.0.000"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Code system SNOMEDCT"></display>
            <resource value="http://snomed.info/sct"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Code system ConditionClinicalStatusCodes"></display>
            <resource value="http://terminology.hl7.org/CodeSystem/condition-clinical"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Code system AllergyIntoleranceClinicalStatusCodes"></display>
            <resource value="http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Code system TaskCodeSystem"></display>
            <resource value="http://hl7.org/fhir/CodeSystem/task-code"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Office Visit"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.11.1005"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Online Evaluation and Management Encounters"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.539"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Telephone Visits All"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1260.161"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Cluster Headache"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.464"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Ingredient of Acute Cluster Headache Medication"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.271"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Acute cluster headache medication"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.659"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Patient Declines Treatment for Cluster Headache (SNOMEDCT)"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.555"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Medical Reason For Not Providing Treatment"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.473"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Non Invasive Oxygen Therapy by Nasal Cannula or Mask"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.209"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Oxygen Therapy"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.550"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set External Vagus Nerve Stimulation (HCPCS II)"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.668"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set External Vagus Nerve Stimulator (UMLS)"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.666"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Oxygen Therapy (Physical Object)"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.665"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Oxygen Therapy (HCPCS)"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.552"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set External Vagus Nerve Stimulation (SNOMEDCT)"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.554"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Payer Type"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Short term preventive medication for cluster headache"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.655"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Long term preventive medications for cluster headache"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.654"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Short term preventive treatment for cluster headache"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.661"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Ingredient of Long term Preventive Cluster Headache Medication"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.270"></resource>
         </relatedArtifact>
         <relatedArtifact>
            <type value="depends-on"></type>
            <display value="Value set Ingredient of Oral Steroid for Preventive Cluster Headache Medications"></display>
            <resource value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.272"></resource>
         </relatedArtifact>
         <parameter>
            <name value="Measurement Period"></name>
            <use value="in"></use>
            <min value="0"></min>
            <max value="1"></max>
            <type value="Period"></type>
         </parameter>
         <parameter>
            <name value="Denominator"></name>
            <use value="out"></use>
            <min value="0"></min>
            <max value="1"></max>
            <type value="boolean"></type>
         </parameter>
         <parameter>
            <name value="Denominator Exceptions 1"></name>
            <use value="out"></use>
            <min value="0"></min>
            <max value="1"></max>
            <type value="boolean"></type>
         </parameter>
         <parameter>
            <name value="Numerator 1"></name>
            <use value="out"></use>
            <min value="0"></min>
            <max value="1"></max>
            <type value="boolean"></type>
         </parameter>
         <parameter>
            <name value="Numerator 2"></name>
            <use value="out"></use>
            <min value="0"></min>
            <max value="1"></max>
            <type value="boolean"></type>
         </parameter>
         <parameter>
            <name value="Initial Population"></name>
            <use value="out"></use>
            <min value="0"></min>
            <max value="1"></max>
            <type value="boolean"></type>
         </parameter>
         <parameter>
            <name value="Denominator Exceptions 2"></name>
            <use value="out"></use>
            <min value="0"></min>
            <max value="1"></max>
            <type value="boolean"></type>
         </parameter>
         <parameter>
            <name value="SDE Sex"></name>
            <use value="out"></use>
            <min value="0"></min>
            <max value="1"></max>
            <type value="Coding"></type>
         </parameter>
         <parameter>
            <name value="SDE Payer"></name>
            <use value="out"></use>
            <min value="0"></min>
            <max value="*"></max>
            <type value="Resource"></type>
         </parameter>
         <parameter>
            <name value="SDE Ethnicity"></name>
            <use value="out"></use>
            <min value="0"></min>
            <max value="1"></max>
            <type value="Resource"></type>
         </parameter>
         <parameter>
            <name value="SDE Race"></name>
            <use value="out"></use>
            <min value="0"></min>
            <max value="1"></max>
            <type value="Resource"></type>
         </parameter>
         <dataRequirement>
            <type value="Patient"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"></profile>
            <mustSupport value="extension"></mustSupport>
            <mustSupport value="birthDate"></mustSupport>
            <mustSupport value="birthDate.value"></mustSupport>
            <mustSupport value="url"></mustSupport>
         </dataRequirement>
         <dataRequirement>
            <type value="Encounter"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"></profile>
            <mustSupport value="type"></mustSupport>
            <mustSupport value="period"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="type"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.11.1005"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Encounter"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"></profile>
            <mustSupport value="type"></mustSupport>
            <mustSupport value="period"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="type"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.539"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Encounter"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"></profile>
            <mustSupport value="type"></mustSupport>
            <mustSupport value="period"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="type"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1260.161"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Condition"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-problems-health-concerns"></profile>
            <mustSupport value="code"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.464"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="AllergyIntolerance"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-allergyintolerance"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="onset"></mustSupport>
            <mustSupport value="clinicalStatus"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.271"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="AllergyIntolerance"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-allergyintolerance"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="onset"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.270"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="AllergyIntolerance"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-allergyintolerance"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="onset"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.272"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="AdverseEvent"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-adverseevent"></profile>
            <mustSupport value="event"></mustSupport>
            <mustSupport value="recordedDate"></mustSupport>
            <mustSupport value="recordedDate.value"></mustSupport>
            <mustSupport value="actuality"></mustSupport>
            <mustSupport value="actuality.value"></mustSupport>
            <codeFilter>
               <path value="event"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.271"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="AdverseEvent"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-adverseevent"></profile>
            <mustSupport value="event"></mustSupport>
            <mustSupport value="recordedDate"></mustSupport>
            <mustSupport value="recordedDate.value"></mustSupport>
            <codeFilter>
               <path value="event"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.270"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="AdverseEvent"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-adverseevent"></profile>
            <mustSupport value="event"></mustSupport>
            <mustSupport value="recordedDate"></mustSupport>
            <mustSupport value="recordedDate.value"></mustSupport>
            <codeFilter>
               <path value="event"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.272"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="MedicationRequest"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationnotrequested"></profile>
            <mustSupport value="medication"></mustSupport>
            <mustSupport value="authoredOn"></mustSupport>
            <mustSupport value="authoredOn.value"></mustSupport>
            <mustSupport value="reasonCode"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="medication"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.659"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="MedicationRequest"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationnotrequested"></profile>
            <mustSupport value="medication"></mustSupport>
            <mustSupport value="authoredOn"></mustSupport>
            <mustSupport value="authoredOn.value"></mustSupport>
            <mustSupport value="reasonCode"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="medication"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.655"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="MedicationRequest"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationnotrequested"></profile>
            <mustSupport value="medication"></mustSupport>
            <mustSupport value="authoredOn"></mustSupport>
            <mustSupport value="authoredOn.value"></mustSupport>
            <mustSupport value="reasonCode"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="medication"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.654"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="ServiceRequest"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="authoredOn"></mustSupport>
            <mustSupport value="authoredOn.value"></mustSupport>
            <mustSupport value="extension"></mustSupport>
            <mustSupport value="reasonCode"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.209"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="ServiceRequest"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="authoredOn"></mustSupport>
            <mustSupport value="authoredOn.value"></mustSupport>
            <mustSupport value="extension"></mustSupport>
            <mustSupport value="reasonCode"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.209"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="ServiceRequest"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="authoredOn"></mustSupport>
            <mustSupport value="authoredOn.value"></mustSupport>
            <mustSupport value="extension"></mustSupport>
            <mustSupport value="reasonCode"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.550"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="ServiceRequest"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="authoredOn"></mustSupport>
            <mustSupport value="authoredOn.value"></mustSupport>
            <mustSupport value="extension"></mustSupport>
            <mustSupport value="reasonCode"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.550"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="ServiceRequest"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="authoredOn"></mustSupport>
            <mustSupport value="authoredOn.value"></mustSupport>
            <mustSupport value="extension"></mustSupport>
            <mustSupport value="reasonCode"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.668"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="ServiceRequest"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="authoredOn"></mustSupport>
            <mustSupport value="authoredOn.value"></mustSupport>
            <mustSupport value="extension"></mustSupport>
            <mustSupport value="reasonCode"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.668"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="ServiceRequest"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="authoredOn"></mustSupport>
            <mustSupport value="authoredOn.value"></mustSupport>
            <mustSupport value="extension"></mustSupport>
            <mustSupport value="reasonCode"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.666"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="ServiceRequest"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="authoredOn"></mustSupport>
            <mustSupport value="authoredOn.value"></mustSupport>
            <mustSupport value="extension"></mustSupport>
            <mustSupport value="reasonCode"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.666"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="ServiceRequest"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="authoredOn"></mustSupport>
            <mustSupport value="authoredOn.value"></mustSupport>
            <mustSupport value="extension"></mustSupport>
            <mustSupport value="reasonCode"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.661"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="ServiceRequest"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="authoredOn"></mustSupport>
            <mustSupport value="authoredOn.value"></mustSupport>
            <mustSupport value="extension"></mustSupport>
            <mustSupport value="reasonCode"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.661"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Procedure"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedurenotdone"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="extension"></mustSupport>
            <mustSupport value="statusReason"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.550"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Procedure"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedurenotdone"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="extension"></mustSupport>
            <mustSupport value="statusReason"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.550"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Procedure"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedurenotdone"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="extension"></mustSupport>
            <mustSupport value="statusReason"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.209"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Procedure"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedurenotdone"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="extension"></mustSupport>
            <mustSupport value="statusReason"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.209"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Procedure"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedurenotdone"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="extension"></mustSupport>
            <mustSupport value="statusReason"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.661"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Procedure"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedurenotdone"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="extension"></mustSupport>
            <mustSupport value="statusReason"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.661"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Resource"></type>
            <profile value="http://hl7.org/fhir/StructureDefinition/Resource"></profile>
            <mustSupport value="id"></mustSupport>
            <mustSupport value="id.value"></mustSupport>
         </dataRequirement>
         <dataRequirement>
            <type value="DeviceRequest"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicerequest"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="intent"></mustSupport>
            <mustSupport value="intent.value"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <mustSupport value="authoredOn"></mustSupport>
            <mustSupport value="authoredOn.value"></mustSupport>
            <mustSupport value="id"></mustSupport>
            <mustSupport value="id.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.665"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="DeviceRequest"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicerequest"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="intent"></mustSupport>
            <mustSupport value="intent.value"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <mustSupport value="authoredOn"></mustSupport>
            <mustSupport value="authoredOn.value"></mustSupport>
            <mustSupport value="id"></mustSupport>
            <mustSupport value="id.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.552"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="DeviceRequest"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicerequest"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="intent"></mustSupport>
            <mustSupport value="intent.value"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <mustSupport value="authoredOn"></mustSupport>
            <mustSupport value="authoredOn.value"></mustSupport>
            <mustSupport value="id"></mustSupport>
            <mustSupport value="id.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.554"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="DeviceRequest"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicerequest"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="intent"></mustSupport>
            <mustSupport value="intent.value"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <mustSupport value="authoredOn"></mustSupport>
            <mustSupport value="authoredOn.value"></mustSupport>
            <mustSupport value="id"></mustSupport>
            <mustSupport value="id.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.668"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="DeviceRequest"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicerequest"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="intent"></mustSupport>
            <mustSupport value="intent.value"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <mustSupport value="authoredOn"></mustSupport>
            <mustSupport value="authoredOn.value"></mustSupport>
            <mustSupport value="id"></mustSupport>
            <mustSupport value="id.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.666"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Task"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-taskrejected"></profile>
            <mustSupport value="focus"></mustSupport>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="statusReason"></mustSupport>
         </dataRequirement>
         <dataRequirement>
            <type value="MedicationRequest"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"></profile>
            <mustSupport value="medication"></mustSupport>
            <mustSupport value="authoredOn"></mustSupport>
            <mustSupport value="authoredOn.value"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="medication"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.659"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="MedicationRequest"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"></profile>
            <mustSupport value="medication"></mustSupport>
            <mustSupport value="authoredOn"></mustSupport>
            <mustSupport value="authoredOn.value"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="medication"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.655"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="MedicationRequest"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"></profile>
            <mustSupport value="medication"></mustSupport>
            <mustSupport value="authoredOn"></mustSupport>
            <mustSupport value="authoredOn.value"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="medication"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.654"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="ServiceRequest"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="authoredOn"></mustSupport>
            <mustSupport value="authoredOn.value"></mustSupport>
            <mustSupport value="intent"></mustSupport>
            <mustSupport value="intent.value"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.209"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="ServiceRequest"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="authoredOn"></mustSupport>
            <mustSupport value="authoredOn.value"></mustSupport>
            <mustSupport value="intent"></mustSupport>
            <mustSupport value="intent.value"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.550"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="ServiceRequest"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="authoredOn"></mustSupport>
            <mustSupport value="authoredOn.value"></mustSupport>
            <mustSupport value="intent"></mustSupport>
            <mustSupport value="intent.value"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.668"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="ServiceRequest"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="authoredOn"></mustSupport>
            <mustSupport value="authoredOn.value"></mustSupport>
            <mustSupport value="intent"></mustSupport>
            <mustSupport value="intent.value"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.666"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="ServiceRequest"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="authoredOn"></mustSupport>
            <mustSupport value="authoredOn.value"></mustSupport>
            <mustSupport value="intent"></mustSupport>
            <mustSupport value="intent.value"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.661"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Procedure"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="performed"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.550"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Procedure"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="performed"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.209"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Procedure"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="performed"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.668"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Procedure"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="performed"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.666"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Procedure"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure"></profile>
            <mustSupport value="code"></mustSupport>
            <mustSupport value="performed"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <mustSupport value="extension"></mustSupport>
            <codeFilter>
               <path value="code"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.661"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Device"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-device"></profile>
            <mustSupport value="type"></mustSupport>
            <codeFilter>
               <path value="type"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.665"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Device"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-device"></profile>
            <mustSupport value="type"></mustSupport>
            <codeFilter>
               <path value="type"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.552"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Device"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-device"></profile>
            <mustSupport value="type"></mustSupport>
            <codeFilter>
               <path value="type"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.554"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Device"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-device"></profile>
            <mustSupport value="type"></mustSupport>
            <codeFilter>
               <path value="type"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.668"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Device"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-device"></profile>
            <mustSupport value="type"></mustSupport>
            <codeFilter>
               <path value="type"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.666"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-deviceusestatement"></profile>
            <mustSupport value="recordedOn"></mustSupport>
            <mustSupport value="recordedOn.value"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
         </dataRequirement>
         <dataRequirement>
            <type value="MedicationStatement"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationstatement"></profile>
            <mustSupport value="medication"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <mustSupport value="dateAsserted"></mustSupport>
            <mustSupport value="dateAsserted.value"></mustSupport>
            <codeFilter>
               <path value="medication"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.659"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="MedicationStatement"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationstatement"></profile>
            <mustSupport value="medication"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <mustSupport value="dateAsserted"></mustSupport>
            <mustSupport value="dateAsserted.value"></mustSupport>
            <codeFilter>
               <path value="medication"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.655"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="MedicationStatement"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationstatement"></profile>
            <mustSupport value="medication"></mustSupport>
            <mustSupport value="status"></mustSupport>
            <mustSupport value="status.value"></mustSupport>
            <mustSupport value="dateAsserted"></mustSupport>
            <mustSupport value="dateAsserted.value"></mustSupport>
            <codeFilter>
               <path value="medication"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.654"></valueSet>
            </codeFilter>
         </dataRequirement>
         <dataRequirement>
            <type value="Coverage"></type>
            <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage"></profile>
            <mustSupport value="type"></mustSupport>
            <mustSupport value="period"></mustSupport>
            <codeFilter>
               <path value="type"></path>
               <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"></valueSet>
            </codeFilter>
         </dataRequirement>
      </Library>
   </contained>
   <extension id="supplementalDataGuidance" url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-supplementalDataGuidance">
      <extension url="guidance">
         <valueString value="For every patient evaluated by this measure also identify payer, race, ethnicity and sex"></valueString>
      </extension>
      <extension url="usage">
         <valueCodeableConcept>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/measure-data-usage"></system>
               <code value="supplemental-data"></code>
               <display value="Supplemental Data"></display>
            </coding>
            <text value="Supplemental Data Guidance"></text>
         </valueCodeableConcept>
      </extension>
   </extension>
   <extension url="http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements">
      <valueReference>
         <reference value="#effective-data-requirements"></reference>
      </valueReference>
   </extension>
   <url value="https://madie.cms.gov/Measure/TreatmentPrescribedForClusterHeadache"></url>
   <identifier>
      <use value="usual"></use>
      <type>
         <coding>
            <system value="http://terminology.hl7.org/CodeSystem/artifact-identifier-type"></system>
            <code value="short-name"></code>
            <display value="Short Name"></display>
         </coding>
      </type>
      <system value="https://madie.cms.gov/measure/shortName"></system>
      <value value="TreatmentForClusterHeadache"></value>
   </identifier>
   <identifier>
      <use value="official"></use>
      <type>
         <coding>
            <system value="http://terminology.hl7.org/CodeSystem/artifact-identifier-type"></system>
            <code value="version-independent"></code>
            <display value="Version Independent"></display>
         </coding>
      </type>
      <system value="urn:ietf:rfc:3986"></system>
      <value value="urn:uuid:99661d24-34dd-43eb-a19d-5b3912aefdc6"></value>
   </identifier>
   <identifier>
      <use value="official"></use>
      <type>
         <coding>
            <system value="http://terminology.hl7.org/CodeSystem/artifact-identifier-type"></system>
            <code value="version-specific"></code>
            <display value="Version Specific"></display>
         </coding>
      </type>
      <system value="urn:ietf:rfc:3986"></system>
      <value value="urn:uuid:b12e8f77-82aa-41d1-8b14-5ea8283dc00b"></value>
   </identifier>
   <version value="Draft based on 0.1.000"></version>
   <name value="TreatmentPrescribedForClusterHeadache"></name>
   <title value="Treatment Prescribed for Cluster Headache"></title>
   <status value="draft"></status>
   <experimental value="false"></experimental>
   <date value="2025-07-23T15:48:57+00:00"></date>
   <publisher value="American Academy of Neurology"></publisher>
   <contact>
      <telecom>
         <system value="url"></system>
         <value value="www.aan.com"></value>
      </telecom>
   </contact>
   <description value="Percentage of patients 18 years of age or older with a diagnosis of cluster headache (CH) who were prescribed: - acute treatment (population 1) - short-term and/or long-term preventive treatment (population 2) including treatments prescribed by a different clinician."></description>
   <usage value="Population 1: Acute treatment prescribed for cluster headache - Acute treatments include, but are not limited to, the following: - oxygen 100%, - sumatriptan subcutaneous (SC) - sumatriptan intranasal (IN) - zolmitriptan IN - dihydroergotamine (DHE) ((intravenous (IV), IM, SC, IN) - external vagus nerve stimulation Population 2: Preventive treatment prescribed for cluster headache - Short term preventive treatments include, but are not limited to, the following: - occipital nerve injection with steroid - oral steroid(s). - Long term preventive treatments include, but are not limited to, the following: - lithium - galcanezumab - verapamil A provider cannot prescribe ineffective or contraindicated treatment. A patient may not need treatment if they have not had any CH attacks in the past 12 months. A patient and/or caregiver reserve the right to decline a prescription. Some of these treatments are costly to be paid out of pocket for a patient who does not have health insurance."></usage>
   <copyright value="Limited proprietary coding may be contained in the Measure specifications for convenience. A license agreement must be entered prior to a third-party’s use of Current Procedural Terminology (CPT[R]) or other proprietary code set contained in the Measure. Any other use of CPT or other coding by the third-party is strictly prohibited. AANI, APA, AMA, and the former members of the PCPI disclaim all liability for use or accuracy of any CPT or other coding contained in the specifications. CPT(R) contained in the Measure specifications is copyright 2004-2025 American Medical Association. LOINC(R) is 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 is copyright 2025 World Health Organization. All Rights Reserved."></copyright>
   <effectivePeriod>
      <start value="2026-01-01"></start>
      <end value="2026-12-31"></end>
   </effectivePeriod>
   <author>
      <name value="Lantana Consulting Group"></name>
      <telecom>
         <system value="url"></system>
         <value value="https://www.lantanagroup.com/"></value>
      </telecom>
   </author>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="Bennett, M. H., French, C., Schnabel, A., Wasiak, J., Kranke, P., &amp;amp; Weibel, S. (2015). Normobaric and hyperbaric oxygen therapy for the treatment and prevention of migraine and cluster headache. Cochrane Database of Systematic Reviews, 2015(12), CD005219. https://doi.org/10.1002/14651858.CD005219.pub3"></citation>
   </relatedArtifact>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="Evers, S., Áfra, J., Frese, A., Goadsby, P. J., Linde, M., May, A., &amp;amp; Sándor, P. S. (2010). Cluster headache and other trigemino‐autonomic cephalgias. In S. Olesen, P. Tfelt-Hansen, &amp;amp; M. A. Welch (Eds.), The headaches (4th ed., pp. 179–190). Wiley-Blackwell. https://doi.org/10.1002/9781444328394.ch11"></citation>
   </relatedArtifact>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="Fischera, M., Marziniak, M., Gralow, I., &amp;amp; Evers, S. (2008). The incidence and prevalence of cluster headache: A meta-analysis of population-based studies. Cephalalgia, 28(6), 614–618. https://doi.org/10.1111/j.1468-2982.2008.01592.x"></citation>
   </relatedArtifact>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="Francis, G. J., Becker, W. J., &amp;amp; Pringsheim, T. M. (2010). Acute and preventive pharmacologic treatment of cluster headache. Neurology, 75(5), 463–473. https://doi.org/10.1212/WNL.0b013e3181eb58c8"></citation>
   </relatedArtifact>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="Gaul, C., Finken, J., Biermann, J., Mostardt, S., Diener, H.-C., Müller, O., Wasem, J., &amp;amp; Neumann, A. (2011). Treatment costs and indirect costs of cluster headache: A health economics analysis. Cephalalgia, 31(16), 1664–1672. https://doi.org/10.1177/0333102411425866"></citation>
   </relatedArtifact>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="Klapper, J. A., Klapper, A., &amp;amp; Voss, T. (2000). The misdiagnosis of cluster headache: A nonclinic, population-based, internet survey. Headache: The Journal of Head and Face Pain, 40(9), 730–735. https://doi.org/10.1046/j.1526-4610.2000.00127.x"></citation>
   </relatedArtifact>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="Lademann, V., Jansen, J.-P., Evers, S., &amp;amp; Frese, A. (2015). Evaluation of guideline-adherent treatment in cluster headache. Cephalalgia, 36(8), 760–764. https://doi.org/10.1177/0333102415612774"></citation>
   </relatedArtifact>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="May, A., Leone, M., Áfra, J., Linde, M., Sándor, P. S., Evers, S., &amp;amp; Goadsby, P. J. (2006). EFNS guidelines on the treatment of cluster headache and other trigeminal-autonomic cephalalgias. European Journal of Neurology, 13(10), 1066–1077. https://doi.org/10.1111/j.1468-1331.2006.01566.x"></citation>
   </relatedArtifact>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="Robbins, M. S., Starling, A. J., Pringsheim, T. M., Becker, W. J., &amp;amp; Schwedt, T. J. (2016). Treatment of cluster headache: The American Headache Society evidence-based guidelines. Headache, 56(7), 1093–1106. https://doi.org/10.1111/head.12866"></citation>
   </relatedArtifact>
   <relatedArtifact>
      <type value="citation"></type>
      <citation value="Rozen, T. D., &amp;amp; Fishman, R. S. (2011). Cluster headache in the United States of America: Demographics, clinical characteristics, triggers, suicidality, and personal burden. Headache: The Journal of Head and Face Pain, 52(1), 99–113. https://doi.org/10.1111/j.1526-4610.2011.02028.x"></citation>
   </relatedArtifact>
   <library value="https://madie.cms.gov/Library/TreatmentPrescribedForClusterHeadache"></library>
   <disclaimer value="These performance measures are not clinical guidelines and do not establish a standard of medical care, and have not been tested for all potential applications. THE MEASURES AND SPECIFICATIONS ARE PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND. Due to technical limitations, registered trademarks are indicated by (R) or [R] and unregistered trademarks are indicated by (TM) or [TM]."></disclaimer>
   <rationale value="Cluster headache is underdiagnosed and undertreated due to difficult symptomology and poor recognition (Klapper et al., 2000, Robbins et al., 2016). Although cluster headache has a much lower prevalence than many other types of headaches (Fischera et al., 2008), it is often considered the most severe headache pain. Suicidal ideations in one study were as high as 55% of the study population (Rozen et al., 2011). Appropriate acute and preventive treatment for patients diagnosed with cluster headache leads to reliable symptom relief for attacks and reduction of attack frequency and severity. Cluster headache leads to major socioeconomic effects on patients as well as society due to direct healthcare costs and indirect costs caused by loss of working capacity (Gaul et al., 2011). Approximately 20% of CH patients have lost a job secondary to CH, while another 8% are out of work or on disability secondary to their headaches (Rozen et al., 2011). According to a 2015 study by Lademan et al., “guideline-adherent treatment in cluster headache is about 70% for acute treatment and about 35% for prophylactic treatment&quot;. The efficacy rate for treatments for both groups is above 90%.6 This evidence presents a wide gap in care for patients with cluster headache."></rationale>
   <clinicalRecommendationStatement value="For the acute treatment of CH attacks, Level A advice can be given for the use of sumatriptan SC 6 mg, intranasal zolmitriptan 5 and 10 mg, and 100% oxygen. Level B advice can be given for the use of intranasal sumatriptan 20 mg and oral zolmitriptan 5 and 10 mg. Level C advice can be given for intranasal 10% cocaine, intranasal 10% lidocaine, and subcutaneous octreotide 100 μg (Francis et al., 2010). For the prevention of CH attacks during a cluster bout, Level B advice can be given for intranasal civamide 100 μL and suboccipital steroid injection. Level C advice can be given for melatonin 10 mg, verapamil 360 mg, and lithium 900 mg (Francis et al., 2010). Several new treatments are emerging for the prevention of CH. Open-label and pilot studies have been conducted with topiramate and gabapentin. Deep brain stimulation and occipital nerve stimulation have also been assessed with small trials in medically refractory patients. In the future, there may be a greater number of evidence-based treatment options for the prevention of CH (Francis et al., 2010). The first option for the treatment of acute attacks of cluster headache should be the inhalation of 100% oxygen with at least 7 l/min over 15 min (class II trials) or with the subcutaneous injection of 6 mg sumatriptan (class I trials). An alternative would be sumatriptan 20 mg nasal spray or zolmitriptan 5 mg nasal spray (one class I trial each), with the disadvantage of a slower onset and the advantage of being able to treat more attacks in 24 h than with injected sumatriptan (May et al., 2006). Prophylaxis of cluster headache should be tried first with verapamil at a daily dose of at least 240mg (maximum dose depends on efficacy or tolerability, ECG controls are obligatory with increasing doses). Although no class I or II trials are available, steroids are clearly effective for treating cluster headache. Therefore, the use of at least 100 mg methylprednisone (or equivalent corticosteroid) given orally or up to 500mg I.V. per day over 5 days (then tapering down) is recommended (May et al., 2006). Intranasal lidocaine (4%) and subcutaneous octreotide (100 μg) can be tried for treating acute cluster headache attacks if level A medication is ineffective or contraindicated. Oral administration of zolmitriptan at 5–10mg is effective in some patients (class I trial) but high doses produce more side effects and limit practical use (May et al., 2006). Methysergide and lithium are drugs of second choice if verapamil is ineffective or contraindicated. Corticosteroids can be used for short periods where bouts are short or to help establish another medication. Topiramate is promising, but only open trials exist at this point. Melatonin is useful in some patients. Except for lithium, the maximum dose depends on efficacy and tolerability. Ergotamine tartrate is recommended for short-term prophylaxis (class III studies). Despite positive class II studies, pizotifen and intranasal capsaicin should only be used in rare cases because of side effects (May et al., 2006). There is insufficient evidence from good quality RCTs to establish the effects of HBOT on cluster headache as a treatment for an acute episode or as a prophylaxis against future clusters. Three RCTs suggest that the administration of NBOT to treat acute cluster headache is likely to be effective in more than 70% of cases, and given the safety and ease of administration of NBOT, NBOT use is likely to continue. There is no evidence to support NBOT use as a prophylactic measure (Bennett et al., 2015)."></clinicalRecommendationStatement>
   <group id="Group_1">
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoring">
         <valueCodeableConcept>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/measure-scoring"></system>
               <code value="proportion"></code>
               <display value="Proportion"></display>
            </coding>
         </valueCodeableConcept>
      </extension>
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis">
         <valueCode value="boolean"></valueCode>
      </extension>
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-type">
         <valueCodeableConcept>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/measure-type"></system>
               <code value="process"></code>
               <display value="Process"></display>
            </coding>
         </valueCodeableConcept>
      </extension>
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-improvementNotation">
         <valueCodeableConcept>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/measure-improvement-notation"></system>
               <code value="increase"></code>
               <display value="Increased score indicates improvement"></display>
            </coding>
         </valueCodeableConcept>
      </extension>
      <description value="Percentage of patients 18 years of age or older with a diagnosis of cluster headache (CH) who were prescribed an acute treatment including treatments prescribed by a different clinician"></description>
      <population id="InitialPopulation_1">
         <code>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
               <code value="initial-population"></code>
               <display value="Initial Population"></display>
            </coding>
         </code>
         <description value="Patients aged 18 years of age or older at the start of the measurement period, who have a diagnosis of CH and have an encounter during the measurement period"></description>
         <criteria>
            <language value="text/cql-identifier"></language>
            <expression value="Initial Population"></expression>
         </criteria>
      </population>
      <population id="Denominator_1">
         <code>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
               <code value="denominator"></code>
               <display value="Denominator"></display>
            </coding>
         </code>
         <description value="Equals Initial Population"></description>
         <criteria>
            <language value="text/cql-identifier"></language>
            <expression value="Denominator"></expression>
         </criteria>
      </population>
      <population id="Numerator_1">
         <code>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
               <code value="numerator"></code>
               <display value="Numerator"></display>
            </coding>
         </code>
         <description value="Patients who were prescribed acute treatment, including treatments prescribed by a different clinician once during the measurement period"></description>
         <criteria>
            <language value="text/cql-identifier"></language>
            <expression value="Numerator 1"></expression>
         </criteria>
      </population>
      <population id="DenominatorException_1">
         <code>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
               <code value="denominator-exception"></code>
               <display value="Denominator Exception"></display>
            </coding>
         </code>
         <description value="Guideline recommended treatment is exempt for the following: • Patient had an adverse event or allergy to CH treatments. • Patient declined treatment. • Medical reason exist for not prescribing CH treatment (medically contraindicated or ineffective, unwarranted, or attacks are infrequent or controlled)."></description>
         <criteria>
            <language value="text/cql-identifier"></language>
            <expression value="Denominator Exceptions 1"></expression>
         </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"></system>
               <code value="proportion"></code>
               <display value="Proportion"></display>
            </coding>
         </valueCodeableConcept>
      </extension>
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis">
         <valueCode value="boolean"></valueCode>
      </extension>
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-type">
         <valueCodeableConcept>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/measure-type"></system>
               <code value="process"></code>
               <display value="Process"></display>
            </coding>
         </valueCodeableConcept>
      </extension>
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-improvementNotation">
         <valueCodeableConcept>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/measure-improvement-notation"></system>
               <code value="increase"></code>
               <display value="Increased score indicates improvement"></display>
            </coding>
         </valueCodeableConcept>
      </extension>
      <description value="Percentage of patients 18 years of age or older with a diagnosis of cluster headache (CH) who were prescribed short-term and/or long-term preventive treatment including treatments prescribed by a different clinician."></description>
      <population id="InitialPopulation_2">
         <code>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
               <code value="initial-population"></code>
               <display value="Initial Population"></display>
            </coding>
         </code>
         <description value="Patients aged 18 years of age or older at the start of the measurement period, who have a diagnosis of CH and have an encounter during the measurement period"></description>
         <criteria>
            <language value="text/cql-identifier"></language>
            <expression value="Initial Population"></expression>
         </criteria>
      </population>
      <population id="Denominator_2">
         <code>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
               <code value="denominator"></code>
               <display value="Denominator"></display>
            </coding>
         </code>
         <description value="Equals Initial Population"></description>
         <criteria>
            <language value="text/cql-identifier"></language>
            <expression value="Denominator"></expression>
         </criteria>
      </population>
      <population id="Numerator_2">
         <code>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
               <code value="numerator"></code>
               <display value="Numerator"></display>
            </coding>
         </code>
         <description value="Patients who were prescribed short-term or long-term preventive treatment, including treatments prescribed by a different clinician once during the measurement period"></description>
         <criteria>
            <language value="text/cql-identifier"></language>
            <expression value="Numerator 2"></expression>
         </criteria>
      </population>
      <population id="DenominatorException_2">
         <code>
            <coding>
               <system value="http://terminology.hl7.org/CodeSystem/measure-population"></system>
               <code value="denominator-exception"></code>
               <display value="Denominator Exception"></display>
            </coding>
         </code>
         <description value="Guideline recommended treatment is exempt for the following: • Patient had an adverse event or allergy to CH treatments • Patient declined treatment • Medical reason exist for not prescribing cluster headache treatment (medically contraindicated or ineffective, unwarranted, or attacks are infrequent or controlled)"></description>
         <criteria>
            <language value="text/cql-identifier"></language>
            <expression value="Denominator Exceptions 2"></expression>
         </criteria>
      </population>
   </group>
   <supplementalData id="sde-ethnicity">
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
         <valueCode value="individual"></valueCode>
      </extension>
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
         <valueCode value="subject-list"></valueCode>
      </extension>
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
         <valueCode value="summary"></valueCode>
      </extension>
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
         <valueCode value="data-collection"></valueCode>
      </extension>
      <usage>
         <coding>
            <system value="http://terminology.hl7.org/CodeSystem/measure-data-usage"></system>
            <code value="supplemental-data"></code>
         </coding>
      </usage>
      <description value="SDE Ethnicity"></description>
      <criteria>
         <language value="text/cql-identifier"></language>
         <expression value="SDE Ethnicity"></expression>
      </criteria>
   </supplementalData>
   <supplementalData id="sde-payer">
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
         <valueCode value="individual"></valueCode>
      </extension>
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
         <valueCode value="subject-list"></valueCode>
      </extension>
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
         <valueCode value="summary"></valueCode>
      </extension>
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
         <valueCode value="data-collection"></valueCode>
      </extension>
      <usage>
         <coding>
            <system value="http://terminology.hl7.org/CodeSystem/measure-data-usage"></system>
            <code value="supplemental-data"></code>
         </coding>
      </usage>
      <description value="SDE Payer"></description>
      <criteria>
         <language value="text/cql-identifier"></language>
         <expression value="SDE Payer"></expression>
      </criteria>
   </supplementalData>
   <supplementalData id="sde-race">
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
         <valueCode value="individual"></valueCode>
      </extension>
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
         <valueCode value="subject-list"></valueCode>
      </extension>
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
         <valueCode value="summary"></valueCode>
      </extension>
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
         <valueCode value="data-collection"></valueCode>
      </extension>
      <usage>
         <coding>
            <system value="http://terminology.hl7.org/CodeSystem/measure-data-usage"></system>
            <code value="supplemental-data"></code>
         </coding>
      </usage>
      <description value="SDE Race"></description>
      <criteria>
         <language value="text/cql-identifier"></language>
         <expression value="SDE Race"></expression>
      </criteria>
   </supplementalData>
   <supplementalData id="sde-sex">
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
         <valueCode value="individual"></valueCode>
      </extension>
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
         <valueCode value="subject-list"></valueCode>
      </extension>
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
         <valueCode value="summary"></valueCode>
      </extension>
      <extension url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType">
         <valueCode value="data-collection"></valueCode>
      </extension>
      <usage>
         <coding>
            <system value="http://terminology.hl7.org/CodeSystem/measure-data-usage"></system>
            <code value="supplemental-data"></code>
         </coding>
      </usage>
      <description value="SDE Sex"></description>
      <criteria>
         <language value="text/cql-identifier"></language>
         <expression value="SDE Sex"></expression>
      </criteria>
   </supplementalData>
</Measure>