Most FHIR servers support Subscriptions. A small number do not, and not every server supports every channel.
When an app needs to know that something has changed, such as ServiceRequests marked as completed or an Encounter that’s finished, the alternative is polling. The app runs the same search query every few minutes and looks for what’s different.
Teams choose polling for a number of reasons. A previous vendor didn’t support Subscriptions, so they assume this one won’t either. They don’t know how Subscriptions work. They don’t want to build what’s needed to receive notifications – a rest hook endpoint, retry monitoring and handling for failed notifications. Or their solution is on-prem and can’t expose an endpoint, and they don’t realize Subscriptions also support websockets. Where Subscriptions are an option, they’re almost always the better choice.
Polling can mean a significant delay in finding out that something has happened – it’s far from real-time. Each poll requires a search query that usually returns nothing, and runs thousands of times a day, sometimes on servers that charge by request. More significantly, a resource that changes twice between polls can have its first change missed completely.
Signs to look for:
- Scheduled jobs that search on status or _lastUpdated every few minutes
- Subscriptions ruled out because a previous server didn’t support them
- On-prem designs with no mention of websocket channels
- Integration specs that describe delays as “up to X minutes”
---
I work with teams on a project, retainer or fractional basis. Learn more →