@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-access-provider-submission-option-eu-api> a fhir:CapabilityStatement ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "document-access-provider-submission-option-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-access-provider-submission-option-eu-api</b></p><a name=\"document-access-provider-submission-option-eu-api\"> </a><a name=\"hcdocument-access-provider-submission-option-eu-api\"> </a><h2 id=\"title\">EEHRxF Document Access Provider - Document Submission Option</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><p>This CapabilityStatement imports the CapabilityStatement <a href=\"CapabilityStatement-document-access-provider-eu-api.html\">EEHRxF Document Access Provider CapabilityStatement</a></p><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><p>The Document Submission Option adds ITI-105 Simplified Publish capability.\nDocument Publishers POST a DocumentReference with embedded document content.\nThe server extracts and persists both the DocumentReference metadata and the\nembedded document, making them available via ITI-67 and ITI-68.</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>Additional scope required for document submission:</p>\n<ul>\n<li>system/DocumentReference.c (create DocumentReference via ITI-105)</li>\n</ul>\n<p>The Document Publisher must be authorized to submit documents on behalf of the\npatient's care team.</p>\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.SimplifiedPublish.DocumentReference.html\">MHD DocumentReference for Simplified Publish</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\"/><td class=\"text-center\"/><td class=\"text-center\"/><td class=\"text-center\"><span title=\"SHALL\"><b>Y</b></span></td><td/><td/><td/><td><code>$validate</code></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>create</code><div><p>Accept DocumentReference with embedded document (ITI-105 Simplified Publish).</p>\n<p>The DocumentReference SHALL include:</p>\n<ul>\n<li>status (required)</li>\n<li>type (required - LOINC document type)</li>\n<li>subject (required - Patient reference)</li>\n<li>content.attachment.contentType (required)</li>\n<li>content.attachment.data (required - base64-encoded document content)</li>\n</ul>\n<p>The server SHALL:</p>\n<ul>\n<li>Validate against EEHRxF DocumentReference profile</li>\n<li>Extract and persist the document</li>\n<li>For FHIR Documents, ensure the content is retrievable as a native FHIR Document Bundle (not wrapped in Binary)</li>\n<li>Assign server-generated IDs</li>\n<li>Return 201 Created with the persisted DocumentReference</li>\n</ul>\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.SimplifiedPublish.DocumentReference.html\">MHD DocumentReference for Simplified Publish</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 with embedded document content are accepted via\nITI-105 Simplified Publish. The server:</p>\n<ol>\n<li>Validates the DocumentReference against EEHRxF profiles</li>\n<li>Extracts the embedded document from content.attachment.data</li>\n<li>Persists both the DocumentReference and the document</li>\n<li>Returns the created DocumentReference with server-assigned IDs</li>\n</ol>\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>MAY</b></td><td>$validate</td><td><div><p>Pre-validation of DocumentReference before submission</p>\n</div></td></tr></tbody></table></div></div></div></div></div></div>"
  ] ;
  fhir:CapabilityStatement.url [ fhir:value "http://hl7.eu/fhir/health-data-api/CapabilityStatement/document-access-provider-submission-option-eu-api"] ;
  fhir:CapabilityStatement.version [ fhir:value "1.0.0-ballot"] ;
  fhir:CapabilityStatement.name [ fhir:value "DocumentAccessProviderSubmissionOptionEuApi"] ;
  fhir:CapabilityStatement.title [ fhir:value "EEHRxF Document Access Provider - Document Submission Option"] ;
  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 Document Submission Option on the EEHRxF Document Access Provider.\n\nThis option enables the Access Provider to receive documents from external Document\nPublishers via [ITI-105 Simplified Publish](https://profiles.ihe.net/ITI/MHD/ITI-105.html).\n\nSystems implementing this option:\n- SHALL also implement the base [Document Access Provider](CapabilityStatement-document-access-provider-eu-api.html) capabilities\n- SHALL accept ITI-105 transactions from authorized Document Publishers\n- SHALL make received documents available via ITI-67 and ITI-68\n- SHALL validate documents against EEHRxF content profiles\n\nThis option is REQUIRED when acting as a delegated access provider for external\nDocument Publishers (e.g., integration engines, national infrastructure).\n\n### Actor Grouping\n\nAdds to base Document Access Provider:\n- [MHD Document Recipient](https://profiles.ihe.net/ITI/MHD/1331_actors_and_transactions.html) - Simplified Publish Option ([CapabilityStatement](https://profiles.ihe.net/ITI/MHD/CapabilityStatement-IHE.MHD.DocumentRecipient.html))\n\n### Transaction\n\n| Transaction | Description | Optionality |\n|-------------|-------------|-------------|\n| ITI-105 Simplified Publish | Accept document publication from Document Publishers | R |\n\n### Security\nSystems SHALL support SMART Backend Services authorization for document submission."] ;
  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.imports [
     fhir:value "http://hl7.eu/fhir/health-data-api/CapabilityStatement/document-access-provider-eu-api" ;
     fhir:index -1 ;
     fhir:link <http://hl7.eu/fhir/health-data-api/CapabilityStatement/document-access-provider-eu-api>
  ] ;
  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 "server" ] ;
     fhir:CapabilityStatement.rest.documentation [ fhir:value "The Document Submission Option adds ITI-105 Simplified Publish capability.\nDocument Publishers POST a DocumentReference with embedded document content.\nThe server extracts and persists both the DocumentReference metadata and the\nembedded document, making them available via ITI-67 and ITI-68." ] ;
     fhir:CapabilityStatement.rest.security [
       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 "Additional scope required for document submission:\n- system/DocumentReference.c (create DocumentReference via ITI-105)\n\nThe Document Publisher must be authorized to submit documents on behalf of the\npatient's care team." ]
     ] ;
     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.SimplifiedPublish.DocumentReference" ;
         fhir:index -1 ;
         fhir:link <https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.SimplifiedPublish.DocumentReference>
       ], [
         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 with embedded document content are accepted via\nITI-105 Simplified Publish. The server:\n1. Validates the DocumentReference against EEHRxF profiles\n2. Extracts the embedded document from content.attachment.data\n3. Persists both the DocumentReference and the document\n4. Returns the created DocumentReference with server-assigned IDs" ] ;
       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 "create" ] ;
         fhir:CapabilityStatement.rest.resource.interaction.documentation [ fhir:value "Accept DocumentReference with embedded document (ITI-105 Simplified Publish).\n\nThe DocumentReference SHALL include:\n- status (required)\n- type (required - LOINC document type)\n- subject (required - Patient reference)\n- content.attachment.contentType (required)\n- content.attachment.data (required - base64-encoded document content)\n\nThe server SHALL:\n- Validate against EEHRxF DocumentReference profile\n- Extract and persist the document\n- For FHIR Documents, ensure the content is retrievable as a native FHIR Document Bundle (not wrapped in Binary)\n- Assign server-generated IDs\n- Return 201 Created with the persisted DocumentReference" ]
       ] ;
       fhir:CapabilityStatement.rest.resource.operation [
         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 "MAY" ]
         ] ;
         fhir:CapabilityStatement.rest.resource.operation.name [ fhir:value "validate" ] ;
         fhir:CapabilityStatement.rest.resource.operation.definition [
           fhir:value "http://hl7.org/fhir/OperationDefinition/Resource-validate" ;
           fhir:link <http://hl7.org/fhir/OperationDefinition/Resource-validate>
         ] ;
         fhir:CapabilityStatement.rest.resource.operation.documentation [ fhir:value "Pre-validation of DocumentReference before submission" ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://hl7.eu/fhir/health-data-api/CapabilityStatement/document-access-provider-submission-option-eu-api.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

