@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://fhir.huli.ai/r4/CapabilityStatement/huli-server> a fhir:CapabilityStatement ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "huli-server"] ; # 
  fhir:text [
     fhir:status [ fhir:v "extensions" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: CapabilityStatement huli-server</b></p><a name=\"huli-server\"> </a><a name=\"hchuli-server\"> </a><h2 id=\"title\">Huli FHIR R4 Server Capabilities</h2><ul><li>Implementation Guide Version: 0.1.0 </li><li>FHIR Version: 4.0.1 </li><li>Supported Formats: <code>json</code></li><li>Published on: 2026-01-01 </li><li>Published by: Huli </li></ul><blockquote class=\"impl-note\"><p><strong>Note to Implementers: FHIR Capabilities</strong></p><p>Any FHIR capability may be 'allowed' by the system unless explicitly marked as 'SHALL NOT'. A few items are marked as MAY in the Implementation Guide to highlight their potential relevance to the use case.</p></blockquote><h2 id=\"rest\">FHIR RESTful Capabilities</h2><div class=\"panel panel-default\"><div class=\"panel-heading\"><h3 id=\"mode1\" class=\"panel-title\">Mode: <code>server</code></h3></div><div class=\"panel-body\"><div class=\"lead\"><em>Security</em></div><div class=\"row\"><div class=\"col-lg-6\">Enable CORS: no</div><div class=\"col-lg-6\">Security services supported: <code>SMART-on-FHIR</code></div></div></div></div><h3 id=\"resourcesCap1\">Capabilities by Resource/Profile</h3><h4 id=\"resourcesSummary1\">Summary</h4><p>The summary table lists the resources that are part of this configuration, and for each resource it lists:</p><ul><li>The relevant profiles (if any)</li><li>The interactions supported by each resource (<b><span class=\"bg-info\">R</span></b>ead, <b><span class=\"bg-info\">S</span></b>earch, <b><span class=\"bg-info\">U</span></b>pdate, and <b><span class=\"bg-info\">C</span></b>reate, are always shown, while <b><span class=\"bg-info\">VR</span></b>ead, <b><span class=\"bg-info\">P</span></b>atch, <b><span class=\"bg-info\">D</span></b>elete, <b><span class=\"bg-info\">H</span></b>istory on <b><span class=\"bg-info\">I</span></b>nstance, or <b><span class=\"bg-info\">H</span></b>istory on <b><span class=\"bg-info\">T</span></b>ype are only present if at least one of the resources has support for them.</li><li><span>The required, recommended, and some optional search parameters (if any). </span></li><li>The linked resources enabled for <code>_include</code></li><li>The other resources enabled for <code>_revinclude</code></li><li>The operations on the resource (if any)</li></ul><div class=\"table-responsive\"><table class=\"table table-condensed table-hover\"><thead><tr><th><b>Resource Type</b></th><th><b>Profile</b></th><th class=\"text-center\"><b title=\"GET a resource (read interaction)\">R</b></th><th class=\"text-center\"><b title=\"GET all set of resources of the type (search interaction)\">S</b></th><th class=\"text-center\"><b title=\"PUT a new resource version (update interaction)\">U</b></th><th class=\"text-center\"><b title=\"POST a new resource (create interaction)\">C</b></th><th class=\"text-center\"><b title=\"DELETE a resource (delete interaction)\">D</b></th><th><b title=\"Required and recommended search parameters\">Searches</b></th><th><code><b>_include</b></code></th><th><code><b>_revinclude</b></code></th><th><b>Operations</b></th></tr></thead><tbody><tr><td><a href=\"#Patient1-1\">Patient</a></td><td> </td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\"/><td>_id, identifier, name, gender, birthdate, active, _count, _cursor</td><td/><td/><td><code>$everything</code></td></tr><tr><td><a href=\"#Appointment1-2\">Appointment</a></td><td> </td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\"/><td>_id, patient, practitioner, date, status, appointment-type, _count, _cursor</td><td/><td/><td/></tr><tr><td><a href=\"#Encounter1-3\">Encounter</a></td><td> </td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\"/><td>_id, patient, practitioner, date, status, class, _count, _cursor</td><td/><td/><td/></tr><tr><td><a href=\"#Observation1-4\">Observation</a></td><td> </td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\"/><td>_id, patient, encounter, code, date, status, category, _count, _cursor</td><td/><td/><td/></tr><tr><td><a href=\"#MedicationRequest1-5\">MedicationRequest</a></td><td> </td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\"/><td>patient, encounter, _count, _cursor</td><td/><td/><td/></tr><tr><td><a href=\"#ServiceRequest1-6\">ServiceRequest</a></td><td> </td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\"/><td class=\"text-center\">y</td><td class=\"text-center\"/><td>patient, encounter, _count, _cursor</td><td/><td/><td/></tr><tr><td><a href=\"#Composition1-7\">Composition</a></td><td> </td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\"/><td>_id, patient, type, date, _count, _cursor</td><td/><td/><td/></tr><tr><td><a href=\"#DocumentReference1-8\">DocumentReference</a></td><td> </td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\"/><td>patient, type, category, date, _count, _cursor</td><td/><td/><td><code>$upload</code></td></tr><tr><td><a href=\"#Practitioner1-9\">Practitioner</a></td><td> </td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\"/><td class=\"text-center\"/><td class=\"text-center\"/><td>name, _count, _offset</td><td/><td/><td/></tr><tr><td><a href=\"#Organization1-10\">Organization</a></td><td> </td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\"/><td class=\"text-center\"/><td class=\"text-center\"/><td>_id</td><td/><td/><td/></tr><tr><td><a href=\"#Subscription1-11\">Subscription</a></td><td> </td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td>_id, status, _count, _offset</td><td/><td/><td><code>$replay</code>, <code>$stats</code>, <code>$deliveries</code></td></tr><tr><td><a href=\"#Location1-12\">Location</a></td><td> </td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\"/><td class=\"text-center\"/><td class=\"text-center\"/><td>_id, _count, _offset</td><td/><td/><td/></tr><tr><td><a href=\"#HealthcareService1-13\">HealthcareService</a></td><td> </td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\"/><td class=\"text-center\"/><td class=\"text-center\"/><td>_id, _count, _offset</td><td/><td/><td/></tr><tr><td><a href=\"#PractitionerRole1-14\">PractitionerRole</a></td><td> </td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\"/><td class=\"text-center\"/><td class=\"text-center\"/><td>_id, practitioner, location, _count, _offset</td><td/><td/><td/></tr><tr><td><a href=\"#Schedule1-15\">Schedule</a></td><td> </td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\"/><td class=\"text-center\"/><td class=\"text-center\"/><td>_id, actor, service-type, _count, _offset</td><td/><td/><td/></tr><tr><td><a href=\"#Slot1-16\">Slot</a></td><td> </td><td class=\"text-center\"/><td class=\"text-center\">y</td><td class=\"text-center\"/><td class=\"text-center\"/><td class=\"text-center\"/><td>schedule, actor, start, end, _count, _offset</td><td/><td/><td/></tr><tr><td><a href=\"#Device1-17\">Device</a></td><td> </td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\"/><td class=\"text-center\"/><td class=\"text-center\"/><td>_id, _count, _offset</td><td/><td/><td/></tr><tr><td><a href=\"#CodeSystem1-18\">CodeSystem</a></td><td> </td><td class=\"text-center\">y</td><td class=\"text-center\"/><td class=\"text-center\"/><td class=\"text-center\"/><td class=\"text-center\"/><td/><td/><td/><td/></tr><tr><td><a href=\"#ValueSet1-19\">ValueSet</a></td><td> </td><td class=\"text-center\"/><td class=\"text-center\"/><td class=\"text-center\"/><td class=\"text-center\"/><td class=\"text-center\"/><td/><td/><td/><td><code>$expand</code></td></tr></tbody></table></div><hr/><div class=\"panel panel-default\"><div class=\"panel-heading\"><h4 id=\"Patient1-1\" class=\"panel-title\"><span style=\"float: right;\">Resource Conformance: unspecified </span>Patient</h4></div><div class=\"panel-body\"><div class=\"container\"><div class=\"row\"><div class=\"col-lg-4\"><span class=\"lead\">Core FHIR Resource</span><br/><a href=\"http://hl7.org/fhir/R4/patient.html\">Patient</a></div><div class=\"col-lg-4\"><span class=\"lead\">Reference Policy</span><br/></div><div class=\"col-lg-4\"><span class=\"lead\">Interaction summary</span><br/><ul><li>Supports <code>read</code>, <code>search-type</code>, <code>create</code>, <code>update</code>.</li></ul></div></div><p/><p/><div class=\"row\"><div class=\"col-lg-7\"><span class=\"lead\">Search Parameters</span><table class=\"table table-condensed table-hover\"><thead><tr><th>Conformance</th><th>Parameter</th><th>Type</th><th>Documentation</th></tr></thead><tbody><tr><td><b>SHALL</b></td><td>_id</td><td><code>token</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>identifier</td><td><code>token</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>name</td><td><code>string</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>gender</td><td><code>token</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>birthdate</td><td><code>date</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>active</td><td><code>token</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_count</td><td><code>number</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_cursor</td><td><code>string</code></td><td><div/></td></tr></tbody></table></div><div class=\"col-lg-5\"> </div></div><div class=\"row\"><div class=\"col-12\"><span class=\"lead\">Extended Operations</span><table class=\"table table-condensed table-hover\"><thead><tr><th>Conformance</th><th>Operation</th><th>Documentation</th></tr></thead><tbody><tr><td><b>SHALL</b></td><td>$everything</td><td><div/></td></tr></tbody></table></div></div></div></div></div><div class=\"panel panel-default\"><div class=\"panel-heading\"><h4 id=\"Appointment1-2\" class=\"panel-title\"><span style=\"float: right;\">Resource Conformance: unspecified </span>Appointment</h4></div><div class=\"panel-body\"><div class=\"container\"><div class=\"row\"><div class=\"col-lg-4\"><span class=\"lead\">Core FHIR Resource</span><br/><a href=\"http://hl7.org/fhir/R4/appointment.html\">Appointment</a></div><div class=\"col-lg-4\"><span class=\"lead\">Reference Policy</span><br/></div><div class=\"col-lg-4\"><span class=\"lead\">Interaction summary</span><br/><ul><li>Supports <code>read</code>, <code>search-type</code>, <code>create</code>, <code>update</code>.</li></ul></div></div><p/><p/><div class=\"row\"><div class=\"col-lg-7\"><span class=\"lead\">Search Parameters</span><table class=\"table table-condensed table-hover\"><thead><tr><th>Conformance</th><th>Parameter</th><th>Type</th><th>Documentation</th></tr></thead><tbody><tr><td><b>SHALL</b></td><td>_id</td><td><code>token</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>patient</td><td><code>reference</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>practitioner</td><td><code>reference</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>date</td><td><code>date</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>status</td><td><code>token</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>appointment-type</td><td><code>token</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_count</td><td><code>number</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_cursor</td><td><code>string</code></td><td><div/></td></tr></tbody></table></div><div class=\"col-lg-5\"> </div></div></div></div></div><div class=\"panel panel-default\"><div class=\"panel-heading\"><h4 id=\"Encounter1-3\" class=\"panel-title\"><span style=\"float: right;\">Resource Conformance: unspecified </span>Encounter</h4></div><div class=\"panel-body\"><div class=\"container\"><div class=\"row\"><div class=\"col-lg-4\"><span class=\"lead\">Core FHIR Resource</span><br/><a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a></div><div class=\"col-lg-4\"><span class=\"lead\">Reference Policy</span><br/></div><div class=\"col-lg-4\"><span class=\"lead\">Interaction summary</span><br/><ul><li>Supports <code>read</code>, <code>search-type</code>, <code>create</code>, <code>update</code>.</li></ul></div></div><p/><p/><div class=\"row\"><div class=\"col-lg-7\"><span class=\"lead\">Search Parameters</span><table class=\"table table-condensed table-hover\"><thead><tr><th>Conformance</th><th>Parameter</th><th>Type</th><th>Documentation</th></tr></thead><tbody><tr><td><b>SHALL</b></td><td>_id</td><td><code>token</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>patient</td><td><code>reference</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>practitioner</td><td><code>reference</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>date</td><td><code>date</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>status</td><td><code>token</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>class</td><td><code>token</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_count</td><td><code>number</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_cursor</td><td><code>string</code></td><td><div/></td></tr></tbody></table></div><div class=\"col-lg-5\"> </div></div></div></div></div><div class=\"panel panel-default\"><div class=\"panel-heading\"><h4 id=\"Observation1-4\" class=\"panel-title\"><span style=\"float: right;\">Resource Conformance: unspecified </span>Observation</h4></div><div class=\"panel-body\"><div class=\"container\"><div class=\"row\"><div class=\"col-lg-4\"><span class=\"lead\">Core FHIR Resource</span><br/><a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a></div><div class=\"col-lg-4\"><span class=\"lead\">Reference Policy</span><br/></div><div class=\"col-lg-4\"><span class=\"lead\">Interaction summary</span><br/><ul><li>Supports <code>read</code>, <code>search-type</code>, <code>create</code>, <code>update</code>.</li></ul></div></div><p/><p/><div class=\"row\"><div class=\"col-lg-7\"><span class=\"lead\">Search Parameters</span><table class=\"table table-condensed table-hover\"><thead><tr><th>Conformance</th><th>Parameter</th><th>Type</th><th>Documentation</th></tr></thead><tbody><tr><td><b>SHALL</b></td><td>_id</td><td><code>token</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>patient</td><td><code>reference</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>encounter</td><td><code>reference</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>code</td><td><code>token</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>date</td><td><code>date</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>status</td><td><code>token</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>category</td><td><code>token</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_count</td><td><code>number</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_cursor</td><td><code>string</code></td><td><div/></td></tr></tbody></table></div><div class=\"col-lg-5\"> </div></div></div></div></div><div class=\"panel panel-default\"><div class=\"panel-heading\"><h4 id=\"MedicationRequest1-5\" class=\"panel-title\"><span style=\"float: right;\">Resource Conformance: unspecified </span>MedicationRequest</h4></div><div class=\"panel-body\"><div class=\"container\"><div class=\"row\"><div class=\"col-lg-4\"><span class=\"lead\">Core FHIR Resource</span><br/><a href=\"http://hl7.org/fhir/R4/medicationrequest.html\">MedicationRequest</a></div><div class=\"col-lg-4\"><span class=\"lead\">Reference Policy</span><br/></div><div class=\"col-lg-4\"><span class=\"lead\">Interaction summary</span><br/><ul><li>Supports <code>read</code>, <code>search-type</code>, <code>create</code>, <code>update</code>.</li></ul></div></div><p/><p/><div class=\"row\"><div class=\"col-lg-7\"><span class=\"lead\">Search Parameters</span><table class=\"table table-condensed table-hover\"><thead><tr><th>Conformance</th><th>Parameter</th><th>Type</th><th>Documentation</th></tr></thead><tbody><tr><td><b>SHALL</b></td><td>patient</td><td><code>reference</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>encounter</td><td><code>reference</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_count</td><td><code>number</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_cursor</td><td><code>string</code></td><td><div/></td></tr></tbody></table></div><div class=\"col-lg-5\"> </div></div></div></div></div><div class=\"panel panel-default\"><div class=\"panel-heading\"><h4 id=\"ServiceRequest1-6\" class=\"panel-title\"><span style=\"float: right;\">Resource Conformance: unspecified </span>ServiceRequest</h4></div><div class=\"panel-body\"><div class=\"container\"><div class=\"row\"><div class=\"col-lg-4\"><span class=\"lead\">Core FHIR Resource</span><br/><a href=\"http://hl7.org/fhir/R4/servicerequest.html\">ServiceRequest</a></div><div class=\"col-lg-4\"><span class=\"lead\">Reference Policy</span><br/></div><div class=\"col-lg-4\"><span class=\"lead\">Interaction summary</span><br/><ul><li>Supports <code>read</code>, <code>search-type</code>, <code>create</code>.</li></ul></div></div><p/><p/><div class=\"row\"><div class=\"col-lg-7\"><span class=\"lead\">Search Parameters</span><table class=\"table table-condensed table-hover\"><thead><tr><th>Conformance</th><th>Parameter</th><th>Type</th><th>Documentation</th></tr></thead><tbody><tr><td><b>SHALL</b></td><td>patient</td><td><code>reference</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>encounter</td><td><code>reference</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_count</td><td><code>number</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_cursor</td><td><code>string</code></td><td><div/></td></tr></tbody></table></div><div class=\"col-lg-5\"> </div></div></div></div></div><div class=\"panel panel-default\"><div class=\"panel-heading\"><h4 id=\"Composition1-7\" class=\"panel-title\"><span style=\"float: right;\">Resource Conformance: unspecified </span>Composition</h4></div><div class=\"panel-body\"><div class=\"container\"><div class=\"row\"><div class=\"col-lg-4\"><span class=\"lead\">Core FHIR Resource</span><br/><a href=\"http://hl7.org/fhir/R4/composition.html\">Composition</a></div><div class=\"col-lg-4\"><span class=\"lead\">Reference Policy</span><br/></div><div class=\"col-lg-4\"><span class=\"lead\">Interaction summary</span><br/><ul><li>Supports <code>read</code>, <code>search-type</code>, <code>create</code>, <code>update</code>.</li></ul></div></div><p/><p/><div class=\"row\"><div class=\"col-lg-7\"><span class=\"lead\">Search Parameters</span><table class=\"table table-condensed table-hover\"><thead><tr><th>Conformance</th><th>Parameter</th><th>Type</th><th>Documentation</th></tr></thead><tbody><tr><td><b>SHALL</b></td><td>_id</td><td><code>token</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>patient</td><td><code>reference</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>type</td><td><code>token</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>date</td><td><code>date</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_count</td><td><code>number</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_cursor</td><td><code>string</code></td><td><div/></td></tr></tbody></table></div><div class=\"col-lg-5\"> </div></div></div></div></div><div class=\"panel panel-default\"><div class=\"panel-heading\"><h4 id=\"DocumentReference1-8\" class=\"panel-title\"><span style=\"float: right;\">Resource Conformance: unspecified </span>DocumentReference</h4></div><div class=\"panel-body\"><div class=\"container\"><div class=\"row\"><div class=\"col-lg-4\"><span class=\"lead\">Core FHIR Resource</span><br/><a href=\"http://hl7.org/fhir/R4/documentreference.html\">DocumentReference</a></div><div class=\"col-lg-4\"><span class=\"lead\">Reference Policy</span><br/></div><div class=\"col-lg-4\"><span class=\"lead\">Interaction summary</span><br/><ul><li>Supports <code>read</code>, <code>search-type</code>, <code>create</code>, <code>update</code>.</li></ul></div></div><p/><p/><div class=\"row\"><div class=\"col-lg-7\"><span class=\"lead\">Search Parameters</span><table class=\"table table-condensed table-hover\"><thead><tr><th>Conformance</th><th>Parameter</th><th>Type</th><th>Documentation</th></tr></thead><tbody><tr><td><b>SHALL</b></td><td>patient</td><td><code>reference</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>type</td><td><code>token</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>category</td><td><code>token</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>date</td><td><code>date</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_count</td><td><code>number</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_cursor</td><td><code>string</code></td><td><div/></td></tr></tbody></table></div><div class=\"col-lg-5\"> </div></div><div class=\"row\"><div class=\"col-12\"><span class=\"lead\">Extended Operations</span><table class=\"table table-condensed table-hover\"><thead><tr><th>Conformance</th><th>Operation</th><th>Documentation</th></tr></thead><tbody><tr><td><b>SHALL</b></td><td><a href=\"OperationDefinition-DocumentReference-upload.html\">$upload</a></td><td><div/></td></tr></tbody></table></div></div></div></div></div><div class=\"panel panel-default\"><div class=\"panel-heading\"><h4 id=\"Practitioner1-9\" class=\"panel-title\"><span style=\"float: right;\">Resource Conformance: unspecified </span>Practitioner</h4></div><div class=\"panel-body\"><div class=\"container\"><div class=\"row\"><div class=\"col-lg-4\"><span class=\"lead\">Core FHIR Resource</span><br/><a href=\"http://hl7.org/fhir/R4/practitioner.html\">Practitioner</a></div><div class=\"col-lg-4\"><span class=\"lead\">Reference Policy</span><br/></div><div class=\"col-lg-4\"><span class=\"lead\">Interaction summary</span><br/><ul><li>Supports <code>read</code>, <code>search-type</code>.</li></ul></div></div><p/><p/><div class=\"row\"><div class=\"col-lg-7\"><span class=\"lead\">Search Parameters</span><table class=\"table table-condensed table-hover\"><thead><tr><th>Conformance</th><th>Parameter</th><th>Type</th><th>Documentation</th></tr></thead><tbody><tr><td><b>SHALL</b></td><td>name</td><td><code>string</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_count</td><td><code>number</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_offset</td><td><code>number</code></td><td><div/></td></tr></tbody></table></div><div class=\"col-lg-5\"> </div></div></div></div></div><div class=\"panel panel-default\"><div class=\"panel-heading\"><h4 id=\"Organization1-10\" class=\"panel-title\"><span style=\"float: right;\">Resource Conformance: unspecified </span>Organization</h4></div><div class=\"panel-body\"><div class=\"container\"><div class=\"row\"><div class=\"col-lg-4\"><span class=\"lead\">Core FHIR Resource</span><br/><a href=\"http://hl7.org/fhir/R4/organization.html\">Organization</a></div><div class=\"col-lg-4\"><span class=\"lead\">Reference Policy</span><br/></div><div class=\"col-lg-4\"><span class=\"lead\">Interaction summary</span><br/><ul><li>Supports <code>read</code>, <code>search-type</code>.</li></ul></div></div><p/><p/><div class=\"row\"><div class=\"col-lg-7\"><span class=\"lead\">Search Parameters</span><table class=\"table table-condensed table-hover\"><thead><tr><th>Conformance</th><th>Parameter</th><th>Type</th><th>Documentation</th></tr></thead><tbody><tr><td><b>SHALL</b></td><td>_id</td><td><code>token</code></td><td><div/></td></tr></tbody></table></div><div class=\"col-lg-5\"> </div></div></div></div></div><div class=\"panel panel-default\"><div class=\"panel-heading\"><h4 id=\"Subscription1-11\" class=\"panel-title\"><span style=\"float: right;\">Resource Conformance: unspecified </span>Subscription</h4></div><div class=\"panel-body\"><div class=\"container\"><div class=\"row\"><div class=\"col-lg-4\"><span class=\"lead\">Core FHIR Resource</span><br/><a href=\"http://hl7.org/fhir/R4/subscription.html\">Subscription</a></div><div class=\"col-lg-4\"><span class=\"lead\">Reference Policy</span><br/></div><div class=\"col-lg-4\"><span class=\"lead\">Interaction summary</span><br/><ul><li>Supports <code>read</code>, <code>search-type</code>, <code>create</code>, <code>update</code>, <code>delete</code>.</li></ul></div></div><p/><p/><div class=\"row\"><div class=\"col-lg-7\"><span class=\"lead\">Search Parameters</span><table class=\"table table-condensed table-hover\"><thead><tr><th>Conformance</th><th>Parameter</th><th>Type</th><th>Documentation</th></tr></thead><tbody><tr><td><b>SHALL</b></td><td>_id</td><td><code>token</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>status</td><td><code>token</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_count</td><td><code>number</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_offset</td><td><code>number</code></td><td><div/></td></tr></tbody></table></div><div class=\"col-lg-5\"> </div></div><div class=\"row\"><div class=\"col-12\"><span class=\"lead\">Extended Operations</span><table class=\"table table-condensed table-hover\"><thead><tr><th>Conformance</th><th>Operation</th><th>Documentation</th></tr></thead><tbody><tr><td><b>SHALL</b></td><td><a href=\"OperationDefinition-Subscription-replay.html\">$replay</a></td><td><div><p>Re-enqueue past events in a [from,to] window for outage recovery / backfill (POST; requires system/Subscription.crud).</p>\n</div></td></tr><tr><td><b>SHALL</b></td><td><a href=\"OperationDefinition-Subscription-stats.html\">$stats</a></td><td><div><p>Per-subscription delivery metrics: delivered/failed/pending/dead, DLQ depth, success rate, latency p50/p95 (GET; requires system/Subscription.rs).</p>\n</div></td></tr><tr><td><b>SHALL</b></td><td><a href=\"OperationDefinition-Subscription-deliveries.html\">$deliveries</a></td><td><div><p>Recent delivery-attempt trail, sanitized — never the payload/endpoint/secret (GET; requires system/Subscription.rs).</p>\n</div></td></tr></tbody></table></div></div></div></div></div><div class=\"panel panel-default\"><div class=\"panel-heading\"><h4 id=\"Location1-12\" class=\"panel-title\"><span style=\"float: right;\">Resource Conformance: unspecified </span>Location</h4></div><div class=\"panel-body\"><div class=\"container\"><div class=\"row\"><div class=\"col-lg-4\"><span class=\"lead\">Core FHIR Resource</span><br/><a href=\"http://hl7.org/fhir/R4/location.html\">Location</a></div><div class=\"col-lg-4\"><span class=\"lead\">Reference Policy</span><br/></div><div class=\"col-lg-4\"><span class=\"lead\">Interaction summary</span><br/><ul><li>Supports <code>read</code>, <code>search-type</code>.</li></ul></div></div><p/><p/><div class=\"row\"><div class=\"col-12\"><span class=\"lead\">Documentation</span><blockquote><div><p>Authorized by the SMART scope <code>system/Appointment.rs</code>. This resource inherits an existing scope — no per-resource <code>system/Location.*</code> scope is minted; requesting one is rejected.</p>\n</div></blockquote></div></div><div class=\"row\"><div class=\"col-lg-7\"><span class=\"lead\">Search Parameters</span><table class=\"table table-condensed table-hover\"><thead><tr><th>Conformance</th><th>Parameter</th><th>Type</th><th>Documentation</th></tr></thead><tbody><tr><td><b>SHALL</b></td><td>_id</td><td><code>token</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_count</td><td><code>number</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_offset</td><td><code>number</code></td><td><div/></td></tr></tbody></table></div><div class=\"col-lg-5\"> </div></div></div></div></div><div class=\"panel panel-default\"><div class=\"panel-heading\"><h4 id=\"HealthcareService1-13\" class=\"panel-title\"><span style=\"float: right;\">Resource Conformance: unspecified </span>HealthcareService</h4></div><div class=\"panel-body\"><div class=\"container\"><div class=\"row\"><div class=\"col-lg-4\"><span class=\"lead\">Core FHIR Resource</span><br/><a href=\"http://hl7.org/fhir/R4/healthcareservice.html\">HealthcareService</a></div><div class=\"col-lg-4\"><span class=\"lead\">Reference Policy</span><br/></div><div class=\"col-lg-4\"><span class=\"lead\">Interaction summary</span><br/><ul><li>Supports <code>read</code>, <code>search-type</code>.</li></ul></div></div><p/><p/><div class=\"row\"><div class=\"col-12\"><span class=\"lead\">Documentation</span><blockquote><div><p>Authorized by the SMART scope <code>system/Appointment.rs</code>. This resource inherits an existing scope — no per-resource <code>system/HealthcareService.*</code> scope is minted; requesting one is rejected.</p>\n</div></blockquote></div></div><div class=\"row\"><div class=\"col-lg-7\"><span class=\"lead\">Search Parameters</span><table class=\"table table-condensed table-hover\"><thead><tr><th>Conformance</th><th>Parameter</th><th>Type</th><th>Documentation</th></tr></thead><tbody><tr><td><b>SHALL</b></td><td>_id</td><td><code>token</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_count</td><td><code>number</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_offset</td><td><code>number</code></td><td><div/></td></tr></tbody></table></div><div class=\"col-lg-5\"> </div></div></div></div></div><div class=\"panel panel-default\"><div class=\"panel-heading\"><h4 id=\"PractitionerRole1-14\" class=\"panel-title\"><span style=\"float: right;\">Resource Conformance: unspecified </span>PractitionerRole</h4></div><div class=\"panel-body\"><div class=\"container\"><div class=\"row\"><div class=\"col-lg-4\"><span class=\"lead\">Core FHIR Resource</span><br/><a href=\"http://hl7.org/fhir/R4/practitionerrole.html\">PractitionerRole</a></div><div class=\"col-lg-4\"><span class=\"lead\">Reference Policy</span><br/></div><div class=\"col-lg-4\"><span class=\"lead\">Interaction summary</span><br/><ul><li>Supports <code>read</code>, <code>search-type</code>.</li></ul></div></div><p/><p/><div class=\"row\"><div class=\"col-12\"><span class=\"lead\">Documentation</span><blockquote><div><p>Authorized by the SMART scope <code>system/Practitioner.rs</code>. This resource inherits an existing scope — no per-resource <code>system/PractitionerRole.*</code> scope is minted; requesting one is rejected.</p>\n</div></blockquote></div></div><div class=\"row\"><div class=\"col-lg-7\"><span class=\"lead\">Search Parameters</span><table class=\"table table-condensed table-hover\"><thead><tr><th>Conformance</th><th>Parameter</th><th>Type</th><th>Documentation</th></tr></thead><tbody><tr><td><b>SHALL</b></td><td>_id</td><td><code>token</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>practitioner</td><td><code>reference</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>location</td><td><code>reference</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_count</td><td><code>number</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_offset</td><td><code>number</code></td><td><div/></td></tr></tbody></table></div><div class=\"col-lg-5\"> </div></div></div></div></div><div class=\"panel panel-default\"><div class=\"panel-heading\"><h4 id=\"Schedule1-15\" class=\"panel-title\"><span style=\"float: right;\">Resource Conformance: unspecified </span>Schedule</h4></div><div class=\"panel-body\"><div class=\"container\"><div class=\"row\"><div class=\"col-lg-4\"><span class=\"lead\">Core FHIR Resource</span><br/><a href=\"http://hl7.org/fhir/R4/schedule.html\">Schedule</a></div><div class=\"col-lg-4\"><span class=\"lead\">Reference Policy</span><br/></div><div class=\"col-lg-4\"><span class=\"lead\">Interaction summary</span><br/><ul><li>Supports <code>read</code>, <code>search-type</code>.</li></ul></div></div><p/><p/><div class=\"row\"><div class=\"col-12\"><span class=\"lead\">Documentation</span><blockquote><div><p>Authorized by the SMART scope <code>system/Appointment.rs</code>. This resource inherits an existing scope — no per-resource <code>system/Schedule.*</code> scope is minted; requesting one is rejected.</p>\n</div></blockquote></div></div><div class=\"row\"><div class=\"col-lg-7\"><span class=\"lead\">Search Parameters</span><table class=\"table table-condensed table-hover\"><thead><tr><th>Conformance</th><th>Parameter</th><th>Type</th><th>Documentation</th></tr></thead><tbody><tr><td><b>SHALL</b></td><td>_id</td><td><code>token</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>actor</td><td><code>reference</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>service-type</td><td><code>token</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_count</td><td><code>number</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_offset</td><td><code>number</code></td><td><div/></td></tr></tbody></table></div><div class=\"col-lg-5\"> </div></div></div></div></div><div class=\"panel panel-default\"><div class=\"panel-heading\"><h4 id=\"Slot1-16\" class=\"panel-title\"><span style=\"float: right;\">Resource Conformance: unspecified </span>Slot</h4></div><div class=\"panel-body\"><div class=\"container\"><div class=\"row\"><div class=\"col-lg-4\"><span class=\"lead\">Core FHIR Resource</span><br/><a href=\"http://hl7.org/fhir/R4/slot.html\">Slot</a></div><div class=\"col-lg-4\"><span class=\"lead\">Reference Policy</span><br/></div><div class=\"col-lg-4\"><span class=\"lead\">Interaction summary</span><br/><ul><li>Supports <code>search-type</code>.</li></ul></div></div><p/><p/><div class=\"row\"><div class=\"col-12\"><span class=\"lead\">Documentation</span><blockquote><div><p>Authorized by the SMART scope <code>system/Appointment.rs</code>. This resource inherits an existing scope — no per-resource <code>system/Slot.*</code> scope is minted; requesting one is rejected.</p>\n</div></blockquote></div></div><div class=\"row\"><div class=\"col-lg-7\"><span class=\"lead\">Search Parameters</span><table class=\"table table-condensed table-hover\"><thead><tr><th>Conformance</th><th>Parameter</th><th>Type</th><th>Documentation</th></tr></thead><tbody><tr><td><b>SHALL</b></td><td>schedule</td><td><code>reference</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>actor</td><td><code>reference</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>start</td><td><code>date</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>end</td><td><code>date</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_count</td><td><code>number</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_offset</td><td><code>number</code></td><td><div/></td></tr></tbody></table></div><div class=\"col-lg-5\"> </div></div></div></div></div><div class=\"panel panel-default\"><div class=\"panel-heading\"><h4 id=\"Device1-17\" class=\"panel-title\"><span style=\"float: right;\">Resource Conformance: unspecified </span>Device</h4></div><div class=\"panel-body\"><div class=\"container\"><div class=\"row\"><div class=\"col-lg-4\"><span class=\"lead\">Core FHIR Resource</span><br/><a href=\"http://hl7.org/fhir/R4/device.html\">Device</a></div><div class=\"col-lg-4\"><span class=\"lead\">Reference Policy</span><br/></div><div class=\"col-lg-4\"><span class=\"lead\">Interaction summary</span><br/><ul><li>Supports <code>read</code>, <code>search-type</code>.</li></ul></div></div><p/><p/><div class=\"row\"><div class=\"col-12\"><span class=\"lead\">Documentation</span><blockquote><div><p>Authorized by the SMART scope <code>system/Appointment.rs</code>. This resource inherits an existing scope — no per-resource <code>system/Device.*</code> scope is minted; requesting one is rejected.</p>\n</div></blockquote></div></div><div class=\"row\"><div class=\"col-lg-7\"><span class=\"lead\">Search Parameters</span><table class=\"table table-condensed table-hover\"><thead><tr><th>Conformance</th><th>Parameter</th><th>Type</th><th>Documentation</th></tr></thead><tbody><tr><td><b>SHALL</b></td><td>_id</td><td><code>token</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_count</td><td><code>number</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>_offset</td><td><code>number</code></td><td><div/></td></tr></tbody></table></div><div class=\"col-lg-5\"> </div></div></div></div></div><div class=\"panel panel-default\"><div class=\"panel-heading\"><h4 id=\"CodeSystem1-18\" class=\"panel-title\"><span style=\"float: right;\">Resource Conformance: unspecified </span>CodeSystem</h4></div><div class=\"panel-body\"><div class=\"container\"><div class=\"row\"><div class=\"col-lg-4\"><span class=\"lead\">Core FHIR Resource</span><br/><a href=\"http://hl7.org/fhir/R4/codesystem.html\">CodeSystem</a></div><div class=\"col-lg-4\"><span class=\"lead\">Reference Policy</span><br/></div><div class=\"col-lg-4\"><span class=\"lead\">Interaction summary</span><br/><ul><li>Supports <code>read</code>.</li></ul></div></div><p/><p/><div class=\"row\"><div class=\"col-12\"><span class=\"lead\">Documentation</span><blockquote><div><p>Terminology resource. Scope is enforced per CodeSystem id by the handler (e.g. <code>address-source</code> → <code>system/Patient.rs</code>, <code>org-service</code> → <code>system/Appointment.rs</code>).</p>\n</div></blockquote></div></div></div></div></div><div class=\"panel panel-default\"><div class=\"panel-heading\"><h4 id=\"ValueSet1-19\" class=\"panel-title\"><span style=\"float: right;\">Resource Conformance: unspecified </span>ValueSet</h4></div><div class=\"panel-body\"><div class=\"container\"><div class=\"row\"><div class=\"col-lg-4\"><span class=\"lead\">Core FHIR Resource</span><br/><a href=\"http://hl7.org/fhir/R4/valueset.html\">ValueSet</a></div><div class=\"col-lg-4\"><span class=\"lead\">Reference Policy</span><br/></div><div class=\"col-lg-4\"><span class=\"lead\">Interaction summary</span><br/><ul/></div></div><p/><p/><div class=\"row\"><div class=\"col-12\"><span class=\"lead\">Documentation</span><blockquote><div><p>Terminology operation. Scope is enforced per ValueSet <code>url</code> by the handler (cancellation-reason → <code>system/Appointment.rs</code>, observation-loinc → <code>system/Observation.rs</code>, mx-* → <code>system/Patient.rs</code>).</p>\n</div></blockquote></div></div><div class=\"row\"><div class=\"col-12\"><span class=\"lead\">Extended Operations</span><table class=\"table table-condensed table-hover\"><thead><tr><th>Conformance</th><th>Operation</th><th>Documentation</th></tr></thead><tbody><tr><td><b>SHALL</b></td><td>$expand</td><td><div/></td></tr></tbody></table></div></div></div></div></div></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:url [
     fhir:v "https://fhir.huli.ai/r4/CapabilityStatement/huli-server"^^xsd:anyURI ;
     fhir:l <https://fhir.huli.ai/r4/CapabilityStatement/huli-server>
  ] ; # 
  fhir:version [ fhir:v "0.1.0"] ; # 
  fhir:title [ fhir:v "Huli FHIR R4 Server Capabilities"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:date [ fhir:v "2026-01-01"^^xsd:date] ; # 
  fhir:publisher [ fhir:v "Huli"] ; # 
  fhir:contact ( [
     fhir:name [ fhir:v "Huli" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "https://huli.ai" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "Declared capabilities of the Huli Public FHIR R4 API at https://api.huli.io/fhir/R4."] ; # 
  fhir:kind [ fhir:v "instance"] ; # 
  fhir:software [
     fhir:name [ fhir:v "Huli FHIR API" ] ;
     fhir:version [ fhir:v "dev" ]
  ] ; # 
  fhir:implementation [
     fhir:description [ fhir:v "Huli FHIR R4 API" ] ;
     fhir:url [
       fhir:v "https://api.huli.io/fhir/R4"^^xsd:anyURI ;
       fhir:l <https://api.huli.io/fhir/R4>
     ]
  ] ; # 
  fhir:fhirVersion [ fhir:v "4.0.1"] ; # 
  fhir:format ( [ fhir:v "json"] ) ; # 
  fhir:rest ( [
     fhir:mode [ fhir:v "server" ] ;
     fhir:security [
       fhir:extension ( [
         fhir:extension ( [
           fhir:url [
             fhir:v "token"^^xsd:anyURI ;
             fhir:l fhir:token
           ] ;
           fhir:value [
             a fhir:Uri ;
             fhir:v "https://api.huli.io/auth/token"^^xsd:anyURI ;
             fhir:l <https://api.huli.io/auth/token>
           ]
         ] ) ;
         fhir:url [
           fhir:v "http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris"^^xsd:anyURI ;
           fhir:l <http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris>
         ]
       ] ) ;
       fhir:service ( [
         fhir:coding ( [
           fhir:system [
             fhir:v "http://terminology.hl7.org/CodeSystem/restful-security-service"^^xsd:anyURI ;
             fhir:l <http://terminology.hl7.org/CodeSystem/restful-security-service>
           ] ;
           fhir:code [ fhir:v "SMART-on-FHIR" ]
         ] ) ;
         fhir:text [ fhir:v "OAuth2 using SMART-on-FHIR profile (see http://docs.smarthealthit.org)" ]
       ] )
     ] ;
     fhir:resource ( [
       fhir:type [ fhir:v "Patient" ] ;
       fhir:interaction ( [
         fhir:code [ fhir:v "read" ]
       ] [
         fhir:code [ fhir:v "search-type" ]
       ] [
         fhir:code [ fhir:v "create" ]
       ] [
         fhir:code [ fhir:v "update" ]
       ] ) ;
       fhir:searchParam ( [
         fhir:name [ fhir:v "_id" ] ;
         fhir:type [ fhir:v "token" ]
       ] [
         fhir:name [ fhir:v "identifier" ] ;
         fhir:type [ fhir:v "token" ]
       ] [
         fhir:name [ fhir:v "name" ] ;
         fhir:type [ fhir:v "string" ]
       ] [
         fhir:name [ fhir:v "gender" ] ;
         fhir:type [ fhir:v "token" ]
       ] [
         fhir:name [ fhir:v "birthdate" ] ;
         fhir:type [ fhir:v "date" ]
       ] [
         fhir:name [ fhir:v "active" ] ;
         fhir:type [ fhir:v "token" ]
       ] [
         fhir:name [ fhir:v "_count" ] ;
         fhir:type [ fhir:v "number" ]
       ] [
         fhir:name [ fhir:v "_cursor" ] ;
         fhir:type [ fhir:v "string" ]
       ] ) ;
       fhir:operation ( [
         fhir:name [ fhir:v "everything" ] ;
         fhir:definition [
           fhir:v "http://hl7.org/fhir/OperationDefinition/Patient-everything"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/OperationDefinition/Patient-everything>
         ]
       ] )
     ] [
       fhir:type [ fhir:v "Appointment" ] ;
       fhir:interaction ( [
         fhir:code [ fhir:v "read" ]
       ] [
         fhir:code [ fhir:v "search-type" ]
       ] [
         fhir:code [ fhir:v "create" ]
       ] [
         fhir:code [ fhir:v "update" ]
       ] ) ;
       fhir:searchParam ( [
         fhir:name [ fhir:v "_id" ] ;
         fhir:type [ fhir:v "token" ]
       ] [
         fhir:name [ fhir:v "patient" ] ;
         fhir:type [ fhir:v "reference" ]
       ] [
         fhir:name [ fhir:v "practitioner" ] ;
         fhir:type [ fhir:v "reference" ]
       ] [
         fhir:name [ fhir:v "date" ] ;
         fhir:type [ fhir:v "date" ]
       ] [
         fhir:name [ fhir:v "status" ] ;
         fhir:type [ fhir:v "token" ]
       ] [
         fhir:name [ fhir:v "appointment-type" ] ;
         fhir:type [ fhir:v "token" ]
       ] [
         fhir:name [ fhir:v "_count" ] ;
         fhir:type [ fhir:v "number" ]
       ] [
         fhir:name [ fhir:v "_cursor" ] ;
         fhir:type [ fhir:v "string" ]
       ] )
     ] [
       fhir:type [ fhir:v "Encounter" ] ;
       fhir:interaction ( [
         fhir:code [ fhir:v "read" ]
       ] [
         fhir:code [ fhir:v "search-type" ]
       ] [
         fhir:code [ fhir:v "create" ]
       ] [
         fhir:code [ fhir:v "update" ]
       ] ) ;
       fhir:searchParam ( [
         fhir:name [ fhir:v "_id" ] ;
         fhir:type [ fhir:v "token" ]
       ] [
         fhir:name [ fhir:v "patient" ] ;
         fhir:type [ fhir:v "reference" ]
       ] [
         fhir:name [ fhir:v "practitioner" ] ;
         fhir:type [ fhir:v "reference" ]
       ] [
         fhir:name [ fhir:v "date" ] ;
         fhir:type [ fhir:v "date" ]
       ] [
         fhir:name [ fhir:v "status" ] ;
         fhir:type [ fhir:v "token" ]
       ] [
         fhir:name [ fhir:v "class" ] ;
         fhir:type [ fhir:v "token" ]
       ] [
         fhir:name [ fhir:v "_count" ] ;
         fhir:type [ fhir:v "number" ]
       ] [
         fhir:name [ fhir:v "_cursor" ] ;
         fhir:type [ fhir:v "string" ]
       ] )
     ] [
       fhir:type [ fhir:v "Observation" ] ;
       fhir:interaction ( [
         fhir:code [ fhir:v "read" ]
       ] [
         fhir:code [ fhir:v "search-type" ]
       ] [
         fhir:code [ fhir:v "create" ]
       ] [
         fhir:code [ fhir:v "update" ]
       ] ) ;
       fhir:searchParam ( [
         fhir:name [ fhir:v "_id" ] ;
         fhir:type [ fhir:v "token" ]
       ] [
         fhir:name [ fhir:v "patient" ] ;
         fhir:type [ fhir:v "reference" ]
       ] [
         fhir:name [ fhir:v "encounter" ] ;
         fhir:type [ fhir:v "reference" ]
       ] [
         fhir:name [ fhir:v "code" ] ;
         fhir:type [ fhir:v "token" ]
       ] [
         fhir:name [ fhir:v "date" ] ;
         fhir:type [ fhir:v "date" ]
       ] [
         fhir:name [ fhir:v "status" ] ;
         fhir:type [ fhir:v "token" ]
       ] [
         fhir:name [ fhir:v "category" ] ;
         fhir:type [ fhir:v "token" ]
       ] [
         fhir:name [ fhir:v "_count" ] ;
         fhir:type [ fhir:v "number" ]
       ] [
         fhir:name [ fhir:v "_cursor" ] ;
         fhir:type [ fhir:v "string" ]
       ] )
     ] [
       fhir:type [ fhir:v "MedicationRequest" ] ;
       fhir:interaction ( [
         fhir:code [ fhir:v "read" ]
       ] [
         fhir:code [ fhir:v "search-type" ]
       ] [
         fhir:code [ fhir:v "create" ]
       ] [
         fhir:code [ fhir:v "update" ]
       ] ) ;
       fhir:searchParam ( [
         fhir:name [ fhir:v "patient" ] ;
         fhir:type [ fhir:v "reference" ]
       ] [
         fhir:name [ fhir:v "encounter" ] ;
         fhir:type [ fhir:v "reference" ]
       ] [
         fhir:name [ fhir:v "_count" ] ;
         fhir:type [ fhir:v "number" ]
       ] [
         fhir:name [ fhir:v "_cursor" ] ;
         fhir:type [ fhir:v "string" ]
       ] )
     ] [
       fhir:type [ fhir:v "ServiceRequest" ] ;
       fhir:interaction ( [
         fhir:code [ fhir:v "read" ]
       ] [
         fhir:code [ fhir:v "search-type" ]
       ] [
         fhir:code [ fhir:v "create" ]
       ] ) ;
       fhir:searchParam ( [
         fhir:name [ fhir:v "patient" ] ;
         fhir:type [ fhir:v "reference" ]
       ] [
         fhir:name [ fhir:v "encounter" ] ;
         fhir:type [ fhir:v "reference" ]
       ] [
         fhir:name [ fhir:v "_count" ] ;
         fhir:type [ fhir:v "number" ]
       ] [
         fhir:name [ fhir:v "_cursor" ] ;
         fhir:type [ fhir:v "string" ]
       ] )
     ] [
       fhir:type [ fhir:v "Composition" ] ;
       fhir:interaction ( [
         fhir:code [ fhir:v "read" ]
       ] [
         fhir:code [ fhir:v "search-type" ]
       ] [
         fhir:code [ fhir:v "create" ]
       ] [
         fhir:code [ fhir:v "update" ]
       ] ) ;
       fhir:searchParam ( [
         fhir:name [ fhir:v "_id" ] ;
         fhir:type [ fhir:v "token" ]
       ] [
         fhir:name [ fhir:v "patient" ] ;
         fhir:type [ fhir:v "reference" ]
       ] [
         fhir:name [ fhir:v "type" ] ;
         fhir:type [ fhir:v "token" ]
       ] [
         fhir:name [ fhir:v "date" ] ;
         fhir:type [ fhir:v "date" ]
       ] [
         fhir:name [ fhir:v "_count" ] ;
         fhir:type [ fhir:v "number" ]
       ] [
         fhir:name [ fhir:v "_cursor" ] ;
         fhir:type [ fhir:v "string" ]
       ] )
     ] [
       fhir:type [ fhir:v "DocumentReference" ] ;
       fhir:interaction ( [
         fhir:code [ fhir:v "read" ]
       ] [
         fhir:code [ fhir:v "search-type" ]
       ] [
         fhir:code [ fhir:v "create" ]
       ] [
         fhir:code [ fhir:v "update" ]
       ] ) ;
       fhir:searchParam ( [
         fhir:name [ fhir:v "patient" ] ;
         fhir:type [ fhir:v "reference" ]
       ] [
         fhir:name [ fhir:v "type" ] ;
         fhir:type [ fhir:v "token" ]
       ] [
         fhir:name [ fhir:v "category" ] ;
         fhir:type [ fhir:v "token" ]
       ] [
         fhir:name [ fhir:v "date" ] ;
         fhir:type [ fhir:v "date" ]
       ] [
         fhir:name [ fhir:v "_count" ] ;
         fhir:type [ fhir:v "number" ]
       ] [
         fhir:name [ fhir:v "_cursor" ] ;
         fhir:type [ fhir:v "string" ]
       ] ) ;
       fhir:operation ( [
         fhir:name [ fhir:v "upload" ] ;
         fhir:definition [
           fhir:v "https://fhir.huli.ai/r4/OperationDefinition/DocumentReference-upload"^^xsd:anyURI ;
           fhir:l <https://fhir.huli.ai/r4/OperationDefinition/DocumentReference-upload>
         ]
       ] )
     ] [
       fhir:type [ fhir:v "Practitioner" ] ;
       fhir:interaction ( [
         fhir:code [ fhir:v "read" ]
       ] [
         fhir:code [ fhir:v "search-type" ]
       ] ) ;
       fhir:searchParam ( [
         fhir:name [ fhir:v "name" ] ;
         fhir:type [ fhir:v "string" ]
       ] [
         fhir:name [ fhir:v "_count" ] ;
         fhir:type [ fhir:v "number" ]
       ] [
         fhir:name [ fhir:v "_offset" ] ;
         fhir:type [ fhir:v "number" ]
       ] )
     ] [
       fhir:type [ fhir:v "Organization" ] ;
       fhir:interaction ( [
         fhir:code [ fhir:v "read" ]
       ] [
         fhir:code [ fhir:v "search-type" ]
       ] ) ;
       fhir:searchParam ( [
         fhir:name [ fhir:v "_id" ] ;
         fhir:type [ fhir:v "token" ]
       ] )
     ] [
       fhir:type [ fhir:v "Subscription" ] ;
       fhir:interaction ( [
         fhir:code [ fhir:v "read" ]
       ] [
         fhir:code [ fhir:v "search-type" ]
       ] [
         fhir:code [ fhir:v "create" ]
       ] [
         fhir:code [ fhir:v "update" ]
       ] [
         fhir:code [ fhir:v "delete" ]
       ] ) ;
       fhir:searchParam ( [
         fhir:name [ fhir:v "_id" ] ;
         fhir:type [ fhir:v "token" ]
       ] [
         fhir:name [ fhir:v "status" ] ;
         fhir:type [ fhir:v "token" ]
       ] [
         fhir:name [ fhir:v "_count" ] ;
         fhir:type [ fhir:v "number" ]
       ] [
         fhir:name [ fhir:v "_offset" ] ;
         fhir:type [ fhir:v "number" ]
       ] ) ;
       fhir:operation ( [
         fhir:name [ fhir:v "replay" ] ;
         fhir:definition [
           fhir:v "https://fhir.huli.ai/r4/OperationDefinition/Subscription-replay"^^xsd:anyURI ;
           fhir:l <https://fhir.huli.ai/r4/OperationDefinition/Subscription-replay>
         ] ;
         fhir:documentation [ fhir:v "Re-enqueue past events in a [from,to] window for outage recovery / backfill (POST; requires system/Subscription.crud)." ]
       ] [
         fhir:name [ fhir:v "stats" ] ;
         fhir:definition [
           fhir:v "https://fhir.huli.ai/r4/OperationDefinition/Subscription-stats"^^xsd:anyURI ;
           fhir:l <https://fhir.huli.ai/r4/OperationDefinition/Subscription-stats>
         ] ;
         fhir:documentation [ fhir:v "Per-subscription delivery metrics: delivered/failed/pending/dead, DLQ depth, success rate, latency p50/p95 (GET; requires system/Subscription.rs)." ]
       ] [
         fhir:name [ fhir:v "deliveries" ] ;
         fhir:definition [
           fhir:v "https://fhir.huli.ai/r4/OperationDefinition/Subscription-deliveries"^^xsd:anyURI ;
           fhir:l <https://fhir.huli.ai/r4/OperationDefinition/Subscription-deliveries>
         ] ;
         fhir:documentation [ fhir:v "Recent delivery-attempt trail, sanitized — never the payload/endpoint/secret (GET; requires system/Subscription.rs)." ]
       ] )
     ] [
       fhir:type [ fhir:v "Location" ] ;
       fhir:documentation [ fhir:v "Authorized by the SMART scope `system/Appointment.rs`. This resource inherits an existing scope — no per-resource `system/Location.*` scope is minted; requesting one is rejected." ] ;
       fhir:interaction ( [
         fhir:code [ fhir:v "read" ]
       ] [
         fhir:code [ fhir:v "search-type" ]
       ] ) ;
       fhir:searchParam ( [
         fhir:name [ fhir:v "_id" ] ;
         fhir:type [ fhir:v "token" ]
       ] [
         fhir:name [ fhir:v "_count" ] ;
         fhir:type [ fhir:v "number" ]
       ] [
         fhir:name [ fhir:v "_offset" ] ;
         fhir:type [ fhir:v "number" ]
       ] )
     ] [
       fhir:type [ fhir:v "HealthcareService" ] ;
       fhir:documentation [ fhir:v "Authorized by the SMART scope `system/Appointment.rs`. This resource inherits an existing scope — no per-resource `system/HealthcareService.*` scope is minted; requesting one is rejected." ] ;
       fhir:interaction ( [
         fhir:code [ fhir:v "read" ]
       ] [
         fhir:code [ fhir:v "search-type" ]
       ] ) ;
       fhir:searchParam ( [
         fhir:name [ fhir:v "_id" ] ;
         fhir:type [ fhir:v "token" ]
       ] [
         fhir:name [ fhir:v "_count" ] ;
         fhir:type [ fhir:v "number" ]
       ] [
         fhir:name [ fhir:v "_offset" ] ;
         fhir:type [ fhir:v "number" ]
       ] )
     ] [
       fhir:type [ fhir:v "PractitionerRole" ] ;
       fhir:documentation [ fhir:v "Authorized by the SMART scope `system/Practitioner.rs`. This resource inherits an existing scope — no per-resource `system/PractitionerRole.*` scope is minted; requesting one is rejected." ] ;
       fhir:interaction ( [
         fhir:code [ fhir:v "read" ]
       ] [
         fhir:code [ fhir:v "search-type" ]
       ] ) ;
       fhir:searchParam ( [
         fhir:name [ fhir:v "_id" ] ;
         fhir:type [ fhir:v "token" ]
       ] [
         fhir:name [ fhir:v "practitioner" ] ;
         fhir:type [ fhir:v "reference" ]
       ] [
         fhir:name [ fhir:v "location" ] ;
         fhir:type [ fhir:v "reference" ]
       ] [
         fhir:name [ fhir:v "_count" ] ;
         fhir:type [ fhir:v "number" ]
       ] [
         fhir:name [ fhir:v "_offset" ] ;
         fhir:type [ fhir:v "number" ]
       ] )
     ] [
       fhir:type [ fhir:v "Schedule" ] ;
       fhir:documentation [ fhir:v "Authorized by the SMART scope `system/Appointment.rs`. This resource inherits an existing scope — no per-resource `system/Schedule.*` scope is minted; requesting one is rejected." ] ;
       fhir:interaction ( [
         fhir:code [ fhir:v "read" ]
       ] [
         fhir:code [ fhir:v "search-type" ]
       ] ) ;
       fhir:searchParam ( [
         fhir:name [ fhir:v "_id" ] ;
         fhir:type [ fhir:v "token" ]
       ] [
         fhir:name [ fhir:v "actor" ] ;
         fhir:type [ fhir:v "reference" ]
       ] [
         fhir:name [ fhir:v "service-type" ] ;
         fhir:type [ fhir:v "token" ]
       ] [
         fhir:name [ fhir:v "_count" ] ;
         fhir:type [ fhir:v "number" ]
       ] [
         fhir:name [ fhir:v "_offset" ] ;
         fhir:type [ fhir:v "number" ]
       ] )
     ] [
       fhir:type [ fhir:v "Slot" ] ;
       fhir:documentation [ fhir:v "Authorized by the SMART scope `system/Appointment.rs`. This resource inherits an existing scope — no per-resource `system/Slot.*` scope is minted; requesting one is rejected." ] ;
       fhir:interaction ( [
         fhir:code [ fhir:v "search-type" ]
       ] ) ;
       fhir:searchParam ( [
         fhir:name [ fhir:v "schedule" ] ;
         fhir:type [ fhir:v "reference" ]
       ] [
         fhir:name [ fhir:v "actor" ] ;
         fhir:type [ fhir:v "reference" ]
       ] [
         fhir:name [ fhir:v "start" ] ;
         fhir:type [ fhir:v "date" ]
       ] [
         fhir:name [ fhir:v "end" ] ;
         fhir:type [ fhir:v "date" ]
       ] [
         fhir:name [ fhir:v "_count" ] ;
         fhir:type [ fhir:v "number" ]
       ] [
         fhir:name [ fhir:v "_offset" ] ;
         fhir:type [ fhir:v "number" ]
       ] )
     ] [
       fhir:type [ fhir:v "Device" ] ;
       fhir:documentation [ fhir:v "Authorized by the SMART scope `system/Appointment.rs`. This resource inherits an existing scope — no per-resource `system/Device.*` scope is minted; requesting one is rejected." ] ;
       fhir:interaction ( [
         fhir:code [ fhir:v "read" ]
       ] [
         fhir:code [ fhir:v "search-type" ]
       ] ) ;
       fhir:searchParam ( [
         fhir:name [ fhir:v "_id" ] ;
         fhir:type [ fhir:v "token" ]
       ] [
         fhir:name [ fhir:v "_count" ] ;
         fhir:type [ fhir:v "number" ]
       ] [
         fhir:name [ fhir:v "_offset" ] ;
         fhir:type [ fhir:v "number" ]
       ] )
     ] [
       fhir:type [ fhir:v "CodeSystem" ] ;
       fhir:documentation [ fhir:v "Terminology resource. Scope is enforced per CodeSystem id by the handler (e.g. `address-source` → `system/Patient.rs`, `org-service` → `system/Appointment.rs`)." ] ;
       fhir:interaction ( [
         fhir:code [ fhir:v "read" ]
       ] )
     ] [
       fhir:type [ fhir:v "ValueSet" ] ;
       fhir:documentation [ fhir:v "Terminology operation. Scope is enforced per ValueSet `url` by the handler (cancellation-reason → `system/Appointment.rs`, observation-loinc → `system/Observation.rs`, mx-* → `system/Patient.rs`)." ] ;
       fhir:operation ( [
         fhir:name [ fhir:v "expand" ] ;
         fhir:definition [
           fhir:v "http://hl7.org/fhir/OperationDefinition/ValueSet-expand"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/OperationDefinition/ValueSet-expand>
         ]
       ] )
     ] )
  ] ) . # 

# -------------------------------------------------------------------------------------

