FHIR Release 3 (STU)

This page is part of the FHIR Specification (v3.0.2: STU 3). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3

Library-cms146-example.xml

Clinical Decision Support Work GroupMaturity Level: N/ABallot Status: InformativeCompartments: Not linked to any defined compartments

Raw XML (canonical form)

Jump past Narrative

CMS146 Measure Logic (id = "library-cms146-example")

<Library xmlns="http://hl7.org/fhir">
  <id value="library-cms146-example"/> 
  <text> 
    <status value="generated"/> 
    <div xmlns="http://www.w3.org/1999/xhtml">
         <table class="grid dict">
            <tr> 
               <td> 
                  <b> Id: </b> 
               </td> 
            </tr> 
            <tr> 
               <td style="padding-left: 25px; padding-right: 25px;">Library/library-cms146-example</td> 
            </tr> 
         </table> 
         <table class="grid dict">
            <tr> 
               <td> 
                  <b> Identifier: </b> 
               </td> 
            </tr> 
            <tr> 
               <td style="padding-left: 25px; padding-right: 25px;">
                  <b> value: </b> 
                  <span> CMS146</span> 
               </td> 
            </tr> 
         </table> 
         <p/>  
         <table class="grid dict">
            <tr> 
               <td> 
                  <b> Version: </b> 
               </td> 
            </tr> 
            <tr> 
               <td style="padding-left: 25px; padding-right: 25px;">2.0.0</td> 
            </tr> 
         </table> 
         <p/>  
         <table class="grid dict">
            <tr> 
               <td> 
                  <b> Title: </b> 
               </td> 
            </tr> 
            <tr> 
               <td style="padding-left: 25px; padding-right: 25px;">Appropriate Testing for Children with Pharyngitis</td> 
            </tr> 
         </table> 
         <p/>  
         <table class="grid dict">
            <tr> 
               <td> 
                  <b> Type: </b> 
               </td> 
            </tr> 
            <tr> 
               <td style="padding-right: 25px;">
                  <span> 
                     <span> 
                        <span style="padding-left: 25px;">
                           <b> code: </b> 
                           <span> logic-library</span> 
                        </span> 
                     </span> 
                  </span> 
               </td> 
            </tr> 
         </table> 
         <p/>  
         <table class="grid dict">
            <tr> 
               <td> 
                  <b> Status: </b> 
               </td> 
            </tr> 
            <tr> 
               <td style="padding-left: 25px; padding-right: 25px;">draft</td> 
            </tr> 
         </table> 
         <p/>  
         <table class="grid dict">
            <tr> 
               <td> 
                  <b> Description: </b> 
               </td> 
            </tr> 
            <tr> 
               <td style="padding-left: 25px; padding-right: 25px;">Logic for CMS 146: Appropriate Testing for Children with Pharyngitis</td> 
            </tr> 
         </table> 
         <p/>  
         <table class="grid dict">
            <tr> 
               <td> 
                  <b> Related: </b> 
               </td> 
            </tr> 
            <tr style="vertical-align: top;">
               <td style="padding-left: 25px; padding-right: 25px;">
                  <p style="margin-bottom: 5px;">
                     <b> type: </b> 
                     <span> depends-on</span> 
                  </p> 
                  <p style="margin-bottom: 5px;">
                     <b> Resource: </b> 
                     <br/>  
                     <span> 
                        <span style="padding-left: 25px;">
                           <b> reference: </b> 
                           <span> Library/library-quick-model-definition</span> 
                        </span> 
                     </span> 
                  </p> 
               </td> 
            </tr> 
         </table> 
         <table class="grid dict">
            <tr> 
               <td> 
                  <b> Data Requirements: </b> 
               </td> 
            </tr> 
            <tr> 
               <td style="padding-left: 25px; padding-right: 25px;">
                  <div> 
                     <p style="margin-bottom: 5px;">
                        <b> type: </b> 
                        <span> Patient</span> 
                     </p> 
                  </div> 
               </td> 
            </tr> 
         </table> 
         <table class="grid dict">
            <tr> 
               <td> 
                  <b> Data Requirements: </b> 
               </td> 
            </tr> 
            <tr> 
               <td style="padding-left: 25px; padding-right: 25px;">
                  <div> 
                     <p style="margin-bottom: 5px;">
                        <b> type: </b> 
                        <span> Condition</span> 
                     </p> 
                     <p style="margin-bottom: 5px;">
                        <b> code filter:</b> 
                        <br/>  
                        <span style="padding-left: 25px;">
                           <b> path: </b> 
                           <span> category</span> 
                        </span> 
                        <br/>  
                        <span style="padding-left: 25px;">
                           <b> code:</b> 
                           <span> diagnosis</span> 
                        </span> 
                     </p> 
                     <p style="margin-bottom: 5px;">
                        <b> code filter:</b> 
                        <br/>  
                        <span style="padding-left: 25px;">
                           <b> path: </b> 
                           <span> clinicalStatus</span> 
                        </span> 
                        <br/>  
                        <span style="padding-left: 25px;">
                           <b> code:</b> 
                           <span> confirmed</span> 
                        </span> 
                     </p> 
                     <p style="margin-bottom: 5px;">
                        <b> code filter:</b> 
                        <br/>  
                        <span style="padding-left: 25px;">
                           <b> path: </b> 
                           <span> code</span> 
                        </span> 
                        <br/>  
                        <span style="padding-left: 25px;">
                           <b> valueset: </b> 
                           <span> 2.16.840.1.113883.3.464.1003.102.12.1011</span> 
                        </span> 
                     </p> 
                  </div> 
               </td> 
            </tr> 
         </table> 
         <table class="grid dict">
            <tr> 
               <td> 
                  <b> Data Requirements: </b> 
               </td> 
            </tr> 
            <tr> 
               <td style="padding-left: 25px; padding-right: 25px;">
                  <div> 
                     <p style="margin-bottom: 5px;">
                        <b> type: </b> 
                        <span> Condition</span> 
                     </p> 
                     <p style="margin-bottom: 5px;">
                        <b> code filter:</b> 
                        <br/>  
                        <span style="padding-left: 25px;">
                           <b> path: </b> 
                           <span> category</span> 
                        </span> 
                        <br/>  
                        <span style="padding-left: 25px;">
                           <b> code:</b> 
                           <span> diagnosis</span> 
                        </span> 
                     </p> 
                     <p style="margin-bottom: 5px;">
                        <b> code filter:</b> 
                        <br/>  
                        <span style="padding-left: 25px;">
                           <b> path: </b> 
                           <span> clinicalStatus</span> 
                        </span> 
                        <br/>  
                        <span style="padding-left: 25px;">
                           <b> code:</b> 
                           <span> confirmed</span> 
                        </span> 
                     </p> 
                     <p style="margin-bottom: 5px;">
                        <b> code filter:</b> 
                        <br/>  
                        <span style="padding-left: 25px;">
                           <b> path: </b> 
                           <span> code</span> 
                        </span> 
                        <br/>  
                        <span style="padding-left: 25px;">
                           <b> valueset: </b> 
                           <span> 2.16.840.1.113883.3.464.1003.102.12.1012</span> 
                        </span> 
                     </p> 
                  </div> 
               </td> 
            </tr> 
         </table> 
         <table class="grid dict">
            <tr> 
               <td> 
                  <b> Data Requirements: </b> 
               </td> 
            </tr> 
            <tr> 
               <td style="padding-left: 25px; padding-right: 25px;">
                  <div> 
                     <p style="margin-bottom: 5px;">
                        <b> type: </b> 
                        <span> Encounter</span> 
                     </p> 
                     <p style="margin-bottom: 5px;">
                        <b> code filter:</b> 
                        <br/>  
                        <span style="padding-left: 25px;">
                           <b> path: </b> 
                           <span> status</span> 
                        </span> 
                        <br/>  
                        <span style="padding-left: 25px;">
                           <b> code:</b> 
                           <span> finished</span> 
                        </span> 
                     </p> 
                     <p style="margin-bottom: 5px;">
                        <b> code filter:</b> 
                        <br/>  
                        <span style="padding-left: 25px;">
                           <b> path: </b> 
                           <span> class</span> 
                        </span> 
                        <br/>  
                        <span style="padding-left: 25px;">
                           <b> code:</b> 
                           <span> ambulatory</span> 
                        </span> 
                     </p> 
                     <p style="margin-bottom: 5px;">
                        <b> code filter:</b> 
                        <br/>  
                        <span style="padding-left: 25px;">
                           <b> path: </b> 
                           <span> type</span> 
                        </span> 
                        <br/>  
                        <span style="padding-left: 25px;">
                           <b> valueset: </b> 
                           <span> 2.16.840.1.113883.3.464.1003.101.12.1061</span> 
                        </span> 
                     </p> 
                  </div> 
               </td> 
            </tr> 
         </table> 
         <table class="grid dict">
            <tr> 
               <td> 
                  <b> Data Requirements: </b> 
               </td> 
            </tr> 
            <tr> 
               <td style="padding-left: 25px; padding-right: 25px;">
                  <div> 
                     <p style="margin-bottom: 5px;">
                        <b> type: </b> 
                        <span> DiagnosticReport</span> 
                     </p> 
                     <p style="margin-bottom: 5px;">
                        <b> code filter:</b> 
                        <br/>  
                        <span style="padding-left: 25px;">
                           <b> path: </b> 
                           <span> diagnosis</span> 
                        </span> 
                        <br/>  
                        <span style="padding-left: 25px;">
                           <b> valueset: </b> 
                           <span> 2.16.840.1.113883.3.464.1003.198.12.1012</span> 
                        </span> 
                     </p> 
                  </div> 
               </td> 
            </tr> 
         </table> 
         <table class="grid dict">
            <tr> 
               <td> 
                  <b> Data Requirements: </b> 
               </td> 
            </tr> 
            <tr> 
               <td style="padding-left: 25px; padding-right: 25px;">
                  <div> 
                     <p style="margin-bottom: 5px;">
                        <b> type: </b> 
                        <span> Medication</span> 
                     </p> 
                     <p style="margin-bottom: 5px;">
                        <b> code filter:</b> 
                        <br/>  
                        <span style="padding-left: 25px;">
                           <b> path: </b> 
                           <span> code</span> 
                        </span> 
                        <br/>  
                        <span style="padding-left: 25px;">
                           <b> valueset: </b> 
                           <span> 2.16.840.1.113883.3.464.1003.196.12.1001</span> 
                        </span> 
                     </p> 
                  </div> 
               </td> 
            </tr> 
         </table> 
         <table class="grid dict">
            <tr> 
               <td> 
                  <b> Data Requirements: </b> 
               </td> 
            </tr> 
            <tr> 
               <td style="padding-left: 25px; padding-right: 25px;">
                  <div> 
                     <p style="margin-bottom: 5px;">
                        <b> type: </b> 
                        <span> MedicationRequest</span> 
                     </p> 
                     <p style="margin-bottom: 5px;">
                        <b> code filter:</b> 
                        <br/>  
                        <span style="padding-left: 25px;">
                           <b> path: </b> 
                           <span> status</span> 
                        </span> 
                        <br/>  
                        <span style="padding-left: 25px;">
                           <b> code:</b> 
                           <span> active</span> 
                        </span> 
                     </p> 
                     <p style="margin-bottom: 5px;">
                        <b> code filter:</b> 
                        <br/>  
                        <span style="padding-left: 25px;">
                           <b> path: </b> 
                           <span> medication.code</span> 
                        </span> 
                        <br/>  
                        <span style="padding-left: 25px;">
                           <b> valueset: </b> 
                           <span> 2.16.840.1.113883.3.464.1003.196.12.1001</span> 
                        </span> 
                     </p> 
                  </div> 
               </td> 
            </tr> 
         </table> 
         <table class="grid dict">
            <tr> 
               <td> 
                  <b> Data Requirements: </b> 
               </td> 
            </tr> 
            <tr> 
               <td style="padding-left: 25px; padding-right: 25px;">
                  <div> 
                     <p style="margin-bottom: 5px;">
                        <b> type: </b> 
                        <span> MedicationStatement</span> 
                     </p> 
                     <p style="margin-bottom: 5px;">
                        <b> code filter:</b> 
                        <br/>  
                        <span style="padding-left: 25px;">
                           <b> path: </b> 
                           <span> status</span> 
                        </span> 
                        <br/>  
                        <span style="padding-left: 25px;">
                           <b> code:</b> 
                           <span> completed</span> 
                        </span> 
                     </p> 
                     <p style="margin-bottom: 5px;">
                        <b> code filter:</b> 
                        <br/>  
                        <span style="padding-left: 25px;">
                           <b> path: </b> 
                           <span> medication.code</span> 
                        </span> 
                        <br/>  
                        <span style="padding-left: 25px;">
                           <b> valueset: </b> 
                           <span> 2.16.840.1.113883.3.464.1003.196.12.1001</span> 
                        </span> 
                     </p> 
                  </div> 
               </td> 
            </tr> 
         </table> 
         <table class="grid dict">
            <tr> 
               <td> 
                  <b> Content: </b> 
               </td> 
            </tr> 
            <tr> 
               <td style="padding-left: 25px; padding-right: 25px;">
                  <p style="margin-bottom: 5px;">
                     <b> type: </b> 
                     <span> text/cql</span> 
                  </p> 
                  <p style="margin-bottom: 5px;">
                     <b> url: </b> 
                     <span> library-cms146-example-content.cql</span> 
                  </p> 
               </td> 
            </tr> 
         </table> 
      </div> 
  </text> 
  <identifier> 
    <use value="official"/> 
    <value value="CMS146"/> 
  </identifier> 
  <version value="2.0.0"/> 
  <title value="Appropriate Testing for Children with Pharyngitis"/> 
  <status value="draft"/> 
  <type> 
    <coding> 
      <code value="logic-library"/> 
    </coding> 
  </type> 
  <date value="2015-07-22"/> 
  <description value="Logic for CMS 146: Appropriate Testing for Children with Pharyngitis"/> 
  <relatedArtifact> 
    <type value="depends-on"/> 
    <resource> 
      <reference value="Library/library-quick-model-definition"/> 
    </resource> 
  </relatedArtifact> 

  <dataRequirement> 
    <type value="Patient"/> 
  </dataRequirement> 

  <dataRequirement> 
    <type value="Condition"/> 
    <codeFilter> 
      <path value="category"/> 
      <valueCode value="diagnosis"/> 
    </codeFilter> 
    <codeFilter> 
      <path value="clinicalStatus"/> 
      <valueCode value="confirmed"/> 
    </codeFilter> 
    <codeFilter> 
      <path value="code"/> 
      <valueSetString value="2.16.840.1.113883.3.464.1003.102.12.1011"/> 
    </codeFilter> 
  </dataRequirement> 

  <dataRequirement> 
    <type value="Condition"/> 
    <codeFilter> 
      <path value="category"/> 
      <valueCode value="diagnosis"/> 
    </codeFilter> 
    <codeFilter> 
      <path value="clinicalStatus"/> 
      <valueCode value="confirmed"/> 
    </codeFilter> 
    <codeFilter> 
      <path value="code"/> 
      <valueSetString value="2.16.840.1.113883.3.464.1003.102.12.1012"/> 
    </codeFilter> 
  </dataRequirement> 

  <dataRequirement> 
    <type value="Encounter"/> 
    <codeFilter> 
      <path value="status"/> 
      <valueCode value="finished"/> 
    </codeFilter> 
    <codeFilter> 
      <path value="class"/> 
      <valueCode value="ambulatory"/> 
    </codeFilter> 
    <codeFilter> 
      <path value="type"/> 
      <valueSetString value="2.16.840.1.113883.3.464.1003.101.12.1061"/> 
    </codeFilter> 
  </dataRequirement> 

  <dataRequirement> 
    <type value="DiagnosticReport"/> 
    <codeFilter> 
      <path value="diagnosis"/> 
      <valueSetString value="2.16.840.1.113883.3.464.1003.198.12.1012"/> 
    </codeFilter> 
  </dataRequirement> 

  <dataRequirement> 
    <type value="Medication"/> 
    <codeFilter> 
      <path value="code"/> 
      <valueSetString value="2.16.840.1.113883.3.464.1003.196.12.1001"/> 
    </codeFilter> 
  </dataRequirement> 

  <dataRequirement> 
    <type value="MedicationRequest"/> 
    <codeFilter> 
      <path value="status"/> 
      <valueCode value="active"/> 
    </codeFilter> 
    <codeFilter> 
      <path value="medication.code"/> 
      <valueSetString value="2.16.840.1.113883.3.464.1003.196.12.1001"/> 
    </codeFilter> 
  </dataRequirement> 

  <dataRequirement> 
    <type value="MedicationStatement"/> 
    <codeFilter> 
      <path value="status"/> 
      <valueCode value="completed"/> 
    </codeFilter> 
    <codeFilter> 
      <path value="medication.code"/> 
      <valueSetString value="2.16.840.1.113883.3.464.1003.196.12.1001"/> 
    </codeFilter> 
  </dataRequirement> 

  <content> 
    <contentType value="text/cql"/> 
    <url value="library-cms146-example-content.cql"/> 
  </content> 

</Library> 

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.