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

<Library xmlns="http://hl7.org/fhir">
  <id value="sql-query-library-example"/>
  <meta>
    <profile value="https://openrecruit.dev/fhir/StructureDefinition/sql-query-library"/>
  </meta>
  <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">Title</th>



<td class="content-container">All patients</td>


</tr>





<tr>


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



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


</tr>


































<tr>


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



<td class="content-container">The recruIT Developers</td>


</tr>



<tr>


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



<td class="content-container">The recruIT Developers</td>


</tr>

















<tr>


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



<td class="content-container">
    <a href="https://simplifier.net/resolve?scope=de.medizininformatikinitiative.kerndatensatz.studie@2026.0.2&amp;canonical=https://sql-on-fhir.org/ig/CodeSystem/LibraryTypesCodes">https://sql-on-fhir.org/ig/CodeSystem/LibraryTypesCodes</a>#sql-query


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



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


</tr>








  <tr>


<th colspan="2" scope="row" class="row-header">Library Content</th>


</tr>
  
    
    <tr>
      <th scope="row" class="row-header">application/sql;dialect=trinoContent</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>
  <url value="https://openrecruit.dev/fhir/Library/sql-query-library-example"/>
  <version value="11.3.0"/>
  <name value="all-patients"/>
  <title value="All patients"/>
  <status value="active"/>
  <type>
    <coding>
      <system value="https://sql-on-fhir.org/ig/CodeSystem/LibraryTypesCodes"/>
      <code value="sql-query"/>
    </coding>
  </type>
  <date value="2026-12-01T18:57:23+00:00"/>
  <publisher value="The recruIT Developers"/>
  <contact>
    <name value="The recruIT Developers"/>
    <telecom>
      <system value="url"/>
      <value value="https://openrecruit.dev"/>
    </telecom>
  </contact>
  <content>
    <extension url="https://sql-on-fhir.org/ig/StructureDefinition/sql-text">
      <valueString value="SELECT patient.id AS patient_id, TRUE AS is_met FROM fhir.default.patient AS patient"/>
    </extension>
    <contentType value="application/sql;dialect=trino"/>
    <data value="U0VMRUNUIHBhdGllbnQuaWQgQVMgcGF0aWVudF9pZCwgVFJVRSBBUyBpc19tZXQgRlJPTSBmaGlyLmRlZmF1bHQucGF0aWVudCBBUyBwYXRpZW50"/>
  </content>
</Library>