R6 Ballot (2nd Draft)

Publish-box (todo)

Example Library/example (XML)

Clinical Decision Support Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: No defined compartments

Raw XML (canonical form + also see XML Format Specification)

Jump past Narrative

Chlamydia Screening Common Library (id = "example")

<?xml version="1.0" encoding="UTF-8"?>

<Library xmlns="http://hl7.org/fhir">
  <id value="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/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> ChlamydiaScreening_Common</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;">Chlamydia Screening Common Library</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;">Common Logic for adherence to Chlamydia Screening guidelines</td> 
            
        </tr> 
         
      </table> 
         
      <p/>  
         
      <table class="grid dict">
            
        <tr> 
               
          <td> 
                  
            <b> Topic: </b> 
               
          </td> 
            
        </tr> 
            
        <tr> 
               
          <td style="padding-right: 25px;">
                  
            <span style="padding-left: 25px;">
                     
              <b> text: </b> 
                     
              <span> Chlamydia Screening</span> 
                  
            </span> 
               
          </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> Condition</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> Other Female Reproductive Conditions</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-example-content.cql</span> 
                  
            </p> 
               
          </td> 
            
        </tr> 
         
      </table> 
      
    </div> 
  </text> 
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="cds"/> 
  </extension> 
  <identifier> 
    <use value="official"/> 
    <value value="ChlamydiaScreening_Common"/> 
  </identifier> 
  <version value="2.0.0"/> 
  <name value="ChlamydiaScreeningCommonLibrary"/> 
  <title value="Chlamydia Screening Common Library"/> 
  <status value="draft"/> 
  <type> 
    <coding> 
      <code value="logic-library"/> 
    </coding> 
  </type> 
  <date value="2015-07-22"/> 
  <publisher value="HL7 International / Clinical Decision Support"/> 
  <contact> 
    <telecom> 
      <system value="url"/> 
      <value value="http://www.hl7.org/Special/committees/dss"/> 
    </telecom> 
  </contact> 
  <description value="Common Logic for adherence to Chlamydia Screening guidelines"/> 
  <topic> 
    <text value="Chlamydia Screening"/> 
  </topic> 
  <relatedArtifact> 
    <type value="depends-on"/> 
    <resource value="http://hl7.org/fhir/Library/library-quick-model-definition"/> 
  </relatedArtifact> 
  <dataRequirement> 
    <type value="Condition"/> 
    <codeFilter> 
      <path value="code"/> 
      <valueSet value="urn:oid:2.16.840.1.113883.3.464.1003.111.12.1006"/> 
    </codeFilter> 
  </dataRequirement> 
  <content>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24gWyJ
    Db25kaXRpb24iOiAiSElWIl0KICAgIHVuaW9uIFsiQ29uZGl0aW9uIjogIlN5cGhpbGlzIl0KICAgIHVuaW9uIFsiQ29uZ
    Gl0aW9uIjogIkNvbXBsaWNhdGlvbnMgb2YgUHJlZ25hbmN5LCBDaGlsZGJpcnRoIGFuZCB0aGUgUHVlcnBlcml1bSJdCgp
    kZWZpbmUgIkxhYm9yYXRvcnkgVGVzdHMgSW5kaWNhdGluZyBTZXh1YWwgQWN0aXZpdHkiOgogICAgWyJEaWFnbm9zdGljT
    3JkZXIiOiAiUHJlZ25hbmN5IFRlc3QiXQogICAgdW5pb24gWyJEaWFnbm9zdGljT3JkZXIiOiAiUGFwIFRlc3QiXQogICA
    gdW5pb24gWyJEaWFnbm9zdGljT3JkZXIiOiAiTGFiIFRlc3RzIER1cmluZyBQcmVnbmFuY3kiXQoJdW5pb24gWyJEaWFnb
    m9zdGljT3JkZXIiOiAiTGFiIFRlc3RzIGZvciBTZXh1YWxseSBUcmFuc21pdHRlZCBJbmZlY3Rpb25zIl0KCmRlZmluZSA
    iVGVzdHMgUGVyZm9ybWVkIEZvciBDaGxhbXlkaWEiOgoJWyJEaWFnbm9zdGljUmVwb3J0IjogIkNobGFteWRpYSBTY3JlZ
    W5pbmciXQoKZGVmaW5lICJSZXN1bHRzIFByZXNlbnQgRm9yIENobGFteWRpYSBTY3JlZW5pbmciOgogICAgWyJEaWFnbm9
    zdGljUmVwb3J0IjogIkNobGFteWRpYSBTY3JlZW5pbmciXSBSIHdoZXJlIFIuInJlc3VsdCIgaXMgbm90IG51bGwK"/> 
  </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.