R4 Draft for Comment

This page is part of the FHIR Specification (v3.2.0: R4 Ballot 1). 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-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

Chlamydia Screening Common Library (id = "example")

<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> ChalmydiaScreening_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> 

  <identifier> 
    <use value="official"/> 
    <value value="ChalmydiaScreening_Common"/> 
  </identifier> 
  <version value="2.0.0"/> 
  <title value="Chlamydia Screening Common Library"/> 
  <status value="draft"/> 
  <type> 
    <coding> 
      <code value="logic-library"/> 
    </coding> 
  </type> 
  <date value="2015-07-22"/> 
  <description value="Common Logic for adherence to Chlamydia Screening guidelines"/> 
  <topic> 
    <text value="Chlamydia Screening"/> 
  </topic> 

  <relatedArtifact> 
    <type value="depends-on"/> 
    <resource> 
      <reference value="Library/library-quick-model-definition"/> 
    </resource> 
  </relatedArtifact> 

  <!--  valueSet>
    <name value="Female Administrative Sex"/>
    <identifier value="2.16.840.1.113883.3.560.100.2"/>
  </valueSet  -->
  <!--   ... other value sets as defined in the library   -->

  <dataRequirement> 
    <type value="Condition"/> 
    <codeFilter> 
      <path value="code"/> 
      <valueSetUri value="uin:oid:2.16.840.1.113883.3.464.1003.111.12.1006"/>  <!--   Other Female Reproductive Conditions   -->
    </codeFilter> 
  </dataRequirement> 
  <!--   ... other data requirements as defined in the library   -->

  <content> 
    <contentType value="text/cql"/> 
    <url value="library-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.