How Medplum DICOMweb and OHIF work together for imaging viewing
If your team stores or reviews imaging next to FHIR data in Medplum, the short answer is that Medplum exposes STOW-RS, QIDO-RS and WADO-RS endpoints under /dicomweb on the same host as its FHIR API, and that DICOM support is a Beta feature. Running your own OHIF deployment against a self-hosted Medplum server is an enterprise feature, so a self-hosted viewer is a commercial decision as well as a technical one. The hosted cloud includes an OHIF instance, which is a different starting point for a team that expects to run everything inside its own infrastructure.
OHIF is the Open Health Imaging Foundation's zero-footprint medical image viewer, built as a configurable and extensible progressive web application and licensed under MIT. It does not store images. It reads from one or more DICOMweb roots, with independent QIDO-RS (search), WADO-RS (retrieve) and STOW-RS (store) root URLs, so the viewer's behavior depends on how those roots are pointed at a server. Before you plan the build, confirm with Medplum which of the three endpoints your target version supports for your use case, and confirm how the viewer is configured against the Medplum roots in your environment.
Because the DICOMweb endpoints use the same OAuth2 authentication and access policies as the rest of the API, the viewer's users need the same sign-in path and permissions as any other Medplum client. Plan this early: the access policy that lets a clinician open a study is the same control that decides who can read the underlying data. Treat the Beta status as a planning input, and check the Medplum DICOMweb API documentation and the OHIF Viewer documentation on Medplum against the release you intend to run.
What you need before connecting OHIF to Medplum
The viewer, the Medplum server and the imaging endpoints all have to agree before a single study loads. Work through these four areas with your platform, security and clinical imaging teams, because each one fails in a different way if skipped. Confirm each item against your own environment before you commit to a build plan.
Medplum release and hosting tier
DICOMweb is a Beta feature, so confirm with Medplum which release line supports it before you pick a version to deploy. Medplum's hosted cloud includes an OHIF instance, but running your own OHIF against a self-hosted server is listed as an enterprise feature under Enterprise Self-Hosted. Ask Medplum to confirm that tier in writing, since the self-hosted viewer decision depends on it. The latest release supplied at research time was 5.2.5, but that date alone does not confirm DICOMweb support.
OHIF viewer docsOAuth2 client and project setup
STOW-RS, QIDO-RS and WADO-RS use the same OAuth2 authentication and access policies as the rest of the FHIR API, so the viewer needs a client registered in the Medplum project that holds the imaging data. Decide whether the viewer signs users in interactively or uses a client credentials flow, and confirm which identity provider your users sign in through. Test that a user without the right access policy cannot list or retrieve studies before any clinician uses the viewer.
Medplum auth docsNetwork path to the /dicomweb host
The viewer's browser or server must reach the /dicomweb path on the same host as the FHIR API. Map every hop between the clinician workstation, the viewer host and the Medplum server, including reverse proxies, web application firewalls, IP allow lists and any VPN. Confirm that large study downloads are not cut off by proxy timeouts or body size limits, since image series are much larger than typical API payloads.
TLS certificates and CORS origins
Browsers will only load the viewer and its DICOMweb calls over certificates they trust, so issue certificates for the viewer hostname and the Medplum API hostname from your internal or public CA. Check that the certificate chain is complete, that renewal is automated, and that the Medplum server's allowed origins include the viewer's domain. Mismatched hostnames between the viewer and the API are a common cause of failed study loads that look like authentication errors.
Imaging data and archive expectations
Decide which studies will be stored in Medplum and whether any existing PACS or archive, such as an Orthanc or DCM4CHEE instance, will remain the source of truth. OHIF can be pointed at DICOMweb archives with separate QIDO-RS, WADO-RS and STOW-RS roots, so the configuration must match the archive you actually run. Confirm with your imaging team which studies, modalities and sizes are in scope before you size storage and network capacity.
How a viewer request reaches Medplum imaging
The request starts in the user's browser, which loads the OHIF Viewer. OHIF obtains an OAuth2 token from Medplum Auth, then sends QIDO-RS, WADO-RS and STOW-RS calls to the /dicomweb path on the same host as the FHIR API. Before any study data returns, Medplum evaluates the access policies attached to the caller. Check that the trust boundary matches where your self-hosted server, database and storage actually run, and confirm which viewer instance serves the browser.
Viewer requests pass Medplum Auth and access policies before imaging data is returned.
Configuring the DICOMweb endpoints and OHIF data source
This sequence takes a self-hosted Medplum deployment from an entitlement check to a working OHIF viewer that searches, retrieves and stores DICOM studies through the DICOMweb roots under /dicomweb. Each step ends with a check that confirms the previous step works before the next one starts.
Confirm deployment and Enterprise entitlement
Your platform or infrastructure team confirms which Medplum version is running and that the deployment is on a plan that permits running your own OHIF deployment against a self-hosted server. Hosted Medplum includes an OHIF instance, but a self-hosted server with your own OHIF build is listed as an enterprise feature, so confirm this with Medplum before building anything. Also confirm that the DICOMweb endpoints are present on the server host under /dicomweb, since DICOM support is Beta. Done when the entitlement is confirmed in writing and a request to the server's /dicomweb path returns a response from the server rather than a not-found error.
Register the OAuth2 client for viewer access
An administrator creates a client application in the Medplum project that will front the viewer, with its redirect settings matching the OHIF deployment's URL and the scopes needed for DICOM reads and writes. The DICOMweb endpoints use the same OAuth2 authentication and access policies as the rest of the FHIR API, so the account used by the viewer must also have access policy rights to the imaging resources it needs. Record the client ID and the authorization flow settings. Done when a token request for that client succeeds and the token is accepted by the server for a simple FHIR read.
Point the OHIF data source at the DICOMweb roots
A developer edits the OHIF data source configuration so that the QIDO-RS, WADO-RS and STOW-RS root URLs each point to the matching path under /dicomweb on your Medplum host. OHIF accepts independent root URLs for each service, so set all three explicitly rather than relying on defaults, and attach the token from the registered client to the requests. Keep the configuration file in version control with the rest of the viewer build. Done when the OHIF build starts and its data source loads without configuration errors in the browser console.
Test a QIDO-RS study search
Run a study search through the viewer or with a direct request to the QIDO-RS root, using an account that holds access to at least one stored study. QIDO-RS returns study metadata as a list, so the test confirms that the server accepts the authenticated request and returns records the account is allowed to see. Compare the result with the study count you expect from the access policy design. Done when the search returns the expected studies, and a second account with a narrower policy sees a smaller or empty list, which confirms that access policies are enforced on search.
Test a WADO-RS retrieval
Open one study from the search results in OHIF, or request one instance directly from the WADO-RS root, and confirm that the image data is delivered. This test confirms the retrieval path, token handling and rendering in the viewer. Repeat the request with a token from an account that lacks access to that study. Done when the authorized account renders the images and the unauthorized account receives a refusal rather than pixel data, which shows that the access policy protects retrieval as well as search.
Test a STOW-RS upload
Send a small test DICOM instance to the STOW-RS root with an authorized token, then confirm the instance appears in a subsequent QIDO-RS search and can be retrieved through WADO-RS. Use an anonymized or synthetic test file that contains no patient data, and keep it out of production storage. Done when the uploaded instance is searchable and retrievable with the same account, and the upload is rejected for a token without write rights, which confirms the write path follows the same access rules.
Record the verified configuration
Your team writes down the Medplum version, the confirmed entitlement, the client settings, the three root URLs, the test accounts and the results of each check. Keep this record with the deployment runbook so that upgrades, DICOM Beta changes and viewer rebuilds can be tested against the same baseline. Done when the record exists and another engineer can repeat the QIDO-RS, WADO-RS and STOW-RS tests from it and get the same results.
How DICOM studies map to the FHIR and DICOMweb objects
This table compares the DICOM hierarchy (patient, study, series, instance) with the DICOMweb endpoints and the Medplum resources that gate access to them. Read each row as a question to confirm with your release: which object carries the identifier, and which access policy decides who can reach it. The main takeaway is that DICOMweb calls are authorized the same way as FHIR calls, so access design belongs in the same review.
| Object | DICOMweb endpoint or identifier | Access control to confirm |
|---|---|---|
| Patient | Patient ID and name in QIDO-RS study query results | Same OAuth2 token and access policies as FHIR Patient access; confirm which resource links the imaging to the patient |
| Study | StudyInstanceUID, returned by QIDO-RS and fetched by WADO-RS | Token scope and access policy must allow the study read; test with a restricted user before go-live |
| Series | SeriesInstanceUID, used to narrow WADO-RS retrievals | Same policy evaluation as the parent study; confirm that series-level filtering is enforced for your users |
| Instance | SOPInstanceUID, retrieved individually through WADO-RS | Confirm that instance retrieval is blocked for users without study access, not only study listing |
| Upload | STOW-RS store requests that add instances to a study | Write permissions in the access policy; confirm which roles may store images and who reviews them |
| Viewer session | OHIF calls QIDO-RS, WADO-RS and STOW-RS root URLs under /dicomweb | Authenticated session tokens; confirm token lifetimes and how the viewer refreshes them |
What the Beta status and enterprise requirement mean for your plan
DICOM support in Medplum is a Beta feature, so the first decision is whether a Beta component can sit in a production clinical workflow under your sign-off rules. The DICOMweb endpoints under /dicomweb share the FHIR API's host, OAuth2 authentication and access policies, which means your existing controls apply. But a Beta label tells you the interface may still change, and it does not describe the support commitments you would expect for a production imaging path. Ask your clinical safety, security and architecture reviewers to sign off on the Beta scope in writing before any study data is loaded, and record which of the STOW-RS, QIDO-RS and WADO-RS paths your workflow depends on.
The viewer question depends on where Medplum runs. Medplum's hosted cloud includes an OHIF instance, but a self-hosted Medplum server needs the enterprise option before you can run your own OHIF deployment against it. If your architecture requires self-hosting for data residency or network reasons, you cannot assume the hosted viewer is available to you. Confirm with Medplum which plan or agreement covers a self-hosted OHIF deployment, and whether that entitlement also covers the viewer's updates, and capture the answer alongside your other contract terms.
Ask Medplum for written confirmation of two things before you commit: your entitlement and the exact Beta scope. Entitlement should name the plan, the self-hosted OHIF right and any licensing terms that apply to the viewer. Beta scope should list which DICOMweb endpoints, features and deployment options are covered, what support response Medplum commits to for Beta issues, and how it will announce breaking changes. Plan a roadmap risk review each time you upgrade Medplum, since the DICOM interface may change between versions, and keep a fallback for imaging access if a Beta behavior must be withdrawn.
Securing imaging access through OAuth2 and access policies
Medplum serves DICOMweb under the same host and authentication model as its FHIR API, so imaging access is governed by the controls you already configure for clinical data. The cards below cover what the docs state, what remains your responsibility, and what to verify in your own environment before clinical users rely on the viewer.
OAuth2 token scope for DICOMweb
The DICOMweb endpoints (STOW-RS, QIDO-RS and WADO-RS) use the same OAuth2 authentication as the rest of the Medplum API. Decide which client applications, including the OHIF viewer, may request tokens and which scopes they receive. Test a token issued for a viewer session against each endpoint, because a token that reads studies should not also be able to upload them unless that is intended. Confirm how token lifetimes are set on your deployment before you approve the design.
DICOMweb API docsAccess policies on imaging resources
Medplum applies access policies to the DICOMweb endpoints in the same way as to FHIR resources, so imaging visibility should be tested the same way as clinical data. Write policy cases for a clinician with a patient relationship, a clinician without one, a radiology technologist who uploads studies, and an external reviewer. Confirm with a test project that a user outside the permitted group cannot retrieve a study by identifier. Treat a passing result on the FHIR API as necessary but not sufficient evidence for imaging access.
Client credentials for service uploads
Modalities, gateways or import jobs that push studies with STOW-RS should authenticate as their own client, not as a shared clinician login. Client credentials give server-to-server access, and the client's policy should allow only storage of imaging objects. Record which client writes each study so that uploads can be traced and the credential revoked without affecting viewer users. Confirm the rotation process for these secrets with your security team.
MFA and identity for viewer users
Clinicians reach the OHIF viewer through the same sign-in flow as other Medplum users, so multi-factor authentication and the identity provider you choose apply to imaging access. Medplum supports its own identity provider, external providers and domain-level corporate providers. Verify that MFA is enforced for every user who can open a study, and check whether any service or guest path bypasses it. Multi-provider SSO is listed as an enterprise feature on the pricing page, so confirm the plan you need.
Medplum auth docsTLS on the DICOMweb host
Imaging traffic carries protected health information, so the host that serves /dicomweb must terminate TLS for every client, including modalities and gateways. Because DICOMweb shares a host with the FHIR API, a single certificate and load balancer configuration covers both, but the team should confirm that plain HTTP is closed on that path. Check certificate renewal, cipher policy and whether any internal network path sends DICOM traffic unencrypted. Your load balancer and ingress settings are yours to verify.
Audit logging of retrievals
Your compliance team will ask who opened which study, when, and from where. Confirm which access events Medplum records for DICOMweb retrievals, including WADO-RS reads, and whether the record identifies the user, client and study. If the native audit trail does not cover every retrieval, add logging at the proxy or viewer layer and forward it to your log platform. Test retention and tamper resistance with a sample retrieval before go-live, since the docs in the supplied sources do not give the detail needed to rely on them alone.
Why OHIF fails to load studies from Medplum
This table lists the failures most often seen when OHIF cannot load studies from a Medplum DICOMweb endpoint, with the cause and fix for each. Work through the rows in order, because a token or root problem will hide later failures such as access policy denials.
| Failure | Likely cause | Fix |
|---|---|---|
| Token rejected on /dicomweb | The OHIF session token was not issued for the Medplum project or client that owns the study, or it expired before the viewer requested series. | Confirm the OAuth2 client and project used by OHIF, then reauthenticate and check token lifetime. Compare the token against the same client calling the FHIR API. |
| CORS or redirect blocks requests | The viewer origin is not allowed by the Medplum server, or a redirect drops the Authorization header on the STOW-RS, QIDO-RS or WADO-RS call. | Add the exact OHIF origin to the server's allowed origins and confirm that the public URL serves the DICOMweb path without redirects. Test each endpoint in the browser network log. |
| DICOMweb root mismatch | The QIDO-RS, WADO-RS and STOW-RS root URLs in the OHIF data source point to different paths or hosts, so search works but image retrieval fails. | Set all three roots in the OHIF DICOMweb data source to the /dicomweb path on the same Medplum host, then retest a single study end to end. |
| Access policy denies the study | The access policy for the user or client does not allow reading the imaging resources or the related patient, so QIDO-RS returns no results or WADO-RS returns forbidden. | Review the access policy for the signed-in identity against the ImagingStudy and patient resources. Retest with an account that has the agreed read rights before changing the policy. |
| Certificate trust errors | The browser or the OHIF host does not trust the certificate chain for the Medplum domain, often on an internal certificate authority or a self-signed test host. | Install the internal root certificate in the browser trust store or serve a certificate from a trusted authority. Do not disable certificate checks in the viewer configuration. |
| Study visible in search but images do not render | Retrieval fails on binary or series-level requests, often after a proxy or load balancer changes response headers or size limits. | Check proxy request size and timeout settings for WADO-RS responses, then confirm the viewer receives the expected multipart content. |
| Viewer works on Medplum Cloud only | The self-hosted deployment uses a viewer setup that is not covered by the hosted OHIF instance, which is an enterprise feature for self-hosted Medplum. | Confirm with Medplum whether your plan covers a self-hosted OHIF deployment before building one. Plan the viewer as a separate component with its own configuration and testing. |
Questions buyers ask before connecting OHIF to Medplum
Does a self-hosted OHIF viewer require the Medplum Enterprise plan?
Yes. Medplum's OHIF viewer documentation states that Medplum's hosted cloud includes an OHIF instance, while running your own OHIF deployment against a self-hosted Medplum server is an enterprise feature. Self-hosting Medplum itself is available as a free Community option, but a self-hosted OHIF deployment falls under the Enterprise tier, which is custom-priced. Ask Medplum to confirm in writing which plan covers the viewer, the DICOMweb endpoints and any support you need before you commit to the architecture.
Is DICOM support in Medplum ready for production use?
Treat it as a Beta feature until Medplum says otherwise. The DICOMweb API is documented as Beta, so the endpoints, their behavior and their limits can change between releases. Before a production decision, check the current release notes on the Medplum GitHub releases page, test your real study sizes and modalities in a non-production project, and agree with Medplum how Beta issues are handled. Your risk review should record the Beta status explicitly.
What does the OHIF connection work include?
The work covers configuring OHIF to point at the DICOMweb root under /dicomweb on your Medplum host, confirming that QIDO-RS search, WADO-RS retrieval and STOW-RS storage use the same OAuth2 sign-in and access policies as the FHIR API, and checking that users see only the studies their policies allow. It also covers building or extending the viewer deployment, hosting it in your infrastructure, and documenting the configuration for your security and compliance reviewers. Confirm with any partner whether image archive integration, modality testing and viewer customization are in the written scope.
What drives the cost and effort of this work?
The main drivers are the number of imaging sources and modalities, the volume and size of studies, whether you need custom OHIF extensions or only the standard viewer, how many identity providers and user roles must be mapped to access policies, and the hosting model you choose. Infrastructure for OHIF and Medplum is an ongoing cost paid to your cloud or data center provider, while the Medplum Enterprise license and any partner fees are recurring or one-time depending on the contract. Ask for a quote that separates one-time build work from recurring license, hosting and support costs.
How long does an OHIF connection take to set up?
The duration depends on scope rather than a fixed figure. A limited pilot against one non-production project and a small set of test studies takes less time than a production rollout that covers several modalities, storage backends, identity providers and an audit trail review. Medplum's upgrade guidance notes that post-deploy data migrations can run for hours or days on large datasets, so plan separate time for any server version changes. Ask your partner for a timeline tied to a written scope with named milestones.
What does our team need to provide?
Your team needs a running self-hosted Medplum server, administrative access to its projects, access policies and identity provider settings, and a named owner for the imaging workflow. You will also need a DICOMweb source for test data, the right to place test studies in a non-production environment, and a security contact who can review access rules and logging. Your clinical or radiology team should supply sample studies and confirm which users need which views, since those decisions drive the access policy design.
Can our own engineers do this without an outside partner?
Yes, if your team already runs Medplum and has experience with OAuth2, access policies and container or cloud deployments. The Medplum documentation covers DICOMweb endpoints and the OHIF viewer, so an experienced team can build a pilot in a test project. An outside partner adds the most value when you need a compliance-ready record of configuration, security testing of the viewer and endpoints, or support through a Beta feature. Compare the internal effort, including ongoing upgrades, with a fixed-scope engagement before you decide.
Does Medplum's compliance coverage extend to a self-hosted OHIF viewer?
Not automatically. Medplum's compliance documentation states that compliance is a shared responsibility between Medplum and its customers, so the hosting, access controls, logging and data handling for a self-hosted viewer fall to your organization. Ask Medplum which controls it covers for the server, and document your own controls for the viewer, network path, storage and user access. DeployOpen prepares systems, controls and evidence for compliance assessments, but independent auditors and certification bodies issue any audit reports or certifications.
How DeployOpen scopes and delivers a Medplum imaging viewer integration
DeployOpen plans and delivers the Medplum DICOMweb API and OHIF viewer work inside infrastructure you control, starting from a written scope that names the endpoints, identity setup and archive connection. Each stage ends with documentation your clinical, security and compliance teams can review before any wider rollout.
How we scope
- Confirm which DICOMweb endpoints (STOW-RS, QIDO-RS, WADO-RS) the workflow needs and where imaging originates.
- Agree how OAuth2 sign-in and Medplum access policies will control who can query and retrieve studies.
- Record whether the Beta DICOM feature is acceptable for your use, and how that status affects your risk review.
- Define whether the viewer is hosted by Medplum Cloud or deployed self-hosted, since self-hosted OHIF requires the enterprise tier.
How we build
- Configure the OHIF data source against the Medplum DICOMweb root URLs, with separate QIDO-RS, WADO-RS and STOW-RS paths.
- Test access policy enforcement with separate clinician, administrator and service accounts before any study is shown.
- Verify that retrieval and upload requests fail cleanly for users outside the agreed access policies.
- Document the configuration, identity settings and test results so the build can be repeated in each environment.
How we hand over
- Deliver a written configuration record covering OHIF settings, Medplum project and policy settings, and identity providers.
- Provide runbooks for adding a viewer extension, rotating credentials and updating the OHIF release in your environment.
- Walk your engineering and compliance teams through the test evidence and the open items that remain.
- Agree the handover criteria in writing so acceptance is measured against the scope rather than an informal review.
How we support
- Support is available as a retainer for monitoring the viewer, applying OHIF and Medplum updates, and re-testing access policies.
- Plan each Medplum minor and major upgrade with a check that the DICOMweb path and viewer still behave as documented.
- Track changes in Beta DICOM behavior and report them to your team before they reach production users.
- Confirm retainer scope, response expectations and upgrade responsibilities in the written agreement before work starts.

