Written and maintained by CASRAI Editorial Board
Last updated
FHIR Subscriptions is the native publish/subscribe (pub/sub) framework in HL7 Fast Healthcare Interoperability Resources (FHIR) that allows external clinical applications, care coordination platforms, and clinical trial systems to receive automatic, event-driven notifications whenever specific clinical or administrative changes occur on a FHIR server—eliminating the latency and server load of repetitive REST polling.
What Is FHIR Subscriptions and How Is It Used in Clinical Research and Healthcare?
In traditional RESTful EHR integration, a client application must repeatedly poll an endpoint (for example, GET /Observation?patient=123&_lastUpdated=gt2026-01-01) to discover new lab results or hospital admissions. FHIR Subscriptions replaces client polling with a server-pushed event architecture built around three core components in the topic-based model (introduced normatively in FHIR R5 and backported to FHIR R4):
SubscriptionTopic: A canonical, server-published definition of a clinical or workflow event (such as an inpatient admission/discharge encounter transition, a newly finalized diagnostic laboratory report, or a clinical trial adverse event). EachSubscriptionTopicspecifies the resource triggers (create, update, or delete on resources likeEncounterorObservation) and the allowed filter parameters (such as patient cohort, practitioner, or LOINC code).Subscription: A client-created resource that registers an active listener for a specificSubscriptionTopic, defines the filter values (for example, subscribing only to patients enrolled in a specific research study or care management list), selects the communication channel (such asrest-hookorwebsocket), and specifies the payload security level.- Notification
BundleandSubscriptionStatus: When a matching event occurs, the FHIR server dispatches a notificationBundle(of typesubscription-notificationin R5, orhistoryin the R4 Backport IG) whose first entry is aSubscriptionStatusresource (orParametersprofile in R4) containing the event sequence number, timestamp, subscription reference, and heartbeat/error metadata.
In clinical research, FHIR Subscriptions powers real-time serious adverse event (SAE) detection (notifying sponsors immediately when an enrolled trial participant has an emergency department Encounter), automated screening alerts when a patient meets inclusion criteria lab thresholds, and real-time EHR-to-EDC data synchronization.
What Standards or Regulatory Requirements Govern FHIR Subscriptions?
Health IT developers implement FHIR Subscriptions across three interrelated HL7 specifications depending on the underlying server version:
- HL7 FHIR R5 Topic-Based Subscriptions: Standardized the clean separation between server-defined event catalogs (
SubscriptionTopic) and client instances (Subscription), solving the scalability flaws of legacy FHIR R4 criteria strings (where arbitrary search queries insideSubscription.criteriaproved difficult for large EHR databases to evaluate on every write). - HL7 FHIR R4 Subscriptions R5 Backport Implementation Guide (IG): Because U.S. regulatory certifications under ONC/ASTP 45 CFR § 170.315(g)(10) are anchored on FHIR R4, the HL7 Subscriptions Backport IG maps the R5 topic-based architecture onto FHIR R4 using standard extensions,
Basicprofiles for topics, andParametersresources for notification status. - Payload Security and Privacy Tiers: To align with HIPAA minimum-necessary rules and zero-trust network architectures, the specification defines three payload content modes that determine how much Protected Health Information (PHI) traverses the notification channel:
Payload Content Mode (content) |
What the Notification Bundle Contains | Security & Authorization Model | Primary Healthcare & Research Use Case |
|---|---|---|---|
empty (Ping-Only) |
Only the SubscriptionStatus metadata and event count; zero clinical resource IDs or PHI |
Lowest risk over public networks; subscriber must authenticate via SMART Backend Services OAuth 2.0 to query the server for updates | Mobile apps and external multi-tenant SaaS listeners where webhook endpoints cannot store PHI in transit logs |
id-only (Resource Pointers) |
SubscriptionStatus plus the relative or absolute URLs (e.g., Encounter/9842) of the affected resources without clinical body fields |
Prevents PHI exposure in the push notification while enforcing granular RBAC/OAuth scopes when the client executes a follow-up GET |
Cross-organization health information exchange (HIE), care coordination alerts, and clinical trial screening engines |
full-resource (Complete Payload) |
SubscriptionStatus plus the complete JSON/XML representation of the triggering FHIR resource(s) inside Bundle.entry.resource |
Requires mutual TLS (mTLS) or signed webhook tokens and a HIPAA BAA, as full PHI is pushed directly to the endpoint | High-throughput internal hospital microservices, HAPI FHIR pipelines, and Mirth Connect integration engines |
How Does FHIR Subscriptions Integrate with EHR and Health Informatics Workflows?
Connecting a clinical application or research platform to an EHR via FHIR Subscriptions follows a deterministic lifecycle:
- Channel Handshake and Heartbeats: When a client POSTs a new
Subscriptionwith statusrequestedand channel typerest-hook, the FHIR server sends an initial handshake notification to the target webhook URL. Once the endpoint responds with HTTP200 OK, the server transitions the subscription status toactiveand sends periodicheartbeatnotifications so the subscriber can detect silent network outages. - Handling Missed Events and Error Recovery: Every notification carries a monotonically increasing event counter (
eventsSinceSubscriptionStart). If a subscriber sees a gap in sequence numbers (for example, jumping from event 41 to 44) or sees statuserror, it can invoke the$statusand$eventsoperations on the FHIR server to replay missed notifications. - Bridging HL7 v2 ADT/ORU Streams to FHIR: Many hospitals map internal HL7 v2
ADT^A01(admission),ADT^A03(discharge), andORU^R01(lab result) messages into FHIR R4 resources inside an enterprise FHIR facade, triggeringencounter-start,encounter-end, andobservation-resultsubscription topics for downstream digital health apps.
Frequently Asked Questions
What is fhir subscriptions and how is it used in clinical research and healthcare?
FHIR Subscriptions is an HL7 standard publish/subscribe mechanism that pushes real-time notifications from a FHIR server to subscribed applications when defined clinical or administrative events occur. In healthcare and clinical research, it is used for automated admission-discharge-transfer (ADT) care transitions, critical lab result alerts, clinical trial cohort screening, and real-time serious adverse event (SAE) surveillance without repetitive API polling.
What standards or regulatory requirements govern fhir subscriptions?
FHIR Subscriptions is governed by the HL7 FHIR R5 Subscriptions specification (which introduced SubscriptionTopic and SubscriptionStatus) and the HL7 FHIR R4 Subscriptions R5 Backport Implementation Guide, which enables FHIR R4 servers certified under ONC/ASTP 45 CFR § 170.315(g)(10) to support topic-based event notifications using empty, id-only, or full-resource payloads.
How does fhir subscriptions integrate with EHR and health informatics workflows?
An EHR or FHIR server exposes canonical SubscriptionTopic definitions (such as encounter admissions or finalized diagnostic reports). A client application registers a Subscription resource specifying filter criteria and a delivery channel (rest-hook webhook, websocket, or FHIR messaging), completes an HTTP handshake, and processes incoming notification Bundles verified by sequential event counters and SMART Backend Services authentication.







