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

<CodeSystem xmlns="http://hl7.org/fhir">
  <id value="query-pattern-coverage"/>
  <meta>
    <profile value="http://hl7.org/fhir/StructureDefinition/shareablecodesystem"/>
  </meta>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: CodeSystem query-pattern-coverage</b></p><a name="query-pattern-coverage"> </a><a name="hcquery-pattern-coverage"> </a><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px"/><p style="margin-bottom: 0px">Profile: <a href="http://hl7.org/fhir/R4/shareablecodesystem.html">Shareable CodeSystem</a></p></div><p>This case-sensitive code system <code>http://hl7.org/fhir/uv/cql/CodeSystem/query-pattern-coverage</code> defines the following codes:</p><table class="codes"><tr><td style="white-space:nowrap"><b>Code</b></td><td><b>Display</b></td><td><b>Definition</b></td></tr><tr><td style="white-space:nowrap">total<a name="query-pattern-coverage-total"> </a></td><td>Total</td><td>Indicates that the union of the results of the query patterns is exactly the data described by the data requirement (i.e. every criteria of the data requirement is expressed in the query patterns, and is expressed with the same semantics). No further filtering of the results is required.</td></tr><tr><td style="white-space:nowrap">partial<a name="query-pattern-coverage-partial"> </a></td><td>Partial</td><td>Indicates that the union of the results of the query patterns is a superset of the data described by the data requirement (i.e. at least one criteria of the data requirement could not be expressed in the query patterns, or could only be expressed with broader semantics). The consumer must apply the criteria of the data requirement to the results.</td></tr><tr><td style="white-space:nowrap">non<a name="query-pattern-coverage-non"> </a></td><td>Non</td><td>Indicates that no criteria of the data requirement other than the resource type and the context could be expressed in the query patterns. The consumer must apply the criteria of the data requirement to the results.</td></tr></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>
  <extension url="http://hl7.org/fhir/StructureDefinition/cqf-knowledgeRepresentationLevel">
    <valueCode value="structured"/>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="cds"/>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="trial-use"/>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="1"/>
  </extension>
  <url value="http://hl7.org/fhir/uv/cql/CodeSystem/query-pattern-coverage"/>
  <identifier>
    <system value="urn:ietf:rfc:3986"/>
    <value value="urn:oid:2.16.840.1.113883.4.642.40.37.16.3"/>
  </identifier>
  <version value="3.0.0-ballot"/>
  <name value="QueryPatternCoverage"/>
  <title value="Query Pattern Coverage Code System"/>
  <status value="active"/>
  <experimental value="false"/>
  <date value="2026-08-04"/>
  <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="Codes representing the extent to which the FHIR query patterns given for a data requirement cover the criteria of that data requirement, total, partial, or non. Note that in all cases, the union of the results of the query patterns is expected to be sound, meaning that it includes all the data described by the data requirement; the coverage indicates only whether additional data may also be returned (i.e. whether the consumer must still apply the criteria of the data requirement to the results)."/>
  <jurisdiction>
    <coding>
      <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
      <code value="001"/>
      <display value="World"/>
    </coding>
  </jurisdiction>
  <caseSensitive value="true"/>
  <valueSet value="http://hl7.org/fhir/uv/cql/ValueSet/query-pattern-coverage"/>
  <content value="complete"/>
  <concept>
    <code value="total"/>
    <display value="Total"/>
    <definition value="Indicates that the union of the results of the query patterns is exactly the data described by the data requirement (i.e. every criteria of the data requirement is expressed in the query patterns, and is expressed with the same semantics). No further filtering of the results is required."/>
  </concept>
  <concept>
    <code value="partial"/>
    <display value="Partial"/>
    <definition value="Indicates that the union of the results of the query patterns is a superset of the data described by the data requirement (i.e. at least one criteria of the data requirement could not be expressed in the query patterns, or could only be expressed with broader semantics). The consumer must apply the criteria of the data requirement to the results."/>
  </concept>
  <concept>
    <code value="non"/>
    <display value="Non"/>
    <definition value="Indicates that no criteria of the data requirement other than the resource type and the context could be expressed in the query patterns. The consumer must apply the criteria of the data requirement to the results."/>
  </concept>
</CodeSystem>