@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://bih-cei.github.io/ceir-os-ig/CapabilityStatement/CEIROSTerminologyMCP> a fhir:CapabilityStatement ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "CEIROSTerminologyMCP"] ; # 
  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 CEIROSTerminologyMCP</b></p><a name=\"CEIROSTerminologyMCP\"> </a><a name=\"hcCEIROSTerminologyMCP\"> </a><h2 id=\"title\">CEIR-OS Terminology MCP Server</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: 2024-01-01 </li><li>Published by: Berlin Institute of Health at Charité </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><p>Bietet 8 MCP-Tools für Terminologie-Abfragen. HTTP REST auf Port 3000, MCP SSE auf Port 3002.</p>\n</div></div></div></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:url [
     fhir:v "https://bih-cei.github.io/ceir-os-ig/CapabilityStatement/CEIROSTerminologyMCP"^^xsd:anyURI ;
     fhir:l <https://bih-cei.github.io/ceir-os-ig/CapabilityStatement/CEIROSTerminologyMCP>
  ] ; # 
  fhir:version [ fhir:v "0.1.0"] ; # 
  fhir:title [ fhir:v "CEIR-OS Terminology MCP Server"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:date [ fhir:v "2024-01-01"^^xsd:date] ; # 
  fhir:publisher [ fhir:v "Berlin Institute of Health at Charité"] ; # 
  fhir:contact ( [
     fhir:name [ fhir:v "Berlin Institute of Health at Charité" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "https://www.bihealth.org" ]
     ] [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "thomas.debertolis@bih-charite.de" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "CapabilityStatement für den Terminology MCP Server. Kombiniert HTTP REST Proxy (Port 3000) und MCP SSE Endpoint (Port 3002). Unterstützt SNOMED CT (via Snowstorm), LOINC (mit deutschen Labels), ICD-10-GM, OPS und ATC (via MII OntoServer mit mTLS)."] ; # 
  fhir:jurisdiction ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ;
         fhir:l <urn:iso:std:iso:3166>
       ] ;
       fhir:code [ fhir:v "DE" ] ;
       fhir:display [ fhir:v "Germany" ]
     ] )
  ] ) ; # 
  fhir:kind [ fhir:v "instance"] ; # 
  fhir:software [
     fhir:name [ fhir:v "terminology-mcp" ] ;
     fhir:version [ fhir:v "1.0.0" ]
  ] ; # 
  fhir:implementation [
     fhir:description [ fhir:v "Terminology MCP Server - HTTP REST + MCP SSE" ] ;
     fhir:url [
       fhir:v "http://localhost:3000"^^xsd:anyURI ;
       fhir:l <http://localhost:3000>
     ]
  ] ; # 
  fhir:fhirVersion [ fhir:v "4.0.1"] ; # 
  fhir:format ( [ fhir:v "json"] ) ; # 
  fhir:rest ( [
     fhir:extension ( [
       fhir:extension ( [
         fhir:url [
           fhir:v "toolName"^^xsd:anyURI ;
           fhir:l fhir:toolName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "validate_code"
         ]
       ] [
         fhir:url [
           fhir:v "toolDescription"^^xsd:anyURI ;
           fhir:l fhir:toolDescription
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Validiert ob ein Code in einem CodeSystem existiert"
         ]
       ] [
         fhir:url [
           fhir:v "sseEndpoint"^^xsd:anyURI ;
           fhir:l fhir:sseEndpoint
         ] ;
         fhir:value [
           a fhir:Url ;
           fhir:v "http://localhost:3002/sse"^^xsd:anyURI ;
           fhir:l <http://localhost:3002/sse>
         ]
       ] [
         fhir:url [
           fhir:v "inputSchema"^^xsd:anyURI ;
           fhir:l fhir:inputSchema
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "{\"system\": \"string (CodeSystem URL)\", \"code\": \"string\"}"
         ]
       ] ) ;
       fhir:url [
         fhir:v "https://bih-cei.github.io/ceir-os-ig/StructureDefinition/mcp-tool-definition"^^xsd:anyURI ;
         fhir:l <https://bih-cei.github.io/ceir-os-ig/StructureDefinition/mcp-tool-definition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "toolName"^^xsd:anyURI ;
           fhir:l fhir:toolName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "lookup_code"
         ]
       ] [
         fhir:url [
           fhir:v "toolDescription"^^xsd:anyURI ;
           fhir:l fhir:toolDescription
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Details fuer einen bekannten Code abrufen (Display, Properties, Uebersetzungen)"
         ]
       ] [
         fhir:url [
           fhir:v "sseEndpoint"^^xsd:anyURI ;
           fhir:l fhir:sseEndpoint
         ] ;
         fhir:value [
           a fhir:Url ;
           fhir:v "http://localhost:3002/sse"^^xsd:anyURI ;
           fhir:l <http://localhost:3002/sse>
         ]
       ] [
         fhir:url [
           fhir:v "inputSchema"^^xsd:anyURI ;
           fhir:l fhir:inputSchema
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "{\"system\": \"string (CodeSystem URL)\", \"code\": \"string\"}"
         ]
       ] ) ;
       fhir:url [
         fhir:v "https://bih-cei.github.io/ceir-os-ig/StructureDefinition/mcp-tool-definition"^^xsd:anyURI ;
         fhir:l <https://bih-cei.github.io/ceir-os-ig/StructureDefinition/mcp-tool-definition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "toolName"^^xsd:anyURI ;
           fhir:l fhir:toolName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "search_common_loinc"
         ]
       ] [
         fhir:url [
           fhir:v "toolDescription"^^xsd:anyURI ;
           fhir:l fhir:toolDescription
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Schnelle lokale Suche haeufiger LOINC-Codes mit deutschen Uebersetzungen"
         ]
       ] [
         fhir:url [
           fhir:v "sseEndpoint"^^xsd:anyURI ;
           fhir:l fhir:sseEndpoint
         ] ;
         fhir:value [
           a fhir:Url ;
           fhir:v "http://localhost:3002/sse"^^xsd:anyURI ;
           fhir:l <http://localhost:3002/sse>
         ]
       ] [
         fhir:url [
           fhir:v "inputSchema"^^xsd:anyURI ;
           fhir:l fhir:inputSchema
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "{\"searchText\": \"string\", \"limit\": \"integer (default: 10)\"}"
         ]
       ] ) ;
       fhir:url [
         fhir:v "https://bih-cei.github.io/ceir-os-ig/StructureDefinition/mcp-tool-definition"^^xsd:anyURI ;
         fhir:l <https://bih-cei.github.io/ceir-os-ig/StructureDefinition/mcp-tool-definition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "toolName"^^xsd:anyURI ;
           fhir:l fhir:toolName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "get_german_label"
         ]
       ] [
         fhir:url [
           fhir:v "toolDescription"^^xsd:anyURI ;
           fhir:l fhir:toolDescription
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Deutsche Uebersetzung fuer einen LOINC-Code abrufen"
         ]
       ] [
         fhir:url [
           fhir:v "sseEndpoint"^^xsd:anyURI ;
           fhir:l fhir:sseEndpoint
         ] ;
         fhir:value [
           a fhir:Url ;
           fhir:v "http://localhost:3002/sse"^^xsd:anyURI ;
           fhir:l <http://localhost:3002/sse>
         ]
       ] [
         fhir:url [
           fhir:v "inputSchema"^^xsd:anyURI ;
           fhir:l fhir:inputSchema
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "{\"code\": \"string (LOINC code)\"}"
         ]
       ] ) ;
       fhir:url [
         fhir:v "https://bih-cei.github.io/ceir-os-ig/StructureDefinition/mcp-tool-definition"^^xsd:anyURI ;
         fhir:l <https://bih-cei.github.io/ceir-os-ig/StructureDefinition/mcp-tool-definition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "toolName"^^xsd:anyURI ;
           fhir:l fhir:toolName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "search_across_versions"
         ]
       ] [
         fhir:url [
           fhir:v "toolDescription"^^xsd:anyURI ;
           fhir:l fhir:toolDescription
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Suche ueber mehrere Versionen von ICD-10-GM, OPS oder ATC"
         ]
       ] [
         fhir:url [
           fhir:v "sseEndpoint"^^xsd:anyURI ;
           fhir:l fhir:sseEndpoint
         ] ;
         fhir:value [
           a fhir:Url ;
           fhir:v "http://localhost:3002/sse"^^xsd:anyURI ;
           fhir:l <http://localhost:3002/sse>
         ]
       ] [
         fhir:url [
           fhir:v "inputSchema"^^xsd:anyURI ;
           fhir:l fhir:inputSchema
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "{\"system\": \"string (CodeSystem URL)\", \"searchText\": \"string\"}"
         ]
       ] ) ;
       fhir:url [
         fhir:v "https://bih-cei.github.io/ceir-os-ig/StructureDefinition/mcp-tool-definition"^^xsd:anyURI ;
         fhir:l <https://bih-cei.github.io/ceir-os-ig/StructureDefinition/mcp-tool-definition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "toolName"^^xsd:anyURI ;
           fhir:l fhir:toolName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "list_panels"
         ]
       ] [
         fhir:url [
           fhir:v "toolDescription"^^xsd:anyURI ;
           fhir:l fhir:toolDescription
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "LOINC-Panels auflisten (z.B. Blutbild, Leberwerte)"
         ]
       ] [
         fhir:url [
           fhir:v "sseEndpoint"^^xsd:anyURI ;
           fhir:l fhir:sseEndpoint
         ] ;
         fhir:value [
           a fhir:Url ;
           fhir:v "http://localhost:3002/sse"^^xsd:anyURI ;
           fhir:l <http://localhost:3002/sse>
         ]
       ] ) ;
       fhir:url [
         fhir:v "https://bih-cei.github.io/ceir-os-ig/StructureDefinition/mcp-tool-definition"^^xsd:anyURI ;
         fhir:l <https://bih-cei.github.io/ceir-os-ig/StructureDefinition/mcp-tool-definition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "toolName"^^xsd:anyURI ;
           fhir:l fhir:toolName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "get_panel_components"
         ]
       ] [
         fhir:url [
           fhir:v "toolDescription"^^xsd:anyURI ;
           fhir:l fhir:toolDescription
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Komponenten eines LOINC-Panels abrufen"
         ]
       ] [
         fhir:url [
           fhir:v "sseEndpoint"^^xsd:anyURI ;
           fhir:l fhir:sseEndpoint
         ] ;
         fhir:value [
           a fhir:Url ;
           fhir:v "http://localhost:3002/sse"^^xsd:anyURI ;
           fhir:l <http://localhost:3002/sse>
         ]
       ] [
         fhir:url [
           fhir:v "inputSchema"^^xsd:anyURI ;
           fhir:l fhir:inputSchema
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "{\"panelCode\": \"string (LOINC panel code)\"}"
         ]
       ] ) ;
       fhir:url [
         fhir:v "https://bih-cei.github.io/ceir-os-ig/StructureDefinition/mcp-tool-definition"^^xsd:anyURI ;
         fhir:l <https://bih-cei.github.io/ceir-os-ig/StructureDefinition/mcp-tool-definition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "toolName"^^xsd:anyURI ;
           fhir:l fhir:toolName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "lookup_loinc_answer_code"
         ]
       ] [
         fhir:url [
           fhir:v "toolDescription"^^xsd:anyURI ;
           fhir:l fhir:toolDescription
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "LOINC Answer Code nachschlagen (fuer Antwortoptionen)"
         ]
       ] [
         fhir:url [
           fhir:v "sseEndpoint"^^xsd:anyURI ;
           fhir:l fhir:sseEndpoint
         ] ;
         fhir:value [
           a fhir:Url ;
           fhir:v "http://localhost:3002/sse"^^xsd:anyURI ;
           fhir:l <http://localhost:3002/sse>
         ]
       ] [
         fhir:url [
           fhir:v "inputSchema"^^xsd:anyURI ;
           fhir:l fhir:inputSchema
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "{\"answerCode\": \"string\"}"
         ]
       ] ) ;
       fhir:url [
         fhir:v "https://bih-cei.github.io/ceir-os-ig/StructureDefinition/mcp-tool-definition"^^xsd:anyURI ;
         fhir:l <https://bih-cei.github.io/ceir-os-ig/StructureDefinition/mcp-tool-definition>
       ]
     ] ) ;
     fhir:mode [ fhir:v "server" ] ;
     fhir:documentation [ fhir:v "Bietet 8 MCP-Tools für Terminologie-Abfragen. HTTP REST auf Port 3000, MCP SSE auf Port 3002." ]
  ] ) . # 

# -------------------------------------------------------------------------------------

