ediverse Explore the platform

Spotlight PEPPOL BIS Billing 3.0 The EU e-invoicing mandate is here — France Sept 2026, Belgium Jan 2026, Germany 2025.

SubscriptionTopic

The subject of a FHIR notification channel: "patient-admitted", "observation-critical", "medication-administered". The subscription contract.

Purpose

SubscriptionTopic defines a publishable event on a FHIR server: data structure conveyed, frequency, triggers, available filters. A Subscription points to a SubscriptionTopic to subscribe. It is the FHIR equivalent of a queue subject or Kafka topic, with structured filter and payload profiles.

Key elements

FieldTypeCardinalityRole
urluri1..1Unique canonical URL.
identifierIdentifier[]0..*External identifiers.
versionstring0..1Version.
namestring0..1Name.
titlestring0..1Title.
statuscode1..1`draft`, `active`, `retired`, `unknown`.
datedateTime0..1Date.
descriptionmarkdown0..1Description.
resourceTriggerBackboneElement[]0..*Triggers (create, delete, update).
eventTriggerBackboneElement[]0..*Event triggers (SNOMED code, internal code).
canFilterByBackboneElement[]0..*Available filters.
notificationShapeBackboneElement[]0..*Payload shape.

JSON example

json subscriptiontopic-example.json
{
  "resourceType": "SubscriptionTopic",
  "id": "example-admission",
  "url": "https://example.org/fhir/SubscriptionTopic/admission-discharge",
  "version": "1.0.0",
  "name": "AdmissionDischargeTopic",
  "title": "Admissions et sorties patient",
  "status": "active",
  "date": "2026-05-15",
  "description": "Notifie sur création ou changement de statut d'un Encounter en mode admission ou discharge.",
  "resourceTrigger": [{
    "description": "Tout changement de statut Encounter",
    "resource": "Encounter",
    "supportedInteraction": ["create", "update"],
    "queryCriteria": {
      "current": "status=in-progress,finished"
    }
  }]
}

Common pitfalls

  • Non-unique canonical URL: collision with another Topic on the server.
  • Neither resourceTrigger nor eventTrigger: empty Topic, no Subscription will attach.
  • Malformed queryCriteria: subscribers receive events they did not want.