Clinical Practice Guidelines
3.0.0-ballot - STU 3 Ballot International flag

Clinical Practice Guidelines, published by HL7 International / Clinical Decision Support. This guide is not an authorized publication; it is the continuous build for version 3.0.0-ballot built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/cqf-recommendations/ and changes regularly. See the Directory of published versions

: Generate Report Example Measure Logic

Page standards status: Informative

Raw xml | Download


<Library xmlns="http://hl7.org/fhir">
  <id value="GenerateReportMeasure"/>
  <language value="en"/>
  <text>
    <status value="extensions"/>
    <div xmlns="http://www.w3.org/1999/xhtml">
  <table class="narrative-table">
    <tbody>
<tr>


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


</tr>







<tr>


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



<td class="content-container">3.0.0-ballot</td>


</tr>







  
<tr>


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



<td class="content-container">urn:oid:2.16.840.1.113883.4.642.40.48.28.22</td>


</tr>












<tr>


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



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


</tr>










<tr>


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



<td class="content-container">
    World


</td>


</tr>











<tr>


<th scope="row" class="row-header">Steward (Publisher)</th>



<td class="content-container">HL7 International / Clinical Decision Support</td>


</tr>



<tr>


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



<td class="content-container">HL7 International / Clinical Decision Support</td>


</tr>







<tr>


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



<td class="content-container"><div><p>Scoring logic for the Generate Report example measure</p>
</div></td>


</tr>









<tr>


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



<td class="content-container">
    <a href="http://terminology.hl7.org/7.5.0/CodeSystem-library-type.html">http://terminology.hl7.org/CodeSystem/library-type</a>#logic-library


</td>


</tr>













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

<tr>


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


</tr>

<tr>
  

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


  <td class="content-container">
    <table>
      <thead>
        <tr>
          <td><em>Name</em></td>
          <td><em>Use</em></td>
          <td><em>Card.</em></td>
          <td><em>Type</em></td>
          <td><em>Documentation</em></td>
        </tr>
      </thead>
      <tbody>
      
        <tr>
          <td>Patient</td>
          <td>Out</td>
          <td>0..1</td>
          <td>Patient</td>
          <td/>
        </tr>
      
        <tr>
          <td>Report Score</td>
          <td>Out</td>
          <td>0..1</td>
          <td>integer</td>
          <td/>
        </tr>
      
      </tbody>
    </table>
  </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>
        <a name="cql-content"> </a>
        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">library GenerateReportMeasure version '3.0.0-ballot'

using FHIR version '4.0.1'

context Patient

define &quot;Report Score&quot;:
  100
</code></pre>
      </td>
    </tr>
    
  
    
    <tr>
      <th scope="row" class="row-header">ELM XML Content</th>
      <td>
        <pre style="border: none;" class="content-container highlight language-cql"><code>Encoded data </code></pre>
      </td>
    </tr>
    
  
    
    <tr>
      <th scope="row" class="row-header">ELM JSON Content</th>
      <td>
        <pre style="border: none;" class="content-container highlight language-cql"><code>Encoded data </code></pre>
      </td>
    </tr>
    
  



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

    </tbody>
  </table>
</div>
  </text>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability">
    <valueCode value="shareable"/>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability">
    <valueCode value="computable"/>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability">
    <valueCode value="publishable"/>
  </extension>
  <url value="http://hl7.org/fhir/uv/cpg/Library/GenerateReportMeasure"/>
  <identifier>
    <system value="urn:ietf:rfc:3986"/>
    <value value="urn:oid:2.16.840.1.113883.4.642.40.48.28.22"/>
  </identifier>
  <version value="3.0.0-ballot"/>
  <name value="GenerateReportMeasure"/>
  <status value="active"/>
  <experimental value="true"/>
  <type>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/library-type"/>
      <code value="logic-library"/>
    </coding>
  </type>
  <date value="2026-11-20T14:03:30+00:00"/>
  <publisher value="HL7 International / Clinical Decision Support"/>
  <contact>
    <name value="HL7 International / Clinical Decision Support"/>
    <telecom>
      <system value="url"/>
      <value value="http://www.hl7.org/Special/committees/dss"/>
    </telecom>
  </contact>
  <description value="Scoring logic for the Generate Report example measure"/>
  <jurisdiction>
    <coding>
      <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
      <code value="001"/>
      <display value="World"/>
    </coding>
  </jurisdiction>
  <parameter>
    <name value="Patient"/>
    <use value="out"/>
    <min value="0"/>
    <max value="1"/>
    <type value="Patient"/>
  </parameter>
  <parameter>
    <name value="Report Score"/>
    <use value="out"/>
    <min value="0"/>
    <max value="1"/>
    <type value="integer"/>
  </parameter>
  <dataRequirement>
    <type value="Patient"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/Patient"/>
  </dataRequirement>
  <content>
    <contentType value="text/cql"/>
    <data
          value="bGlicmFyeSBHZW5lcmF0ZVJlcG9ydE1lYXN1cmUgdmVyc2lvbiAnMy4wLjAtYmFsbG90JwoKdXNpbmcgRkhJUiB2ZXJzaW9uICc0LjAuMScKCmNvbnRleHQgUGF0aWVudAoKZGVmaW5lICJSZXBvcnQgU2NvcmUiOgogIDEwMAo="/>
  </content>
  <content>
    <contentType value="application/elm+xml"/>
    <data
          value="PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48bGlicmFyeSB4bWxucz0idXJuOmhsNy1vcmc6ZWxtOnIxIiB4bWxuczphPSJ1cm46aGw3LW9yZzpjcWwtYW5ub3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sb2NhdG9yPSI4OjMtODo1IiB2YWx1ZT0iMTAwIiB2YWx1ZVR5cGU9InQ6SW50ZWdlciIgeHNpOnR5cGU9IkxpdGVyYWwiLz48L2RlZj48L3N0YXRlbWVudHM+PC9saWJyYXJ5Pg=="/>
  </content>
  <content>
    <contentType value="application/elm+json"/>
    <data
          value="eyJsaWJyYXJ5Ijp7ImxvY2FsSWQiOiIwIiwiYW5ub3RhdGlvbiI6W3sidHlwZSI6IkNxbFRvRWxtSW5mbyIsInRyYW5zbGF0b3JWZXJzaW9uIjoiNC45LjAiLCJ0cmFuc2xhdG9yT3B0aW9ucyI6IkVuYWJsZUFubm90YXRpb25zLEVuYWJsZUxvY2F0b3JzLERpc2FibGVMaXN0RGVtb3Rpb24sRGlzYWJsZUxpc3RQcm9tb3Rpb24iLCJzaWduYXR1cmVMZXZlbCI6Ik92ZXJsb2FkcyJ9LHsidHlwZSI6IkFubm90YXRpb24iLCJ0IjpbXSwicyI6eyJyIjoiMjE0IiwicyI6W3sidmFsdWUiOlsiIiwibGlicmFyeSBHZW5lcmF0ZVJlcG9ydE1lYXN1cmUgdmVyc2lvbiAnMy4wLjAtYmFsbG90JyJdfV19fV0sImlkZW50aWZpZXIiOnsiaWQiOiJHZW5lcmF0ZVJlcG9ydE1lYXN1cmUiLCJzeXN0ZW0iOiJodHRwOi8vaGw3Lm9yZy9maGlyL3V2L2NwZyIsInZlcnNpb24iOiIzLjAuMC1iYWxsb3QifSwic2NoZW1hSWRlbnRpZmllciI6eyJpZCI6InVybjpobDctb3JnOmVsbSIsInZlcnNpb24iOiJyMSJ9LCJ1c2luZ3MiOnsiZGVmIjpbeyJsb2NhbElkIjoiMSIsImxvY2FsSWRlbnRpZmllciI6IlN5c3RlbSIsInVyaSI6InVybjpobDctb3JnOmVsbS10eXBlczpyMSIsInZlcnNpb24iOiIxLjAuMCIsImFubm90YXRpb24iOltdfSx7ImxvY2FsSWQiOiIyMDYiLCJsb2NhdG9yIjoiMzoxLTM6MjYiLC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