Medplum FHIRcast for radiology workstation context sync

Medplum supports FHIRcast STU3 so an EHR, PACS viewer and reporting tools can share the current patient and study over HTTP and WebSockets. This page covers the topic model, setup sequence, identity and data mapping, security and testing.

On this page

How FHIRcast on Medplum keeps radiology tools on the same study

A radiologist opens a study in the PACS viewer, but the EHR still shows the previous patient and the reporting tool is pointed at a third encounter. Medplum supports FHIRcast STU3, a topic-based publish and subscribe protocol over HTTP and WebSockets that synchronizes context such as the current patient or encounter between a context source and subscribing applications. This section explains the roles in that exchange and what the reader needs to decide before building on it. It covers the supported FHIRcast method on Medplum, not a custom connector built for one viewer or EHR.

The model has three roles. The context source is the application where the user changes context, such as an EHR or a PACS viewer. Topics are named channels, such as patient or study context, that the source publishes changes to. Subscribers are the applications, such as a reporting tool or a second viewer, that subscribe to those topics and update their own view when a message arrives. Medplum acts as the hub that carries these messages, so each application needs to be on the same subscription path and must agree on which topics it handles. Decide early which system is the context source for each topic, because two systems publishing competing patient changes is the most common cause of mismatched screens.

Before building, confirm three things with the vendors involved: which FHIRcast events each viewer and reporting tool sends and receives, whether each one supports the STU3 version Medplum implements, and how each handles WebSocket connections through your network and proxies. Also confirm how user identity and patient access are checked when a subscriber receives a patient change, because a subscriber should not display a study the signed-in user cannot open. The Medplum FHIRcast documentation lists the supported endpoints and message flow, and that is the next read before any design work.

What a FHIRcast deployment on Medplum requires before build

A FHIRcast setup spans the Medplum server, the context source, every viewer and reporting tool, and the network between them. Each card below is a decision or check to settle before build starts, because a gap in any one of them stops the patient and study context from syncing.

Medplum version and self-hosting path

Pick the Medplum release and deployment path first, since FHIRcast support sits on the server version you run. Medplum's self-hosting docs cover AWS with CDK and CloudFormation as the recommended option, plus Ubuntu, Docker, Kubernetes and others, so match the path to where your PACS and EHR already run. Confirm with Medplum that the version you plan to deploy includes the FHIRcast capability your workflow needs, and record the upgrade path before go-live.

Self-hosting docs

FHIRcast STU3 support per release

Medplum documents FHIRcast STU3, so the team should check that every participant speaks the same version of the protocol. Ask the Medplum team to confirm the exact STU3 operations and topics supported in your target release, and test those against your actual context source. Do not assume that support in one release carries over to the next without reading the release notes.

Medplum FHIRcast docs

PACS viewer and reporting tool support

Each PACS viewer and reporting tool must be checked for its own FHIRcast support, including which topics it publishes or subscribes to and which STU3 events it handles. No vendor capability facts were supplied for this guide, so confirm each viewer's FHIRcast behavior in writing with its vendor. Ask whether the viewer needs a plugin, a configuration switch or a licensed module, and who installs and supports it.

HTTP and WebSocket network paths

FHIRcast uses HTTP for subscription requests and WebSockets for delivering events, so both paths must be open between the Medplum server, the context source and each subscriber. Map which workstations, viewers and reporting hosts reach Medplum, and check that proxies, load balancers and firewalls pass long-lived WebSocket connections. Ask your network team to test these paths from the workstation subnets used by radiologists, not only from the server.

TLS certificates for every endpoint

Every endpoint that carries patient context needs a valid TLS certificate that its clients trust, including the WebSocket endpoint and any internal hostnames used by viewers. Plan certificate issuance, renewal and the internal certificate authority that workstations use. Expired or untrusted certificates often appear as silent sync failures, so add certificate expiry to your monitoring before go-live.

Identity setup for launched apps

Apps launched in the FHIRcast context need a working sign-in path, so decide how radiologists authenticate to the EHR, viewer and reporting tool and how those sessions relate to Medplum. Medplum supports its own identity provider, external providers and multi-factor authentication, and the team should choose one model and test it end to end. Confirm which features your plan includes, since multiple external identity providers are listed as an enterprise feature on Medplum's pricing page.

Medplum auth docs

How to configure FHIRcast topics, subscribers and context sources

This sequence takes a Medplum FHIRcast setup from a confirmed server release to a tested state in which the EHR, PACS viewer and reporting tools agree on the current patient and study. Each step closes with a check the team can repeat before go-live.

  1. Confirm the Medplum deployment and release

    The infrastructure or platform team confirms the self-hosted Medplum server version, checks the release notes for FHIRcast STU3 support in that version, and records the public base URL that the viewers and the context source will reach. Ask Medplum to confirm the FHIRcast capability for your release, since the topic facts do not state which releases include it. Check: the team has a written version record and a successful request to the server base URL from each network segment where a viewer runs.

  2. Register the context source and subscribers

    Name the context source, which is the EHR or PACS that publishes a change when a user selects a patient or study. List each subscribing application, such as the PACS viewer and reporting tools, with its owner. Give every application its own client identity and confirm in the Medplum authentication documentation how each one signs in and obtains access. Check: each publisher and subscriber completes a token request against the server without using a shared account.

  3. Define the patient and study topics

    Decide which events belong to the patient topic and which belong to the study topic. Map the patient and study identifiers that the context source sends to the resources your viewers already use, and agree which subscribers should receive each topic. Reporting tools usually need both topics, while some viewers may need only one. Check: a test patient selection produces an event whose patient identifier matches the record in the source system, and a test study selection produces a study event with the expected identifier.

  4. Configure WebSocket delivery and proxy settings

    The network team passes the WebSocket upgrade through each reverse proxy, load balancer or ingress between the viewers and the Medplum server. They set connection timeouts long enough for idle subscriptions to stay open, confirm TLS termination, and allow the origins used by each application. If the topology routes connections to more than one backend, confirm how a subscription is pinned to one instance. Check: a WebSocket connection opens through the production path, not only directly to the server, and remains open after a period of inactivity that the team has set.

  5. Test the subscription handshake

    Each subscriber requests its subscription to the chosen topics. The team confirms that the server acknowledges each request, then tests unsubscribe and checks that a closed subscription stops receiving events. Logs on the server and in each application should show the same subscription identifiers. Check: every subscriber shows an acknowledged subscription, and an unsubscribe removes that subscriber from the event stream without affecting the others.

  6. Verify context change events across viewers

    A tester selects a patient in the context source and confirms that the event reaches every subscriber. The tester then changes the study and repeats the check for the study topic. The team also drops one subscriber to confirm that the remaining viewers keep receiving events. Record the identifiers and timestamps for each change, since these become the baseline for later upgrades and incident reviews. Check: the PACS viewer and the reporting tool show the same patient and study within the test window, and the logged identifiers match the source system.

Where FHIRcast fits in a radiology workflow

In this pattern, the clinician opens imaging from the EHR chart or an order, so the EHR is the natural context source. It publishes the current patient and encounter, and the viewer and any reporting component subscribe so that opening a different patient in the chart moves the viewer with it. The EHR still owns the order and the chart, while the viewer owns the image display. Whether a given EHR or viewer can act as a FHIRcast source or subscriber is a product question to confirm with each vendor, not something this topic assumes.

  • Context source: the EHR publishes patient and encounter changes to the topic when the clinician navigates the chart.
  • Subscribers: the imaging viewer and any embedded reporting pane subscribe to the same topic and update when the event arrives.
  • Failure mode: if the viewer ignores a patient-change event, the clinician may read a study belonging to the previous patient while the chart shows someone else.
  • Ownership check: confirm which EHR release and which viewer release support FHIRcast STU3 in your environment before design begins.
  • Event handling: confirm how the viewer responds to a context change while a report is partly typed, since an unsaved draft may be tied to the prior patient.

Before go-live, test a patient switch in the chart with a study open and confirm that the viewer's displayed patient and accession match the chart.

Patient, encounter and study identifiers across the systems

This table maps each FHIRcast context element to the identifier and FHIR resource that each system stores in Medplum, so the team can see where matching must hold. Read each row as a rule to agree before build starts, since a mismatch in any one identifier sends the wrong study to the wrong viewer.

Context elementWhere it lives in MedplumIdentifier that must matchMatching rule to agree
Current patientPatient resource in the Medplum repositoryEHR medical record number, PACS patient ID and reporting system MRNUse one master patient index or a cross-reference table keyed on the same identifier system and value in every system
Current encounterEncounter resource linked to the PatientVisit or accession number issued by the EHR and carried on the orderConfirm which system issues the encounter identifier and that the PACS and reporting tools receive it unchanged
Imaging studyImagingStudy resource, referenced from ServiceRequest or DiagnosticReportDICOM Study Instance UID held in the PACSStore the Study Instance UID as an identifier on ImagingStudy and match on it, not on accession number alone
Order or accessionServiceRequest linked to the Encounter and ImagingStudyAccession number generated by the radiology information systemConfirm whether the accession number is unique per facility or per modality, since reused numbers cause wrong-study matches
Identifier systemsIdentifier entries on Patient, Encounter and ImagingStudyEach identifier needs a system URI, not only a valueAgree the system URI for each facility and modality before go-live and document it in the interface specification
Patient name and date of birthPatient name and birthDate fieldsDemographics used as a secondary check onlyUse demographics to flag a conflict for review, never as the sole key for opening a study
Reporting tool recordDiagnosticReport referencing the ImagingStudyReport identifier and study referenceConfirm the reporting tool writes its report against the same study UID the viewer displays
Mismatch handlingContext change event and the audit trailAny identifier that fails to resolveDefine the behavior when a subscriber receives a patient with no matching study and test it with deliberately mismatched records

A context change reaches every subscriber on the same topic

The flow starts when a context source, such as an EHR or PACS, publishes a change to the current patient or study on the FHIRcast topic hosted by Medplum. Medplum then notifies each subscribed application over WebSocket, and each viewer or reporting tool moves to the same patient and study. Each subscriber returns an acknowledgment to the topic. The hospital network and the Medplum server sit on opposite sides of the trust boundary, so confirm which side opens each connection, which credentials each party uses, and what traffic crosses that boundary before go-live.

Context change flow from a source to subscribed applications, with the trust boundary marked.

Securing context sync between clinical and imaging systems

FHIRcast lets an EHR, PACS viewer and reporting tools share the current patient and study, which means every subscriber becomes a point of access to patient data. The cards below cover who can subscribe, how they prove identity, how traffic is protected and what gets logged, with the compliance boundary left to your organization.

Authenticate every subscriber

Each application that subscribes to context changes should sign in as its own identity rather than sharing a generic account. Medplum can act as the identity provider, or you can connect an external provider such as Google, Auth0 or AWS Cognito, or a domain-level corporate identity provider. Confirm with your team which option matches how viewers and reporting tools are already licensed and administered. Confirm how each viewer obtains and refreshes its token before go-live.

Medplum auth docs

Use client credentials for server-to-server links

A context source that runs as a backend service, such as an integration engine or a PACS-side broker, should use client credentials rather than a user session. Keep each client's secret scoped to that single integration and rotate it on a schedule your security team sets. Document which clients exist, what each one is allowed to do and who owns the secret.

Require MFA for interactive users

Radiologists and clinicians who open a viewer or reporting tool from a workstation are interactive users, and their sessions carry patient context. Medplum supports multi-factor authentication, so enable it for those accounts and decide which factors are acceptable on shared or reading-room workstations. Confirm how MFA behaves when a viewer reuses an existing session.

Limit which apps subscribe to which topics

A reporting tool may need the study context but not every encounter update. Define which client applications may subscribe to which FHIRcast topics, and deny the rest by default. Review that mapping whenever a viewer is added, replaced or upgraded, because a broad subscription is the easiest way for an unrelated application to receive patient context.

Protect WebSocket traffic with TLS

FHIRcast notifications travel over WebSockets from the hub to each subscriber. Terminate TLS on every WebSocket endpoint, including any reverse proxy or load balancer in front of the Medplum server, and check that intermediate hops do not downgrade the connection. Ask your network team to confirm that certificates, cipher policy and timeouts are handled the same way across all sites.

Minimize patient data in notifications

A context change needs to say which patient or study is current, not carry the full record. Design notifications around identifiers and references, and have subscribers fetch detail through authorized FHIR calls. This limits what a misdirected or intercepted message exposes and keeps access decisions in one place. Test a sample notification and confirm which fields it contains.

Audit every context change

Record who published a context change, which subscriber received it, the patient or study involved and the time. These entries support investigations when a viewer shows the wrong study. Decide where logs are stored, how long they are kept and who can read them, and confirm with your team how they are forwarded to your log platform.

Confirm the shared compliance boundary

Medplum documents that compliance is a shared responsibility between Medplum and its customers. On a self-hosted deployment, your organization owns the hosting, network controls, identity configuration, subscriber inventory and retention of logs. Ask Medplum and your compliance team which controls they expect you to evidence for your FHIRcast deployment before the workflow goes live.

Medplum compliance docs

Why FHIRcast context stops matching across viewers

This table lists the failures that most often leave an EHR, PACS viewer and reporting tool on different patients or studies, with the likely cause and the first fix to try for each. Read it as a triage order: check transport and subscriptions first, then identifiers, then whether the viewer acts on the context it receives. Confirm vendor-specific behavior for each viewer before changing production settings.

FailureLikely causeFirst fix to try
WebSocket connection dropsA proxy, load balancer or firewall closes idle WebSocket connections, so the subscriber stops receiving context eventsRaise idle timeouts on the proxy or load balancer for the WebSocket path, and confirm WebSocket upgrade headers pass through
Subscriptions not renewedThe subscriber's FHIRcast subscription lapses or is never renewed after the subscriber reconnects, so later events are not deliveredConfirm the subscriber re-subscribes after reconnect and logs the subscription response, then test a fresh patient-open event
Mismatched patient identifiersThe context source sends a patient ID from one system while the viewer looks up a different identifier or domainCompare the identifier system and value in the context message with the Patient resource in Medplum, and align the lookup key in the viewer
Context received but not acted onThe viewer subscribes to the topic but its handler does not change the open patient or study, or ignores events for the current sessionCheck the viewer's FHIRcast handler logs for each event, and confirm which context fields the viewer is built to act on
Study not found in the viewerThe context carries a study identifier that the PACS or viewer does not index under the same valueCompare the study identifier used by the context source with the one stored in the imaging system, then confirm the viewer's study lookup
Release and viewer version mismatchThe Medplum release and the viewer's FHIRcast client implement different message details or defaults after an upgradeConfirm the viewer and Medplum versions are tested together, and check the FHIRcast docs for the version you run
Clock skew between systemsServers or workstations disagree on time, which breaks token validity checks and makes event ordering hard to read in logsSynchronize all participating hosts with the same network time source, then retest token expiry behavior

Questions buyers ask about FHIRcast on Medplum

What drives the cost of a FHIRcast setup on Medplum?

The cost follows the number of viewers and applications that must subscribe, how much identity work is needed, how much the PACS and EHR vendors must change, and how far testing goes. Medplum's FHIRcast support is the protocol layer, so most spend goes to integration and validation around it. Ask for a quote that lists each viewer as its own line item, the identity work as a separate item, and vendor coordination hours as an assumption you can review. Set-up work is one-time, while hosting, Medplum licensing and ongoing viewer updates recur. Medplum's own hosted plan prices appear on its pricing page, so confirm which plan or self-hosted option applies before comparing quotes.

How long does FHIRcast on Medplum take to set up?

Duration depends on the environment more than on the protocol itself. A lab with one EHR, one PACS viewer and one reporting tool that already supports FHIRcast STU3 moves much faster than one where the PACS vendor must add context subscription support or where several viewers need different identity settings. Plan time for vendor responses, network and firewall approvals, a test environment that mirrors production and clinical sign-off on the patient and study matching rules. No duration figure is given here because it depends on those factors, so ask any firm to show the phases and the dependencies that could extend them.

What must our imaging and EHR teams provide before work starts?

The work needs named owners on both sides and access to the systems involved. Ask your imaging team to confirm which PACS or viewer versions are in use and whether they support FHIRcast STU3 as a subscriber or context source. Ask your EHR team for the test environment, service accounts and the rules for how the current patient and encounter are set. Your team should also provide test studies that are de-identified or approved for use, a test patient list, network changes between the viewers and the Medplum endpoints, and a clinical contact who can approve the expected behavior when a study or patient changes.

Can our own team build FHIRcast context sync internally?

Yes, if your team already runs Medplum and has engineers who can work with FHIR subscriptions, WebSockets and your viewer vendors. The hard parts are rarely the message exchange itself. They are getting the PACS vendor to cooperate, agreeing the context rules with radiology and clinical leads, testing failure paths such as dropped connections and stale context, and documenting the result for your security and compliance reviews. A partner can take on some of that work under a written scope, while your team keeps ownership of clinical decisions. Compare the internal effort with the list of tasks above before deciding.

Does the supported FHIRcast STU3 method cover every radiology use case?

No. Medplum's documented support covers FHIRcast STU3, a topic-based publish and subscribe method over HTTP and WebSockets that keeps the current patient, encounter or similar context aligned across applications. It does not, by itself, cover newer FHIRcast versions, image display or viewer-specific behaviors, reporting workflow logic or DICOM transfer. Confirm with each vendor which FHIRcast version and topics their product uses. Any requirement outside STU3 needs its own design, testing and sign-off before it is promised to radiologists.

What security and compliance checks apply to FHIRcast traffic?

Context messages carry patient identifiers, so treat them as protected health information. Check how each application authenticates to Medplum, which access policies limit what a subscriber can receive, how WebSocket connections are secured, and whether audit logging captures context changes. Medplum's compliance documentation says compliance is a shared responsibility between Medplum and its customers, so your team must map its own controls for the deployment. DeployOpen prepares systems, controls and evidence for compliance assessments, but independent auditors and certification bodies issue the reports.

What testing should be included before go-live?

Testing should cover the normal flow and the failure cases. Normal flow includes opening a patient in the EHR and confirming the viewer and reporting tool change to the same patient and study, then reversing the order. Failure cases include a dropped WebSocket connection, a subscriber that starts late, a study opened outside the EHR, and two users on different workstations. Ask any provider to write the test cases with expected results, run them in a non-production environment with approved test data, and document results for radiology and clinical governance review.

How DeployOpen scopes and delivers a FHIRcast integration

DeployOpen plans and implements Medplum FHIRcast for radiology workstation context sync inside infrastructure you control, so the EHR, PACS viewer and reporting tools share one patient and study context. Each engagement starts with a written scope that names the context sources, subscribers and clinical workflows involved, and the work is delivered and documented against that scope.

How we scope

  • We confirm which context sources, such as the EHR or PACS, and which subscribing applications will participate in the FHIRcast topics.
  • We map the clinical workflows that must stay in sync, such as opening a patient or study from a worklist, and record them in the written scope.
  • We agree deliverables, timelines and acceptance tests in writing before work starts, since most engagements are fixed-scope.

How we build

  • We deploy and configure Medplum in your environment, then connect the FHIRcast STU3 topic flow over HTTP and WebSockets.
  • We set up authentication and access for each subscriber so only approved applications can publish or receive patient and study context.
  • We test context changes across each system, including timing, reconnection after dropped WebSocket sessions and behavior when a user switches studies.

How we hand over

  • We deliver architecture notes, configuration records and runbooks covering topics, subscriptions, credentials and failure handling.
  • We walk your clinical informatics, PACS and integration teams through the build, test results and open items before handover.
  • We document the verification evidence your compliance and security reviewers will ask for, including access and logging decisions.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, covering Medplum releases and changes to connected viewers.
  • We can plan Medplum version upgrades for the FHIRcast components, since self-hosted upgrades must move through each minor version in sequence.
  • We retest context sync after changes to the EHR, PACS viewer or reporting tools so regressions surface before clinicians see them.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.