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

<CodeSystem xmlns="http://hl7.org/fhir">
  <id value="query-issue-reason"/>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: CodeSystem query-issue-reason</b></p><a name="query-issue-reason"> </a><a name="hcquery-issue-reason"> </a><p>This case-sensitive code system <code>https://www.core.blackpear.com/fhir/CodeSystem/query-issue-reason</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">success<a name="query-issue-reason-success"> </a></td><td>Successful Search</td><td>Search was successful</td></tr><tr><td style="white-space:nowrap">no-match<a name="query-issue-reason-no-match"> </a></td><td>No Matching Resources</td><td>Endpoint did not match for requested resource</td></tr><tr><td style="white-space:nowrap">endpoint-error<a name="query-issue-reason-endpoint-error"> </a></td><td>Endpoint Server Error</td><td>Endpoint responded to request with an error</td></tr><tr><td style="white-space:nowrap">timeout-error<a name="query-issue-reason-timeout-error"> </a></td><td>Endpoint Server Timeout</td><td>Request timed out before endpoint responded</td></tr><tr><td style="white-space:nowrap">unsupported-resource-type<a name="query-issue-reason-unsupported-resource-type"> </a></td><td>Unsupported Resource Type</td><td>Endpoint does not support this resourceType</td></tr><tr><td style="white-space:nowrap">patient-not-found<a name="query-issue-reason-patient-not-found"> </a></td><td>Patient Not Found</td><td>Endpoint did not provide data for this patient</td></tr><tr><td style="white-space:nowrap">multiple-patient-matches<a name="query-issue-reason-multiple-patient-matches"> </a></td><td>Multiple Patient Matches Found</td><td>Endpoint did not uniquely identify patient</td></tr><tr><td style="white-space:nowrap">page-limit-reached<a name="query-issue-reason-page-limit-reached"> </a></td><td>Page limit reached</td><td>Collection stopped at the maximum number of pages</td></tr><tr><td style="white-space:nowrap">time-budget-exceeded<a name="query-issue-reason-time-budget-exceeded"> </a></td><td>Time budget exceeded</td><td>Collection stopped when the time budget for this source ran out</td></tr><tr><td style="white-space:nowrap">next-page-missing<a name="query-issue-reason-next-page-missing"> </a></td><td>Next page missing</td><td>The source advertised more results but supplied no usable next link</td></tr><tr><td style="white-space:nowrap">upstream-reported-failure<a name="query-issue-reason-upstream-reported-failure"> </a></td><td>Source reported a failure</td><td>The source's own OperationOutcome reported an error within the searchset</td></tr><tr><td style="white-space:nowrap">page-fetch-failed<a name="query-issue-reason-page-fetch-failed"> </a></td><td>Page fetch failed</td><td>A page after the first could not be retrieved</td></tr><tr><td style="white-space:nowrap">result-count-short<a name="query-issue-reason-result-count-short"> </a></td><td>Fewer results than reported</td><td>The source returned fewer resources than its own total</td></tr><tr><td style="white-space:nowrap">loader-failure<a name="query-issue-reason-loader-failure"> </a></td><td>Loader failure</td><td>The cache data loader failed before the source outcome could be determined</td></tr><tr><td style="white-space:nowrap">suppression-undetermined<a name="query-issue-reason-suppression-undetermined"> </a></td><td>Suppression undetermined</td><td>The source's consent Observations could not be read, so whether its data must be suppressed is unknown and no further data were requested from it</td></tr></table></div>
  </text>
  <url value="https://www.core.blackpear.com/fhir/CodeSystem/query-issue-reason"/>
  <version value="0.1.0"/>
  <name value="QueryIssueReasonCodes"/>
  <title value="Query Issue Reason Codes"/>
  <status value="active"/>
  <experimental value="false"/>
  <date value="2026-11-13T16:51:07+00:00"/>
  <description value="Machine-readable outcome of a Query API data source. Codes shared with the QuickFHIR aggregator adapter's endpoint-response CodeSystem use its code, display and definition, so callers can read both APIs the same way. Adding a code is non-breaking; callers must treat unknown codes as a generic warning."/>
  <caseSensitive value="true"/>
  <content value="complete"/>
  <count value="15"/>
  <concept>
    <code value="success"/>
    <display value="Successful Search"/>
    <definition value="Search was successful"/>
  </concept>
  <concept>
    <code value="no-match"/>
    <display value="No Matching Resources"/>
    <definition value="Endpoint did not match for requested resource"/>
  </concept>
  <concept>
    <code value="endpoint-error"/>
    <display value="Endpoint Server Error"/>
    <definition value="Endpoint responded to request with an error"/>
  </concept>
  <concept>
    <code value="timeout-error"/>
    <display value="Endpoint Server Timeout"/>
    <definition value="Request timed out before endpoint responded"/>
  </concept>
  <concept>
    <code value="unsupported-resource-type"/>
    <display value="Unsupported Resource Type"/>
    <definition value="Endpoint does not support this resourceType"/>
  </concept>
  <concept>
    <code value="patient-not-found"/>
    <display value="Patient Not Found"/>
    <definition value="Endpoint did not provide data for this patient"/>
  </concept>
  <concept>
    <code value="multiple-patient-matches"/>
    <display value="Multiple Patient Matches Found"/>
    <definition value="Endpoint did not uniquely identify patient"/>
  </concept>
  <concept>
    <code value="page-limit-reached"/>
    <display value="Page limit reached"/>
    <definition value="Collection stopped at the maximum number of pages"/>
  </concept>
  <concept>
    <code value="time-budget-exceeded"/>
    <display value="Time budget exceeded"/>
    <definition value="Collection stopped when the time budget for this source ran out"/>
  </concept>
  <concept>
    <code value="next-page-missing"/>
    <display value="Next page missing"/>
    <definition value="The source advertised more results but supplied no usable next link"/>
  </concept>
  <concept>
    <code value="upstream-reported-failure"/>
    <display value="Source reported a failure"/>
    <definition value="The source's own OperationOutcome reported an error within the searchset"/>
  </concept>
  <concept>
    <code value="page-fetch-failed"/>
    <display value="Page fetch failed"/>
    <definition value="A page after the first could not be retrieved"/>
  </concept>
  <concept>
    <code value="result-count-short"/>
    <display value="Fewer results than reported"/>
    <definition value="The source returned fewer resources than its own total"/>
  </concept>
  <concept>
    <code value="loader-failure"/>
    <display value="Loader failure"/>
    <definition value="The cache data loader failed before the source outcome could be determined"/>
  </concept>
  <concept>
    <code value="suppression-undetermined"/>
    <display value="Suppression undetermined"/>
    <definition value="The source's consent Observations could not be read, so whether its data must be suppressed is unknown and no further data were requested from it"/>
  </concept>
</CodeSystem>