<Library xmlns="http://hl7.org/fhir">
   <id value="TreatmentPrescribedForClusterHeadache"></id>
   <meta>
      <profile value="http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablelibrary"></profile>
      <profile value="http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-computablelibrary"></profile>
      <profile value="http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary"></profile>
      <profile value="http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-executablelibrary"></profile>
      <profile value="http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library"></profile>
      <profile value="http://hl7.org/fhir/uv/cql/StructureDefinition/elm-json-library"></profile>
      <profile value="http://hl7.org/fhir/uv/cql/StructureDefinition/elm-xml-library"></profile>
   </meta>
   <language value="en"></language>
   <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">TreatmentPrescribedForClusterHeadache</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Version</th> 
                  <td class="content-container">0.1.000</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Identifier</th> 
                  <td class="content-container">TreatmentPrescribedForClusterHeadache</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">Description</th> 
                  <td class="content-container">TreatmentPrescribedForClusterHeadache</td> 
               </tr> 
               <tr> 
                  <th scope="row" class="row-header">Type</th> 
                  <td class="content-container">[http://terminology.hl7.org/CodeSystem/library-type#logic-library]</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 
                     <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 
                     <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 
                     <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>: 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>: DeviceRequest 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicerequest 
                     <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.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, 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.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, 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.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, 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>: DeviceRequest 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicerequest 
                     <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>: 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>: 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 
                     <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>: 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>: 
                     <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>: 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>: AllergyIntolerance 
                     <br></br> 
                     <em>Profile(s)</em>:  http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-allergyintolerance 
                     <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.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 
                     <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 
                     <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 
                     <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 colspan="2" scope="row" class="row-header">Library Content</th> 
               </tr>  
               <tr> 
                  <th scope="row" class="row-header">CQL Content</th> 
                  <td> 
                     <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">library TreatmentPrescribedForClusterHeadache version '0.1.000'

using QICore version '6.0.0'

include FHIRHelpers version '4.4.000' called FHIRHelpers
include QICoreCommon version '4.0.000' called QICoreCommon
include SupplementalDataElements version '5.1.000' called SDE

codesystem "CPT": 'http://www.ama-assn.org/go/cpt'
codesystem "HCPCS": 'http://www.cms.gov/Medicare/Coding/HCPCSReleaseCodeSets'
codesystem "SNOMEDCT": 'http://snomed.info/sct'
codesystem "UMLS": 'http://www.nlm.nih.gov/research/umls'

valueset "Acute cluster headache medication": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.659'
valueset "Cluster Headache": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.464'
valueset "External Vagus Nerve Stimulation (HCPCS II)": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.668'
valueset "External Vagus Nerve Stimulation (SNOMEDCT)": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.554'
valueset "External Vagus Nerve Stimulator (UMLS)": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.666'
valueset "Ingredient of Acute Cluster Headache Medication": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.271'
valueset "Ingredient of Long term Preventive Cluster Headache Medication": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.270'
valueset "Ingredient of Oral Steroid for Preventive Cluster Headache Medications": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.272'
valueset "Long term preventive medications for cluster headache": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.654'
valueset "Medical Reason For Not Providing Treatment": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.473'
valueset "Non Invasive Oxygen Therapy by Nasal Cannula or Mask": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.209'
valueset "Office Visit": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.11.1005'
valueset "Online Evaluation and Management Encounters": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.539'
valueset "Oxygen Therapy": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.550'
valueset "Oxygen Therapy (Physical Object)": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.665'
valueset "Oxygen Therapy (HCPCS)": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.552'
valueset "Patient Declines Treatment for Cluster Headache (SNOMEDCT)": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.555'
valueset "Short term preventive medication for cluster headache": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.655'
valueset "Short term preventive treatment for cluster headache": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.661'
valueset "Telephone Visits All": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1260.161'

parameter "Measurement Period" Interval&lt;DateTime&gt;

context Patient

define "Initial Population":
  exists ( "Adult Encounters With Diagnosis Of Cluster Headaches" )

define "Denominator":
  "Initial Population"

define "Numerator 1":
  "Has Cluster Headache Acute Treatment Ordered Or Reported"

define "Denominator Exceptions 1":
  "Has Exceptions For Not Prescribing Acute Treatment"

define "Numerator 2":
  "Has Cluster Headache Preventive Treatment Ordered Or Reported"

define "Denominator Exceptions 2":
  "Has Exceptions For Not Prescribing Preventive Treatment"
                                                                                           
//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 ( )
  )

define "Has Cluster Headache Acute Treatment Ordered Or Reported":
  ( "Has Cluster Headache Acute Treatment Order Or Procedure"
      or "Has Cluster Headache Acute Treatment Reported"
  )

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'
    )

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" )

define "Device Reported":
  ( [DeviceUseStatement] DeviceInUse
    where DeviceInUse.recordedOn during day of "Measurement Period"
      and DeviceInUse.status ~ 'active' ) DeviceUse
    where exists ( "Acute Treatment Devices" )

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)"]
  )

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"

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"
  )

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'
  )

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'
    )

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
      }
  )


//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"

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'
    )

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"
    )

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"

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
  )

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
  )

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'
    )

define "Medical Reason For Preventive Cluster Headache Medication Not ordered":
  ( ( [MedicationAdministrationNotDone: "Short term preventive medication for cluster headache"]
      union [MedicationAdministrationNotDone: "Long term preventive medications for cluster headache"] ) TXNotOrdered
      with "Adult Encounters With Diagnosis Of Cluster Headaches" ValidEncounter
        such that TXNotOrdered.recorded during day of "Measurement Period"
          and TXNotOrdered.reasonCode in "Medical Reason For Not Providing Treatment"
          and TXNotOrdered.status ~ 'not=done'
  )

define "SDE Ethnicity":
  SDE."SDE Ethnicity"

define "SDE Payer":
  SDE."SDE Payer"

define "SDE Race":
  SDE."SDE Race"

define "SDE Sex":
  SDE."SDE Sex"</code></pre> 
                  </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>
   <url value="https://madie.cms.gov/Library/TreatmentPrescribedForClusterHeadache"></url>
   <identifier>
      <use value="official"></use>
      <system value="https://madie.cms.gov/login"></system>
      <value value="TreatmentPrescribedForClusterHeadache"></value>
   </identifier>
   <version value="0.1.000"></version>
   <name value="TreatmentPrescribedForClusterHeadache"></name>
   <title value="TreatmentPrescribedForClusterHeadache"></title>
   <status value="active"></status>
   <experimental value="false"></experimental>
   <type>
      <coding>
         <system value="http://terminology.hl7.org/CodeSystem/library-type"></system>
         <code value="logic-library"></code>
      </coding>
   </type>
   <date value="2025-07-23T17:39:23+00:00"></date>
   <publisher value="American Academy of Neurology"></publisher>
   <description value="TreatmentPrescribedForClusterHeadache"></description>
   <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="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 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>
   <dataRequirement>
      <type value="Encounter"></type>
      <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"></profile>
      <mustSupport value="type"></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>
      <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>
      <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="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="DeviceRequest"></type>
      <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicerequest"></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.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="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.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="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.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="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="DeviceRequest"></type>
      <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicerequest"></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="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="Task"></type>
      <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-taskrejected"></profile>
      <mustSupport value="focus"></mustSupport>
      <mustSupport value="code"></mustSupport>
   </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="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>
      <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="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>
      <type value="AllergyIntolerance"></type>
      <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-allergyintolerance"></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.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>
      <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>
      <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>
      <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>
   <content>
      <contentType value="text/cql"></contentType>
      <data value="[encoded data, 22532 characters]"></data>
   </content>
   <content>
      <contentType value="application/elm+xml"></contentType>
      <data value="[encoded data, 620212 characters]"></data>
   </content>
   <content>
      <contentType value="application/elm+json"></contentType>
      <data value="[encoded data, 1240844 characters]"></data>
   </content>
</Library>