@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.eu/fhir/health-data-api/CapabilityStatement/document-consumer-eu-api> a fhir:CapabilityStatement ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "document-consumer-eu-api"] ;
  fhir:Resource.language [ fhir:value "en"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: CapabilityStatement document-consumer-eu-api</b></p><a name=\"document-consumer-eu-api\"> </a><a name=\"hcdocument-consumer-eu-api\"> </a><h2 id=\"title\">EEHRxF Document Consumer CapabilityStatement</h2><ul><li>Implementation Guide Version: 1.0.0-ballot </li><li>FHIR Version: 4.0.1 </li><li>Supported Formats: <code>json</code>, <code>xml</code></li><li>Published on: 2026-01-26 </li><li>Published by: HL7 Europe </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>client</code></h3></div><div class=\"panel-body\"><div><p>The Document Consumer actor queries for document metadata and retrieves documents\nfrom a Document Access Provider. It also queries for patient context using PDQm.\nAll transactions require SMART Backend Services authorization.</p>\n</div><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><blockquote><div><p>SMART Backend Services authorization is REQUIRED for all transactions.\nSystems SHALL:</p>\n<ul>\n<li>Authenticate using JWT client credentials (RFC 7523)</li>\n<li>Request appropriate scopes for document access</li>\n<li>Use TLS 1.2 or higher for all communications</li>\n</ul>\n<p>Required scopes:</p>\n<ul>\n<li>system/DocumentReference.rs (read + search DocumentReference - ITI-67)</li>\n<li>system/Binary.r (read Binary for document retrieval - ITI-68)</li>\n<li>system/Bundle.r (read Bundle for FHIR Document retrieval - ITI-68)</li>\n<li>system/Patient.rs (read + search Patient for context - ITI-78)</li>\n</ul>\n</div></blockquote></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><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=\"#DocumentReference1-1\">DocumentReference</a></td><td>Supported Profiles<br/>  <a href=\"StructureDefinition-document-reference-eu-api.html\">EEHRxF MHD DocumentReference Profile</a><br/>  <a href=\"https://profiles.ihe.net/ITI/MHD/4.2.4/StructureDefinition-IHE.MHD.Minimal.DocumentReference.html\">MHD DocumentReference Minimal</a></td><td class=\"text-center\"><span title=\"SHALL\"><b>Y</b></span></td><td class=\"text-center\"><span title=\"SHALL\"><b>Y</b></span></td><td class=\"text-center\"/><td class=\"text-center\"/><td>patient, type, _id, category, date, status, identifier</td><td/><td/><td/></tr><tr><td><a href=\"#Binary1-2\">Binary</a></td><td> </td><td class=\"text-center\"><span title=\"SHALL\"><b>Y</b></span></td><td class=\"text-center\"/><td class=\"text-center\"/><td class=\"text-center\"/><td/><td/><td/><td/></tr><tr><td><a href=\"#Patient1-3\">Patient</a></td><td>Supported Profiles<br/>  <a href=\"http://hl7.eu/fhir/base/2.0.0-ballot/StructureDefinition-patient-eu-core.html\">Patient (EU core)</a></td><td class=\"text-center\"><span title=\"SHALL\"><b>Y</b></span></td><td class=\"text-center\"><span title=\"SHALL\"><b>Y</b></span></td><td class=\"text-center\"/><td class=\"text-center\"/><td>identifier, _id, family, given, birthdate</td><td/><td/><td/></tr></tbody></table></div><hr/><div class=\"panel panel-default\"><div class=\"panel-heading\"><h4 id=\"DocumentReference1-1\" class=\"panel-title\"><span style=\"float: right;\">Resource Conformance: SHALL </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><strong>SHALL</strong> support <br/><code>read</code><div><p>Read DocumentReference by logical ID</p>\n</div><code>search-type</code><div><p>Search DocumentReference (ITI-67)</p>\n</div></li></ul></div></div><p/><div class=\"row\"><div class=\"col-6\"><span class=\"lead\">Supported Profiles</span><p><a href=\"StructureDefinition-document-reference-eu-api.html\">EEHRxF MHD DocumentReference Profile</a><br/><a href=\"https://profiles.ihe.net/ITI/MHD/4.2.4/StructureDefinition-IHE.MHD.Minimal.DocumentReference.html\">MHD DocumentReference Minimal</a></p></div></div><p/><div class=\"row\"><div class=\"col-12\"><span class=\"lead\">Documentation</span><blockquote><div><p>DocumentReference resources are queried using the ITI-67 Find Document References\ntransaction to discover available documents for a patient.</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><a href=\"http://hl7.org/fhir/R4/documentreference.html#search\">patient</a></td><td><code>reference</code></td><td><div><p>The patient the document is about (SHALL support)</p>\n</div></td></tr><tr><td><b>SHALL</b></td><td><a href=\"http://hl7.org/fhir/R4/documentreference.html#search\">type</a></td><td><code>token</code></td><td><div><p>Kind of document (LOINC code) - SHALL support for clinical precision filtering</p>\n</div></td></tr><tr><td><b>SHALL</b></td><td><a href=\"http://hl7.org/fhir/R4/resource.html#search\">_id</a></td><td><code>token</code></td><td><div><p>Logical id of this artifact</p>\n</div></td></tr><tr><td><b>SHOULD</b></td><td><a href=\"http://hl7.org/fhir/R4/documentreference.html#search\">category</a></td><td><code>token</code></td><td><div><p>Categorization of document (XDS ClassCode) - SHOULD support for coarse filtering</p>\n</div></td></tr><tr><td><b>SHOULD</b></td><td><a href=\"http://hl7.org/fhir/R4/documentreference.html#search\">date</a></td><td><code>date</code></td><td><div><p>When this document reference was created</p>\n</div></td></tr><tr><td><b>SHOULD</b></td><td><a href=\"http://hl7.org/fhir/R4/documentreference.html#search\">status</a></td><td><code>token</code></td><td><div><p>current | superseded | entered-in-error</p>\n</div></td></tr><tr><td><b>SHOULD</b></td><td><a href=\"http://hl7.org/fhir/R4/documentreference.html#search\">identifier</a></td><td><code>token</code></td><td><div><p>Master Version Specific Identifier</p>\n</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=\"Binary1-2\" class=\"panel-title\"><span style=\"float: right;\">Resource Conformance: SHALL </span>Binary</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/binary.html\">Binary</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><strong>SHALL</strong> support <br/><code>read</code><div><p>Retrieve document content (ITI-68)</p>\n</div></li></ul></div></div><p/><p/><div class=\"row\"><div class=\"col-12\"><span class=\"lead\">Documentation</span><blockquote><div><p>Binary resources contain the actual document content and are retrieved using the\nITI-68 Retrieve Document transaction.</p>\n</div></blockquote></div></div></div></div></div><div class=\"panel panel-default\"><div class=\"panel-heading\"><h4 id=\"Patient1-3\" class=\"panel-title\"><span style=\"float: right;\">Resource Conformance: SHALL </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><strong>SHALL</strong> support <br/><code>read</code><div><p>Read Patient by logical ID</p>\n</div><code>search-type</code><div><p>Search for patients (PDQm ITI-78)</p>\n</div></li></ul></div></div><p/><div class=\"row\"><div class=\"col-6\"><span class=\"lead\">Supported Profiles</span><p><a href=\"http://hl7.eu/fhir/base/2.0.0-ballot/StructureDefinition-patient-eu-core.html\">Patient (EU core)</a></p></div></div><p/><div class=\"row\"><div class=\"col-12\"><span class=\"lead\">Documentation</span><blockquote><div><p>Patient resources are searched to establish patient context before querying for documents.\nThis uses PDQm [ITI-78] with identifier as a required search parameter.</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><a href=\"http://hl7.org/fhir/R4/patient.html#search\">identifier</a></td><td><code>token</code></td><td><div><p>Patient identifier (e.g., national ID, MRN) - required for patient lookup</p>\n</div></td></tr><tr><td><b>SHALL</b></td><td><a href=\"http://hl7.org/fhir/R4/resource.html#search\">_id</a></td><td><code>token</code></td><td><div><p>Patient logical ID</p>\n</div></td></tr><tr><td><b>SHOULD</b></td><td><a href=\"http://hl7.org/fhir/R4/patient.html#search\">family</a></td><td><code>string</code></td><td><div><p>Patient family name</p>\n</div></td></tr><tr><td><b>SHOULD</b></td><td><a href=\"http://hl7.org/fhir/R4/patient.html#search\">given</a></td><td><code>string</code></td><td><div><p>Patient given name</p>\n</div></td></tr><tr><td><b>SHOULD</b></td><td><a href=\"http://hl7.org/fhir/R4/patient.html#search\">birthdate</a></td><td><code>date</code></td><td><div><p>Patient date of birth</p>\n</div></td></tr></tbody></table></div><div class=\"col-lg-5\"> </div></div></div></div></div></div>"
  ] ;
  fhir:CapabilityStatement.url [ fhir:value "http://hl7.eu/fhir/health-data-api/CapabilityStatement/document-consumer-eu-api"] ;
  fhir:CapabilityStatement.version [ fhir:value "1.0.0-ballot"] ;
  fhir:CapabilityStatement.name [ fhir:value "DocumentConsumerEuApi"] ;
  fhir:CapabilityStatement.title [ fhir:value "EEHRxF Document Consumer CapabilityStatement"] ;
  fhir:CapabilityStatement.status [ fhir:value "active"] ;
  fhir:CapabilityStatement.experimental [ fhir:value "false"^^xsd:boolean] ;
  fhir:CapabilityStatement.date [ fhir:value "2026-01-26"^^xsd:date] ;
  fhir:CapabilityStatement.publisher [ fhir:value "HL7 Europe"] ;
  fhir:CapabilityStatement.contact [
     fhir:index -1 ;
     fhir:ContactDetail.name [ fhir:value "HL7 Europe" ] ;
     fhir:ContactDetail.telecom [
       fhir:index -1 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "http://hl7.eu" ]
     ]
  ] ;
  fhir:CapabilityStatement.description [ fhir:value "CapabilityStatement for the EEHRxF Document Consumer actor. This composite actor\nconsumes EEHRxF FHIR Documents by querying a Document Access Provider.\n\n### Actor Grouping\n\nThis composite actor groups the following IHE actors:\n- [IUA Authorization Client](https://profiles.ihe.net/ITI/IUA/index.html#34111-authorization-client)\n- [PDQm Patient Demographics Consumer](https://profiles.ihe.net/ITI/PDQm/volume-1.html)\n- [MHD Document Consumer](https://profiles.ihe.net/ITI/MHD/1331_actors_and_transactions.html)\n\n### Transactions\n\n| Transaction | Description | Optionality |\n|-------------|-------------|-------------|\n| ITI-67 Find Document References | Query for document metadata from Document Access Provider | R |\n| ITI-68 Retrieve Document | Retrieve document content from Document Access Provider | R |\n| ITI-78 Patient Demographics Query | Query for patient demographics to establish patient context | R |\n| Get Access Token | Obtain authorization token for API access | R |\n\n### Security\nSystems SHALL support SMART Backend Services authorization for all transactions."] ;
  fhir:CapabilityStatement.jurisdiction [
     fhir:index -1 ;
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "http://unstats.un.org/unsd/methods/m49/m49.htm" ] ;
       fhir:Coding.code [ fhir:value "150" ] ;
       fhir:Coding.display [ fhir:value "Europe" ]
     ]
  ] ;
  fhir:CapabilityStatement.copyright [ fhir:value "Copyright HL7 Europe. Licensed under Creative Commons public domain (CC0 1.0)."] ;
  fhir:CapabilityStatement.kind [ fhir:value "requirements"] ;
  fhir:CapabilityStatement.fhirVersion [ fhir:value "4.0.1"] ;
  fhir:CapabilityStatement.format [
     fhir:value "json" ;
     fhir:index -1
  ], [
     fhir:value "xml" ;
     fhir:index -1
  ] ;
  fhir:CapabilityStatement.rest [
     fhir:index -1 ;
     fhir:CapabilityStatement.rest.mode [ fhir:value "client" ] ;
     fhir:CapabilityStatement.rest.documentation [ fhir:value "The Document Consumer actor queries for document metadata and retrieves documents\nfrom a Document Access Provider. It also queries for patient context using PDQm.\nAll transactions require SMART Backend Services authorization." ] ;
     fhir:CapabilityStatement.rest.security [
       fhir:CapabilityStatement.rest.security.cors [ fhir:value "false"^^xsd:boolean ] ;
       fhir:CapabilityStatement.rest.security.service [
         fhir:index -1 ;
         fhir:CodeableConcept.coding [
           fhir:index -1 ;
           fhir:Coding.system [ fhir:value "http://hl7.org/fhir/restful-security-service" ] ;
           fhir:Coding.code [ fhir:value "SMART-on-FHIR" ]
         ]
       ] ;
       fhir:CapabilityStatement.rest.security.description [ fhir:value "SMART Backend Services authorization is REQUIRED for all transactions.\nSystems SHALL:\n- Authenticate using JWT client credentials (RFC 7523)\n- Request appropriate scopes for document access\n- Use TLS 1.2 or higher for all communications\n\nRequired scopes:\n- system/DocumentReference.rs (read + search DocumentReference - ITI-67)\n- system/Binary.r (read Binary for document retrieval - ITI-68)\n- system/Bundle.r (read Bundle for FHIR Document retrieval - ITI-68)\n- system/Patient.rs (read + search Patient for context - ITI-78)" ]
     ] ;
     fhir:CapabilityStatement.rest.resource [
       fhir:index -1 ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
         fhir:Extension.valueCode [ fhir:value "SHALL" ]
       ] ;
       fhir:CapabilityStatement.rest.resource.type [ fhir:value "DocumentReference" ] ;
       fhir:CapabilityStatement.rest.resource.supportedProfile [
         fhir:value "http://hl7.eu/fhir/health-data-api/StructureDefinition/document-reference-eu-api" ;
         fhir:index -1 ;
         fhir:link <http://hl7.eu/fhir/health-data-api/StructureDefinition/document-reference-eu-api>
       ], [
         fhir:value "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.DocumentReference" ;
         fhir:index -1 ;
         fhir:link <https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.DocumentReference>
       ] ;
       fhir:CapabilityStatement.rest.resource.documentation [ fhir:value "DocumentReference resources are queried using the ITI-67 Find Document References\ntransaction to discover available documents for a patient." ] ;
       fhir:CapabilityStatement.rest.resource.interaction [
         fhir:index -1 ;
         fhir:Element.extension [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
           fhir:Extension.valueCode [ fhir:value "SHALL" ]
         ] ;
         fhir:CapabilityStatement.rest.resource.interaction.code [ fhir:value "read" ] ;
         fhir:CapabilityStatement.rest.resource.interaction.documentation [ fhir:value "Read DocumentReference by logical ID" ]
       ], [
         fhir:index -1 ;
         fhir:Element.extension [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
           fhir:Extension.valueCode [ fhir:value "SHALL" ]
         ] ;
         fhir:CapabilityStatement.rest.resource.interaction.code [ fhir:value "search-type" ] ;
         fhir:CapabilityStatement.rest.resource.interaction.documentation [ fhir:value "Search DocumentReference (ITI-67)" ]
       ] ;
       fhir:CapabilityStatement.rest.resource.searchParam [
         fhir:index -1 ;
         fhir:Element.extension [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
           fhir:Extension.valueCode [ fhir:value "SHALL" ]
         ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.name [ fhir:value "patient" ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.definition [
           fhir:value "http://hl7.org/fhir/SearchParameter/clinical-patient" ;
           fhir:link <http://hl7.org/fhir/SearchParameter/clinical-patient>
         ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.type [ fhir:value "reference" ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.documentation [ fhir:value "The patient the document is about (SHALL support)" ]
       ], [
         fhir:index -1 ;
         fhir:Element.extension [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
           fhir:Extension.valueCode [ fhir:value "SHALL" ]
         ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.name [ fhir:value "type" ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.definition [
           fhir:value "http://hl7.org/fhir/SearchParameter/clinical-type" ;
           fhir:link <http://hl7.org/fhir/SearchParameter/clinical-type>
         ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.type [ fhir:value "token" ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.documentation [ fhir:value "Kind of document (LOINC code) - SHALL support for clinical precision filtering" ]
       ], [
         fhir:index -1 ;
         fhir:Element.extension [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
           fhir:Extension.valueCode [ fhir:value "SHALL" ]
         ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.name [ fhir:value "_id" ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.definition [
           fhir:value "http://hl7.org/fhir/SearchParameter/Resource-id" ;
           fhir:link <http://hl7.org/fhir/SearchParameter/Resource-id>
         ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.type [ fhir:value "token" ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.documentation [ fhir:value "Logical id of this artifact" ]
       ], [
         fhir:index -1 ;
         fhir:Element.extension [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
           fhir:Extension.valueCode [ fhir:value "SHOULD" ]
         ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.name [ fhir:value "category" ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.definition [
           fhir:value "http://hl7.org/fhir/SearchParameter/DocumentReference-category" ;
           fhir:link <http://hl7.org/fhir/SearchParameter/DocumentReference-category>
         ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.type [ fhir:value "token" ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.documentation [ fhir:value "Categorization of document (XDS ClassCode) - SHOULD support for coarse filtering" ]
       ], [
         fhir:index -1 ;
         fhir:Element.extension [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
           fhir:Extension.valueCode [ fhir:value "SHOULD" ]
         ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.name [ fhir:value "date" ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.definition [
           fhir:value "http://hl7.org/fhir/SearchParameter/clinical-date" ;
           fhir:link <http://hl7.org/fhir/SearchParameter/clinical-date>
         ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.type [ fhir:value "date" ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.documentation [ fhir:value "When this document reference was created" ]
       ], [
         fhir:index -1 ;
         fhir:Element.extension [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
           fhir:Extension.valueCode [ fhir:value "SHOULD" ]
         ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.name [ fhir:value "status" ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.definition [
           fhir:value "http://hl7.org/fhir/SearchParameter/DocumentReference-status" ;
           fhir:link <http://hl7.org/fhir/SearchParameter/DocumentReference-status>
         ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.type [ fhir:value "token" ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.documentation [ fhir:value "current | superseded | entered-in-error" ]
       ], [
         fhir:index -1 ;
         fhir:Element.extension [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
           fhir:Extension.valueCode [ fhir:value "SHOULD" ]
         ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.name [ fhir:value "identifier" ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.definition [
           fhir:value "http://hl7.org/fhir/SearchParameter/clinical-identifier" ;
           fhir:link <http://hl7.org/fhir/SearchParameter/clinical-identifier>
         ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.type [ fhir:value "token" ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.documentation [ fhir:value "Master Version Specific Identifier" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
         fhir:Extension.valueCode [ fhir:value "SHALL" ]
       ] ;
       fhir:CapabilityStatement.rest.resource.type [ fhir:value "Binary" ] ;
       fhir:CapabilityStatement.rest.resource.documentation [ fhir:value "Binary resources contain the actual document content and are retrieved using the\nITI-68 Retrieve Document transaction." ] ;
       fhir:CapabilityStatement.rest.resource.interaction [
         fhir:index -1 ;
         fhir:Element.extension [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
           fhir:Extension.valueCode [ fhir:value "SHALL" ]
         ] ;
         fhir:CapabilityStatement.rest.resource.interaction.code [ fhir:value "read" ] ;
         fhir:CapabilityStatement.rest.resource.interaction.documentation [ fhir:value "Retrieve document content (ITI-68)" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
         fhir:Extension.valueCode [ fhir:value "SHALL" ]
       ] ;
       fhir:CapabilityStatement.rest.resource.type [ fhir:value "Patient" ] ;
       fhir:CapabilityStatement.rest.resource.supportedProfile [
         fhir:value "http://hl7.eu/fhir/base/StructureDefinition/patient-eu-core" ;
         fhir:index -1 ;
         fhir:link <http://hl7.eu/fhir/base/StructureDefinition/patient-eu-core>
       ] ;
       fhir:CapabilityStatement.rest.resource.documentation [ fhir:value "Patient resources are searched to establish patient context before querying for documents.\nThis uses PDQm [ITI-78] with identifier as a required search parameter." ] ;
       fhir:CapabilityStatement.rest.resource.interaction [
         fhir:index -1 ;
         fhir:Element.extension [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
           fhir:Extension.valueCode [ fhir:value "SHALL" ]
         ] ;
         fhir:CapabilityStatement.rest.resource.interaction.code [ fhir:value "read" ] ;
         fhir:CapabilityStatement.rest.resource.interaction.documentation [ fhir:value "Read Patient by logical ID" ]
       ], [
         fhir:index -1 ;
         fhir:Element.extension [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
           fhir:Extension.valueCode [ fhir:value "SHALL" ]
         ] ;
         fhir:CapabilityStatement.rest.resource.interaction.code [ fhir:value "search-type" ] ;
         fhir:CapabilityStatement.rest.resource.interaction.documentation [ fhir:value "Search for patients (PDQm ITI-78)" ]
       ] ;
       fhir:CapabilityStatement.rest.resource.searchParam [
         fhir:index -1 ;
         fhir:Element.extension [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
           fhir:Extension.valueCode [ fhir:value "SHALL" ]
         ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.name [ fhir:value "identifier" ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.definition [
           fhir:value "http://hl7.org/fhir/SearchParameter/Patient-identifier" ;
           fhir:link <http://hl7.org/fhir/SearchParameter/Patient-identifier>
         ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.type [ fhir:value "token" ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.documentation [ fhir:value "Patient identifier (e.g., national ID, MRN) - required for patient lookup" ]
       ], [
         fhir:index -1 ;
         fhir:Element.extension [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
           fhir:Extension.valueCode [ fhir:value "SHALL" ]
         ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.name [ fhir:value "_id" ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.definition [
           fhir:value "http://hl7.org/fhir/SearchParameter/Resource-id" ;
           fhir:link <http://hl7.org/fhir/SearchParameter/Resource-id>
         ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.type [ fhir:value "token" ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.documentation [ fhir:value "Patient logical ID" ]
       ], [
         fhir:index -1 ;
         fhir:Element.extension [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
           fhir:Extension.valueCode [ fhir:value "SHOULD" ]
         ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.name [ fhir:value "family" ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.definition [
           fhir:value "http://hl7.org/fhir/SearchParameter/individual-family" ;
           fhir:link <http://hl7.org/fhir/SearchParameter/individual-family>
         ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.type [ fhir:value "string" ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.documentation [ fhir:value "Patient family name" ]
       ], [
         fhir:index -1 ;
         fhir:Element.extension [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
           fhir:Extension.valueCode [ fhir:value "SHOULD" ]
         ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.name [ fhir:value "given" ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.definition [
           fhir:value "http://hl7.org/fhir/SearchParameter/individual-given" ;
           fhir:link <http://hl7.org/fhir/SearchParameter/individual-given>
         ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.type [ fhir:value "string" ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.documentation [ fhir:value "Patient given name" ]
       ], [
         fhir:index -1 ;
         fhir:Element.extension [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
           fhir:Extension.valueCode [ fhir:value "SHOULD" ]
         ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.name [ fhir:value "birthdate" ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.definition [
           fhir:value "http://hl7.org/fhir/SearchParameter/individual-birthdate" ;
           fhir:link <http://hl7.org/fhir/SearchParameter/individual-birthdate>
         ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.type [ fhir:value "date" ] ;
         fhir:CapabilityStatement.rest.resource.searchParam.documentation [ fhir:value "Patient date of birth" ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://hl7.eu/fhir/health-data-api/CapabilityStatement/document-consumer-eu-api.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

