Seiteninhalt:
Diese Seite beschreibt den Einstieg in die Subscription-Query-Schnittstelle.
Die Nachricht zum Registrierungsanforderungen zur Benachrichtigungen über Communications wird als HTTP GET-Anfrage an den TI-Flow-Fachdienst gesendet.
Die Nachricht zur Interaktion mit Subscription als FHIR-Ressource Subscription wird über die folgenden HTTP-Methoden ermöglicht:
| Akteur | HTTP-Methode | Ergebnis der Anfrage |
|---|---|---|
| Apotheke, Kostenträger | POST | Registrierung an der TI-Flow-Fachdienst Webschnittstelle |
| Apotheke, Kostenträger | GET | Websocket-Verbindung zum NotificationService |
Anfragen an die Subscription-Ressource können über die RESTful API mittels HTTP GET-Anfragen durchgeführt werden.
{"resourceType":"CapabilityStatement","id":"ti-flow-fachdienst-server","meta":{"profile":["https://gematik.de/fhir/ti/StructureDefinition/ti-capability-statement"]},"text":{"status":"extensions","div":"<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\">Generated Narrative: CapabilityStatement ti-flow-fachdienst-server</p><a name=\"ti-flow-fachdienst-server\"> </a><a name=\"hcti-flow-fachdienst-server\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"https://simplifier.net/resolve?scope=de.gematik.ti@1.3.1&canonical=https://gematik.de/fhir/ti/StructureDefinition/ti-capability-statement\">Capability Statement Profil für TI FHIR Data Service</a></p></div><h2 id=\"title\">CapabilityStatement für den TI-Flow-Fachdienst</h2>application/fhir+json, application/fhir+xmlNote to Implementers: FHIR Capabilities
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.
</blockquote><h2 id=\"rest\">FHIR RESTful Capabilities</h2><div class=\"panel panel-default\"><div class=\"panel-heading\"><h3 id=\"mode1\" class=\"panel-title\">Mode:server</h3></div><div class=\"panel-body\"/></div><h3 id=\"resourcesCap1\">Capabilities by Resource/Profile</h3><h4 id=\"resourcesSummary1\">Summary</h4>The summary table lists the resources that are part of this configuration, and for each resource it lists:
_include_revinclude_include_revincludesearch-type.<a href=\"StructureDefinition-GEM-ERP-PR-Device.html\">GEM ERP PR Device</a>
</div></div></div></div></div><div class=\"panel panel-default\"><div class=\"panel-heading\"><h4 id=\"AuditEvent1-2\" class=\"panel-title\"><span style=\"float: right;\">Resource Conformance: SHALL </span>AuditEvent</h4></div><div class=\"panel-body\"><div class=\"container\"><div class=\"row\"><div class=\"col-lg-4\"><span class=\"lead\">Core FHIR Resource</span>search-type, read.<a href=\"StructureDefinition-audit-event-rest.html\">TI Audit Event Rest</a>
</div></div><div class=\"row\"><div class=\"col-lg-7\"><span class=\"lead\">Search Parameters</span><table class=\"table table-condensed table-hover\">dateAuditEvent.recorded - Unterstützt die Suche nach dem Aufzeichnungsdatum; default sort if _sort is not provided
\nreferenceAuditEvent.entity.what.identifier.value - Unterstützt die Suche nach betroffenen Entitäten
\nstringUnterstützt das Sortieren nach unterstützten AuditEvent-Suchkriterien
\nnumberMaximale Anzahl zurückgegebener Einträge pro Seite; maximum value is 50
\nnumberNullbasierter Offset des ersten zurückgegebenen Eintrags; default is 0
\nError processing command: Unable to find fragment resource Subscription/example-create-subscription-request pointed to in file /Users/gematik/dev/FHIR/fhir-igs-workflow/igs/core/input/pagecontent/query-api-subscription </div>
Error processing command: Unable to find fragment resource Subscription/example-create-subscription-request pointed to in file /Users/gematik/dev/FHIR/fhir-igs-workflow/igs/core/input/pagecontent/query-api-subscription </div> </div>
Error processing command: Unable to find fragment resource Subscription/example-create-subscription-response pointed to in file /Users/gematik/dev/FHIR/fhir-igs-workflow/igs/core/input/pagecontent/query-api-subscription </div>
Error processing command: Unable to find fragment resource Subscription/example-create-subscription-response pointed to in file /Users/gematik/dev/FHIR/fhir-igs-workflow/igs/core/input/pagecontent/query-api-subscription
</div>
</div>
</div>
#### Beispielhafter Ablauf
```http
GET https://subscription.zentral.erp.splitdns.ti-dienste.de/subscription
Authorization: Bearer secret-token-abc-123
Connection: Upgrade
Pragma: no-cache
Cache-Control: no-cache
Upgrade: websocket
Sec-WebSocket-Version: 13
Sec-WebSocket-Key: q4xkcO32u266gldTuKaSOw==
```
Der Subscription Service antwortet mit dem Upgrade
```http
HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: fA9dggdnMPU79lJgAE3W4TRnyDM=
```
Das Upgrade erfolgt mit einer "bind" Text-Nachricht über die Web Socket-Verbindung an den Server.
`bind: