FHIRcast | Medplum

Overview

FHIRcast is a lightweight, topic-based publish/subscribe protocol that enables healthcare applications to synchronize context in real-time. Built on HTTP and websockets, it facilitates seamless communication between a "context source" (the application initiating the context change, e.g., an EHR) and "context subscribers" (applications that need to react to that change, e.g., a clinical decision support app).

Key Concepts

How FHIRcast Works

  1. Handshake: A subscriber initiates a connection with a context source, typically by establishing a websocket connection.
  2. Subscription: The subscriber expresses interest in specific context topics (e.g., patient context).
  3. Context Change: When a user in the context source application (e.g., an EHR) changes the active patient, the source publishes a FHIRcast event to the relevant topic.
  4. Notification: Subscribers to that topic receive the event, which includes the new context (e.g., the Patient FHIR resource, which contains information like the patient's ID, name, date of birth, etc.).
  5. Synchronization: Upon receiving the event, the subscriber application can then update its own display or internal state to reflect the new context.

Use Cases