Skip to main content

DICOMweb Configuration: QIDO, WADO and STOW

Adding an HTTP archive to the query dialog

DICOMweb is the modern, HTTP-based set of DICOM services (QIDO-RS for query, WADO-RS for retrieve, STOW-RS for store, plus the legacy WADO-URI). Once a DICOMweb node is configured in Weasis, it shows up in the DICOM Query/Retrieve dialog and behaves like any other archive.

This page covers manual configuration inside Weasis. If you embed Weasis in a web portal, you can also launch it from a web context so that the DICOMweb parameters are derived automatically from the launch URL — no per-user configuration required.

General Configuration Steps

  1. Open File > Preferences (Alt + P).
  2. Select DICOM node list in the left sidebar.
  3. Click Add new to create a new node, or select an existing one and click Edit. A node shipped by your site in config/dicomWebNodes.json of the resources package is listed as (site) and cannot be edited since v4.8.0; see Configuration documents.

DICOMweb nodes configuration DICOMweb nodes configuration


In the node dialog:

  1. Give the node a descriptive name.
  2. Pick a service type. The default DICOMweb (all RESTful services) covers query, retrieve, and store at once. To restrict the node to a specific service, pick one of:
    • QIDO-RS — query.
    • STOW-RS — store.
    • WADO-URI (non-RS) — legacy single-object retrieval. Combines a classic C-FIND query with a WADO-URI retrieve (see Query/Retrieve).
    • WADO-RS (Retrieve) — modern retrieve.
  3. Enter the service URL of the DICOMweb server.
  4. Configure authentication by clicking Manager, then Add:
    • Either pick a template from the list and click Fill to populate some fields, or fill them in manually.
    • In the Provider panel, every field is mandatory.
    • In the Registration panel, every field is optional — except for OAuth2, where the Client ID, Client Secret, and Scope must be filled. Audience is optional, but some providers need it — Auth0, for instance, uses it to issue a token for a specific API since v4.6.1.
    • The Grant Type selector chooses the OAuth2 flow:
      • code (Authorization Code, the default) — interactive login: Weasis opens your browser so you sign in with your account, then receives the token through a loopback redirect. Use this for user-facing access. The exchange is protected with PKCE (RFC 7636) since v4.8.0, so the client registered at the provider (Keycloak, Auth0…) must allow it — public clients and the default settings of most providers already do.
      • client_credentials (Client Credentials, RFC 6749 §4.4) — non-interactive, server-to-server: Weasis obtains the token directly from the token endpoint using only the Client ID and Client Secret, with no browser login. Use this for service/headless accounts.
    • Click OK to save the authentication.
  5. Optionally, add HTTP headers that should be sent with every request to this service URL (useful for tokens or other custom auth schemes). One header is not taken from this list: a QIDO query always asks for application/dicom+json, because that is the only response Weasis can read. An Accept header configured here applies to the retrieve, not to the query.
  6. Click OK to save the node.

Then open the DICOM Import dialog and pick the new node. If OAuth2 is configured with the Authorization Code grant, the first query opens your browser to complete the sign-in; subsequent queries reuse the cached token. With the Client Credentials grant, no browser login is required — Weasis authenticates silently using the configured Client ID and Secret.

Editing an authentication method

An authentication method is shared by every node that refers to it. Editing or deleting a method through Manager takes effect on the next query since v4.7.3; before that version, a corrected endpoint or client secret required restarting Weasis.

Thumbnails and timeouts

Two settings of the HTTP layer are not in the node dialog: they are properties set for the whole application, or carried by the manifest that launches Weasis.

Thumbnail service

The thumbnails of the DICOM explorer come from a rendering service of the archive, and archives implement different subsets of them since v4.8.0:

Mode Service requested
AUTO (default) probes the services the archive type can offer — RS_THUMBNAIL then RENDERED for a DICOMweb archive, WADO_URI alone for a WADO-URI archive — and remembers what the archive supports, so a missing service is probed once, not once per series
RS_THUMBNAIL the DICOMweb thumbnail service, …/series/{uid}/thumbnail
RENDERED the DICOMweb rendered service on one instance, …/instances/{uid}/rendered
WADO_URI a WADO-URI request with contentType=image/jpeg
NONE no thumbnail is requested from the archive

Set the mode per archive with the thumbnailMode attribute of the arcQuery element of a manifest, or for every archive that declares none — the nodes of this dialog included — with the property weasis.dicom.thumbnail.mode. An unknown value falls back to AUTO. Choose NONE for an archive whose rendering services are slow or missing, as noted for some providers below.

Timeouts

Property Default Meaning
UrlConnectionTimeout 5000 ms time allowed to open the connection
UrlReadTimeout 15000 ms time allowed without progress on a response: a transfer that keeps delivering bytes is never cut by it
UrlResponseTimeout since v4.8.0 300000 ms time allowed for the whole response, however steady the transfer; 0 waits indefinitely

Until 4.7, UrlReadTimeout was the only budget and long transfers — a STOW-RS export of a large study, a WADO-RS retrieve of a long series — failed once they outlasted it. The two budgets now apply together: raise UrlResponseTimeout for archives that answer slowly as a whole, and UrlReadTimeout only for archives that stall between bytes.

Supported DICOMweb Providers (non-exhaustive list)

Google Cloud Healthcare API

Google Cloud provides a comprehensive DICOMweb implementation through the Healthcare API.

Configuration (see also the general steps above):

  1. Create a new DICOMweb node with a descriptive name.
  2. Pick DICOMweb (all RESTful services).
  3. Enter the Google repository URL (must end with /dicomWeb).
  4. Configure authentication by clicking Manager, then Add:
    1. Pick the Google Cloud Healthcare template.
    2. Click Fill.
    3. Enter your Client ID and Client Secret.
    4. Click OK to save the authentication.
  5. Optionally, add HTTP headers for the Google API.
  6. Click OK to save the node.

Google node Google node


Google template Google template

Note

The DICOMweb thumbnail service is not currently supported by the Google API, so series thumbnails will not preview before the full retrieve.

Orthanc WEB Server

Orthanc is a lightweight DICOM server with DICOMweb capabilities.

The screenshot below is configured for the public demo server, which requires no authentication. For your own Orthanc instance, replace the URL and configure the authentication method as described in the general steps.

https://demo.orthanc-server.com/dicom-web

Orthanc node Orthanc node


Note

The DICOMweb implementation in Orthanc does not currently support the thumbnail service, so series thumbnails will not preview before the full retrieve.

dcm4chee-arc-light

dcm4chee-arc-light is a robust open-source PACS that exposes DICOMweb services out of the box.

To configure a dcm4chee-arc-light node (see also the general steps):

  1. Add a new DICOMweb node.
  2. Enter a description (e.g. DCM4CHEE Archive).
  3. Pick the DICOMweb service.
  4. Enter the URL of your dcm4chee-arc-light server. The default endpoint follows this pattern:
    http(s)://[server-address]:[8080|8443]/dcm4chee-arc/aets/[AE_TITLE]/rs
    (e.g. http://localhost:8080/dcm4chee-arc/aets/DCM4CHEE/rs)

If the dcm4chee-arc-light server requires authentication, configure it on both sides:

In Weasis

  1. Click Manager, then Add to create a new authentication.
  2. Pick the Default Keycloak template and fill in:
    • Name — dcm4chee-arc-light
    • Base URL — https://[server-address]:8843
    • Realm — dcm4che
    • Client ID — weasis
    • Client Secret — the secret you copy from Keycloak (see below).
    • Scope — openid
    • Audience — leave empty.

In Keycloak — register the Weasis client for DICOMweb access:

  1. Sign in to the Keycloak Admin Console (typically https://[server-address]:8843/admin/dcm4che/console for the secure URL).
  2. In the left menu, click Clients > Create.
  3. General settings:
    • Client Type — OpenID Connect
    • Client ID — weasis
  4. Capability config:
    • Client authentication — ON
    • Standard flow — ON
    • Direct access grants — ON
  5. Login settings:
    • Root URL — leave empty.
    • Valid Redirect URIs — add http://127.0.0.1*.
    • Web Origins — add + to allow any origin that matches a Valid Redirect URI.
    • Click Save.
    • Copy the Client Secret from the Credentials tab and paste it into the Weasis authentication form above.

Amazon HealthLake

Amazon HealthLake is a fully managed service for storing, transforming, querying, and analyzing healthcare data at scale.

Imaging data is exposed through the AHI DICOMweb Proxy. To consume it from Weasis, create a DICOMweb node with this URL:

http://[EC2 instance IP or EC2/ALB DNS]:8080/aetitle

The complete Weasis configuration is documented at the end of the AHI DICOMweb Proxy README.