SMART Imaging Access
0.1.0 - ci-build International flag

SMART Imaging Access, published by Argonaut Project. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/argonautproject/smart-imaging/ and changes regularly. See the Directory of published versions

Specification

This page specifies endpoint discovery, authorization, study search, and DICOM retrieval. The guide supports both SMART App Launch and SMART Backend Services; deployments can support either or both patterns.

Actors are defined on the home page. App includes a Backend Client unless stated otherwise; Imaging Server refers collectively to the Imaging FHIR Server and DICOMweb Server functions.

Actor Responsibilities
App Discover the endpoint and supported mode; obtain and protect the token; search and resolve Endpoints; retrieve images and handle recovery
Clinical FHIR Server Advertise imaging endpoints for in-band discovery; enforce access to clinical resources in Backend Services
Authorization Server Support App Launch or Backend Services; enable token validation
Imaging FHIR Server Validate tokens and enforce access; issue capability URLs; search and return studies and Endpoints; protect capabilities and document their lifetime
DICOMweb Server Validate tokens and enforce access; protect capabilities and document their lifetime; serve and authorize retrievals

Discovery

The App learns the imaging endpoint and the authorization modes it supports. Discovery can be in-band, from the Clinical FHIR Server's SMART configuration document, or out-of-band, from direct configuration (an endpoint directory, a partner agreement).

App: discovery

In-band discovery requires no per-site setup for the App; Apps SHOULD prefer it when available and MAY fall back to out-of-band configuration.

The smart-imaging-access capability identifies the imaging interface; it does not imply either authorization mode. Support for a grant type alone does not establish support for that mode at an imaging endpoint. Apps using in-band discovery SHALL check the corresponding imaging-specific capability; out-of-band configuration MAY establish the same support explicitly. Advertising support does not grant access to any particular App.

Clinical FHIR Server and deployment

A Clinical FHIR Server supporting in-band discovery SHALL advertise imaging support with the capability string smart-imaging-access in its endpoint's .well-known/smart-configuration:

  • in the top-level capabilities array, if that FHIR endpoint also serves ImagingStudy as described here, or
  • in associated_endpoints[].capabilities, if a separate FHIR endpoint does.

App Launch support. A deployment supporting App Launch SHALL advertise http://fhir.org/argonaut/smart-imaging/capabilities/app-launch alongside smart-imaging-access for each imaging endpoint supporting that mode. The SMART configuration SHALL advertise authorization_code in grant_types_supported and meet SMART App Launch discovery requirements.

Backend Services support. A deployment supporting the Backend Services mode SHALL additionally advertise http://fhir.org/argonaut/smart-imaging/capabilities/backend-services alongside smart-imaging-access for each imaging endpoint supporting that mode. This URI is a capability identifier, not an API endpoint. In the Clinical FHIR Server's .well-known/smart-configuration, the capability goes in the top-level or associated endpoint's capabilities array as above; grant_types_supported and token authentication metadata remain at the top level, describing the advertised Authorization Server. That document SHALL include client_credentials in grant_types_supported and meet SMART's asymmetric client authentication discovery requirements. It SHOULD list system/ImagingStudy.rs in scopes_supported.

Deployments supporting both modes SHALL advertise both mode-specific capabilities.

Example. A Clinical FHIR Server at https://clinical.example.org/fhir whose associated imaging endpoint is hosted separately at https://imaging.example.org/fhir would serve this at https://clinical.example.org/fhir/.well-known/smart-configuration:

{
  "authorization_endpoint": "https://auth.example.org/authorize",
  "token_endpoint": "https://auth.example.org/token",
  "grant_types_supported": ["authorization_code"],
  "capabilities": ["launch-standalone", "..."],
  "associated_endpoints": [
    {
      "url": "https://imaging.example.org/fhir",
      "capabilities": [
        "smart-imaging-access",
        "http://fhir.org/argonaut/smart-imaging/capabilities/app-launch"
      ]
    }
  ]
}

The App reads this document, sees smart-imaging-access and the App Launch capability on the associated endpoint, and knows it can search https://imaging.example.org/fhir/ImagingStudy using an access token from the advertised Authorization Server.

Authorization

The App presents the same SMART access token for clinical FHIR access, ImagingStudy search, and DICOM retrieval, subject to the granted scopes and underlying access permissions. The guide supports SMART App Launch and SMART Backend Services. Deployments SHALL support at least one of these authorization modes and MAY support both. Imaging Servers MAY return token-bound capability URLs to carry study-specific permissions to the retrieval service. The App uses the returned endpoint and its existing token in either case; no separate user authorization step or client-side token exchange is required.

App: token handling

The App, including a Backend Client, SHALL treat the access token as a secret and present it only to the Authorization Server, the Clinical FHIR Server covered by the authorization, the Imaging FHIR Server, and SMART WADO-RS endpoints the Imaging Server has designated (via Endpoint.address). The token SHALL NOT be forwarded to unrelated organizations or arbitrary referenced endpoints.

Apps SHALL protect both access tokens and capability URLs from unintended disclosure. A capability URL is usable only with its associated valid SMART token.

App Launch

Sequence diagram: the App authorizes with the Authorization Server, optionally queries the Clinical FHIR Server, searches ImagingStudy on the Imaging FHIR Server, and retrieves DICOM data from the DICOMweb Server; the Imaging Server validates the token with the Authorization Server via introspection

This example shows App Launch, with the same SMART access token used for clinical data, study search, and WADO-RS retrieval.

Authorization Server. For deployments supporting App Launch, the Authorization Server SHALL support SMART App Launch and SHALL offer scopes permitting ImagingStudy read access (patient/ImagingStudy.rs, patient/*.rs, or the SMART 1.0 equivalents).

App. The App runs a standard SMART App Launch flow (for example, a standalone launch) against the Authorization Server, requesting scopes that cover imaging: patient/ImagingStudy.rs (SMART 2.0), patient/ImagingStudy.read (SMART 1.0), or a wildcard that includes it such as patient/*.rs.

Example (standalone launch). The App requests launch/patient patient/ImagingStudy.rs offline_access for patient context, imaging access, and a refresh token usable beyond the user's online session. The user approves sharing, and the Authorization Server grants all requested scopes in this response:

{
  "access_token": "access-token-value-unguessable",
  "token_type": "Bearer",
  "expires_in": 3600,
  "scope": "launch/patient patient/ImagingStudy.rs offline_access",
  "refresh_token": "refresh-token-value-unguessable-and-long-lasting",
  "patient": "123"
}

The scope value reports the scopes actually granted, which can differ from those requested.

The App SHALL present this access_token as a Bearer token for clinical FHIR reads, ImagingStudy searches, and WADO-RS retrievals at the designated endpoints.

Backend Services

This mode supports Backend Clients whose access is authorized in advance by the source organization, such as a referral service retrieving images for patients it is permitted to serve. It uses ordinary patient-specific queries; it does not require bulk export or population-wide search.

Deployment. Deployments advertising Backend Services imaging support SHALL meet that mode's discovery, token acquisition, and access-enforcement requirements. App Launch support is not required for a Backend Services-only deployment.

Backend Client and Authorization Server. The Backend Client and Authorization Server SHALL follow SMART Backend Services, including registration, asymmetric client authentication, and the client_credentials grant. The Backend Client requests system/ImagingStudy.rs; deployments supporting this mode SHALL support that scope. A granted wildcard covering the same interactions MAY also be used. The Backend Client includes any required clinical-resource scopes in the same token request.

The Backend Client SHALL present the resulting access token as a Bearer token for study search and DICOM retrieval at the designated endpoints, just as in App Launch. The signed JWT used to authenticate the client at the token endpoint is not the access token and SHALL NOT be used as the bearer token for imaging requests.

Authorization Server and participating resource servers. In this guide, system/ImagingStudy.rs permits study search and retrieval of the associated DICOM data only within the Backend Client's pre-authorized access. It does not grant access to all patients or all studies. The Authorization Server and participating resource servers SHALL have an arrangement that allows them to enforce the Backend Client's applicable access restrictions consistently. How those permissions are assigned and communicated is deployment-specific.

Patient identity. There is no required patient launch context in this mode. When searching by patient, the Backend Client uses the applicable Patient reference described in Patient references. Backend use of patient/ or user/ scopes is not defined by this mode.

Example (non-normative). A referral service is registered with the source organization. In this example, Patient/123 and Patient/456 are local to the Imaging FHIR Server. Its permissions allow study A for patient 123, but not study B for the same patient or any studies for patient 456. It obtains a short-lived token with system/ImagingStudy.rs using SMART Backend Services.

Request with that token Result
Search ImagingStudy?patient=123&_include=ImagingStudy:endpoint Returns A and its endpoint; omits B
Retrieve A through its WADO-RS endpoint using the same token Returns A's DICOM data
Request B directly through the token-protected WADO-RS endpoint Denied; the token does not authorize B
Search ImagingStudy?patient=456 403 Forbidden; this patient is outside the client's authorized access

If the service also needs clinical reports, it requests an appropriate clinical scope, such as system/DiagnosticReport.rs. The Clinical FHIR Server independently enforces the permissions applicable to those reports.

The authorized search may return a token-bound capability URL for A. The service presents the same SMART token when using that URL. The DICOMweb Server enforces the token and the capability's permission for A; changing the requested study does not broaden that permission.

Authorization Server: token validation

The Authorization Server SHALL provide a way for Imaging Servers to validate its tokens — SMART Token Introspection unless another arrangement is in place.

Imaging Server: token validation and access enforcement (both modes)

These duties apply to both the Imaging FHIR Server and DICOMweb Server.

Trusting the token. If the Imaging Server and Authorization Server operate as one system, this is ordinary local token validation. If they are separate systems, the Imaging Server needs a way to check tokens issued by the Authorization Server. The expected mechanism is SMART Token Introspection:

POST https://auth.example.org/introspect
Content-Type: application/x-www-form-urlencoded

token=access-token-value-unguessable

Other trust arrangements (for example, signed tokens the Imaging Server can verify directly) MAY be used, provided the Imaging Server can enforce the checks below.

Required token checks. Before serving any imaging FHIR or WADO-RS request, the Imaging Server SHALL confirm that:

  1. the token is active (not expired or revoked) and issued by the configured Authorization Server for use at this resource server;
  2. the token's scopes cover the request; and
  3. the request is within the authorized access, according to the grant authorizing the request:
    • Patient-level (patient/) scopes: the patient identified by the grant's patient context SHALL be the patient whose data is requested — identified by the patient reference on a FHIR search, or associated with the requested study on a WADO-RS retrieval. Any additional access restrictions SHALL also be enforced.
    • System-level (system/) scopes: the Imaging Server SHALL establish the client identity from validated token information and enforce that client's pre-authorized access, narrowed by the granted scopes, for the requested patient and studies.

Patient-context matching compares patient identity, not raw query-string spelling. The token's patient context is interpreted in its established FHIR context; search references follow the Patient reference rules below.

Missing patient context SHALL NOT be treated as authorization for system-level access. An Imaging Server not supporting the Backend Services mode SHALL NOT grant imaging access on the basis of system scopes. An Imaging Server SHALL NOT serve data when it cannot establish the applicable permissions. For tokens carrying more than one scope, each grant retains its own context and restrictions; permissions SHALL NOT be broadened by combining the context of one grant with another grant's scope.

SMART introspection returns client_id and granted scopes, and patient context when it was issued. It does not define a complete representation of a client's underlying permissions. An active token with system/ImagingStudy.rs is therefore insufficient on its own to establish which studies the client may access. Separate Imaging Servers need a policy lookup, shared authorization service, or another arrangement that enforces those permissions.

The Imaging Server MAY gather additional information from the Clinical FHIR Server to make an access decision — for example, using its own SMART Backend Services credentials to fetch Patient/123 and obtain identifiers for cross-mapping. As part of a policy lookup, the Imaging Server can also call an internal permission API to determine which studies the requesting App is permitted to access. This internal use does not imply support for backend imaging clients and SHALL NOT expand the requesting client's access. See Imaging Identifiers.

Imaging FHIR Server: issuing capability URLs

Before returning an Endpoint carrying a capability, the Imaging FHIR Server SHALL perform the token and access checks above and limit the capability to data and retrieval operations authorized by that request. The capability SHALL be bound to the SMART token authorizing the FHIR request. See Finding studies for response-specific Endpoints and Retrieving images for DICOMweb Server validation and lifetime requirements.

Finding studies

The App can search ImagingStudy by patient on the Imaging FHIR Server to obtain study metadata, the released series and instance inventory, and retrieval Endpoints.

The Patient referenced by ImagingStudy.subject can be managed by the Imaging FHIR Server or externally. The App can obtain the applicable Patient logical ID and reference namespace through authorization or out of band, such as from a prior exchange or a patient-matching workflow.

At https://imaging.example.org/fhir, patient=123 and patient=Patient/123 identify the local Patient https://imaging.example.org/fhir/Patient/123. For an externally managed Patient, the App uses its absolute reference. Relative and absolute references match when they resolve to the same URL; equal trailing logical IDs at different FHIR base URLs do not by themselves identify the same Patient resource.

For the split clinical/imaging deployment in the discovery example, the launch context patient: "123" identifies https://clinical.example.org/fhir/Patient/123. The App searches the separate Imaging FHIR Server using that absolute reference and asks it to include referenced Endpoints:

GET https://imaging.example.org/fhir/ImagingStudy?patient=https%3A%2F%2Fclinical.example.org%2Ffhir%2FPatient%2F123&_include=ImagingStudy:endpoint
Authorization: Bearer access-token-value-unguessable

An Endpoint may be a response-local Bundle entry, a separately addressable resource included in the Bundle, or a contained resource within an ImagingStudy. Apps SHALL support all three forms and resolve references using the FHIR Bundle reference-resolution rules.

For this guide's retrieval flow, the App selects SMART WADO-RS Endpoints identified by Endpoint.connectionType system http://terminology.hl7.org/CodeSystem/endpoint-connection-type and code dicom-wado-rs. Other endpoint types, such as viewer or QIDO-RS endpoints, are not WADO-RS retrieval targets; being referenced does not authorize them to receive the App's SMART token.

For a response-local Endpoint with a urn:uuid:... fullUrl, the UUID identifies the Endpoint within the Bundle; it is not the retrieval address. The App resolves the selected WADO-RS Endpoint's reference and uses its HTTPS address as the WADO-RS base URL. Response-specific capability Endpoints represent authorization for the requesting token, not reusable Endpoint records for other authorization contexts.

The released series and instance UIDs and SOP Classes let the App select objects and check retrieval completeness without first downloading a whole study. See Retrieving images for choosing a study- or series-level WADO-RS Endpoint and constructing request paths.

If the Imaging FHIR Server returns 503 Service Unavailable with Retry-After, the App SHOULD wait the indicated number of seconds and repeat the identical request.

Supported searches. The Imaging FHIR Server SHALL support searching ImagingStudy by Patient logical ID using relative or absolute Patient references under the FHIR reference-search rules, for each of the following search parameter combinations. The table uses the local shorthand patient=123.

Query Use case
patient=123 List the patient's studies accessible under this authorization
patient=123&_lastUpdated=gt2023-04-17T04:00:00Z Incremental sync: only studies updated since the app last checked
patient=123&identifier=urn:oid:1.2.3 Look up one study by DICOM Study Instance UID

The Imaging FHIR Server SHALL support _include=ImagingStudy:endpoint so that referenced Endpoints are returned in the search Bundle. This existing search parameter covers both ImagingStudy.endpoint and ImagingStudy.series.endpoint; no separate series-endpoint include is needed. See the server CapabilityStatement for the machine-readable requirements.

Access control. The Imaging FHIR Server SHALL enforce the checks in Authorization on every search. For requests authorized by patient/ scopes, the server SHALL return 403 Forbidden if a supplied patient reference identifies a different patient from the grant's patient context. For requests authorized by system/ scopes, the server SHALL return 403 Forbidden if the requested patient is outside the client's authorized access. The server SHALL omit studies and included Endpoints the client is not permitted to access. These rules apply to all supported search combinations.

Study representation and inventory. The Imaging FHIR Server returns a searchset Bundle of ImagingStudy resources conforming to the SMART ImagingStudy profile. Every study carries its DICOM Study Instance UID (an identifier with system urn:dicom:uid and a urn:oid:... value), its status, patient, and modality.

See the non-normative Study UID assumption for the expected study/patient association across the Imaging FHIR and DICOMweb Servers.

The Imaging FHIR Server SHALL populate every released series and instance, including series.uid, series.instance.uid, and series.instance.sopClass. Released content is content made available for DICOM retrieval under the current authorization; metadata alone does not establish release. The Imaging FHIR Server SHALL populate series.number and series.instance.number when their values are present in the source. These number elements remain 0..1 with Must Support; they can be absent when the source does not supply them.

Additional descriptive details, such as start time, series and instance counts, and further per-series metadata, help Apps present a useful study list and should be included when available. The released UID hierarchy is compatible with IHE MADO. MADO's optional MadoKeyObjectDocumentTitle extension conveys the title of a Key Object Selection document, allowing Apps to distinguish KOS purposes.

Endpoint coverage. Both ImagingStudy.endpoint and ImagingStudy.series.endpoint use open slicing: the lists and their WADO-RS slices are 0..* with Must Support. WADO-RS Endpoints conform to SMART WADO-RS Endpoint; other connection types are also permitted.

The Imaging FHIR Server SHALL provide a SMART WADO-RS Endpoint for every released series, directly at series level or inherited from study level. A study-level WADO-RS Endpoint covers all released series and instances. For series and instance requests, a series-level WADO-RS Endpoint overrides the study-level WADO-RS Endpoint for that series. Other series endpoint connection types do not override inherited WADO-RS coverage. Separate series-level Endpoints can provide coverage without any study-level WADO-RS Endpoint.

FHIR status = available means that instances have been associated with the study, not that they are accessible through WADO-RS. Subject to the access rules above, the Imaging FHIR Server can return known study metadata without retrieval Endpoints, including for registered or cancelled studies and for studies with status = available whose content is not retrievable.

Response-specific Endpoints. For capability URLs, the Imaging FHIR Server SHOULD return the Endpoint as a response-local Bundle entry with a urn:uuid:... value in Bundle.entry.fullUrl and the same value in the corresponding ImagingStudy.endpoint.reference or ImagingStudy.series.endpoint.reference. The Imaging FHIR Server SHALL include that Endpoint entry on the same Bundle page as each study referencing it at either level, including when the request omits _include.

Worked examples:

Example What it demonstrates
Contained Endpoint Study-level WADO-RS coverage and a complete instance inventory
External Endpoint A separately addressable WADO-RS Endpoint
Response-local capability Endpoint A token-bound retrieval URL resolved within the search Bundle
Mixed endpoint types and a series override WADO-RS inheritance, a direct series override, and non-WADO-RS Endpoints
Series in separate archives Two direct series Endpoints and no study-wide endpoint
Registered study metadata No associated instances or retrieval Endpoints
Available but unretrievable study Known instances without WADO-RS access
Search response Bundle Study matches with included Endpoints

Delayed search results: 503 and Retry-After. Some Imaging FHIR Servers front systems that answer slowly — for example, a proxy that issues a DICOM C-FIND to a PACS on first request. Rather than holding the connection open, the Imaging FHIR Server MAY respond:

HTTP/1.1 503 Service Unavailable
Retry-After: 30

Once results are ready, the Imaging FHIR Server responds normally with the Bundle.

Scaling (non-normative). Forwarding every search to the PACS can overload it. Caching study metadata can reduce that load. Cache invalidation can use time-based rules or change feeds from the PACS or RIS. The 503/Retry-After pattern complements caching: the first request warms the cache; retries hit it. Cache underlying study metadata separately from response-specific authorization data. For each response, apply the current authorization and assemble Endpoint entries and references for the requesting token.

Retrieving images

Each SMART WADO-RS Endpoint supplies a base URL in Endpoint.address. The App uses the released UID inventory and the applicable endpoint to retrieve a study, a series, or an individual instance with its SMART token.

App: image retrieval

Selecting an endpoint. For a full-study request, the App uses an advertised study-level WADO-RS Endpoint. For series or instance retrieval, it uses the series-level WADO-RS Endpoint when present, otherwise the study-level WADO-RS Endpoint. A series-level override does not change which endpoint serves full-study requests.

Constructing requests. The App removes the urn:oid: prefix from the study's urn:dicom:uid identifier value. Series and SOP Instance UIDs come directly from series.uid and series.instance.uid. The App appends the appropriate path to the selected Endpoint.address:

Retrieval Path appended to the WADO-RS base URL
Study /studies/{Study Instance UID}
Series /studies/{Study Instance UID}/series/{Series Instance UID}
Instance /studies/{Study Instance UID}/series/{Series Instance UID}/instances/{SOP Instance UID}

The App SHALL send the same SMART access token used for the authorized FHIR request in the Authorization header. For example, a full-study request through a study-level WADO-RS Endpoint is:

GET https://imaging.example.org/wado-rs/studies/1.2.840.99999999.19341866.1571297684
Accept: multipart/related; type=application/dicom; transfer-syntax=*
Authorization: Bearer access-token-value-unguessable

For the study with series in separate archives, the App can retrieve an instance from the second archive using:

GET https://archive-two.example.org/dicom-web/studies/1.2.840.99999999.20261112.2/series/1.2.840.99999999.20261112.2.2/instances/1.2.840.99999999.20261112.2.2.1
Accept: multipart/related; type=application/dicom; transfer-syntax=*
Authorization: Bearer access-token-value-unguessable

The Imaging Server MAY use a capability URL: a WADO-RS base URL that carries or identifies study-specific permissions bound to the requesting SMART token. The permissions may be encoded in protected URL contents or stored by the service under an opaque identifier. The App uses this address and its existing SMART token in the same way as any other returned endpoint. For example:

GET https://imaging.example.org/wado-capability/opaque-example-capability/studies/1.2.840.99999999.19341866.1571297684
Accept: multipart/related; type=application/dicom; transfer-syntax=*
Authorization: Bearer access-token-value-unguessable

The capability value above is illustrative. Apps SHALL treat returned addresses as opaque base URLs, preserve their capability information when constructing retrieval paths, and protect them from unintended disclosure. See App: token handling for protection of access tokens and capability URLs.

Design question (non-normative): Should this guide also support bearer capability URLs, where clients are explicitly instructed not to send their SMART access token?

Optional operations. Apps SHOULD degrade gracefully when optional operations are unavailable, using series- or instance-level retrieval, or full-study retrieval where a study-level WADO-RS Endpoint is advertised.

Refreshing a retrieval endpoint. If DICOM retrieval returns 401 Unauthorized or 403 Forbidden, the App can repeat the ImagingStudy search for the patient and Study Instance UID, using a valid SMART token and refreshing it first if necessary. The Imaging FHIR Server evaluates the current authorization before returning the study and its Endpoints.

If the search returns the study with a WADO-RS Endpoint covering the requested retrieval, the App can retry using that Endpoint and the SMART token used for that search. If the study or the applicable WADO-RS Endpoint is not returned, or retrieval is again rejected for authorization, the App stops this recovery attempt.

Imaging Server: capability protection and lifetime

These responsibilities span capability issuance by the Imaging FHIR Server and enforcement by the DICOMweb Server.

The Imaging Server SHALL use unguessable or cryptographically protected capabilities, validate their binding to the presented token, and ensure that appending WADO-RS paths cannot grant access beyond the capability's permitted data and operations.

A capability requires its associated SMART token to remain valid and is also subject to its own lifetime and revocation conditions. Imaging Servers SHALL document capability lifetime and revocation behavior. Capabilities SHOULD be short-lived.

DICOMweb Server: image retrieval

Required retrieval operations. The DICOMweb Server SHALL support series- and instance-level retrieval at every SMART WADO-RS Endpoint for the content it serves, per the DICOMweb WADO-RS standard.

At a SMART WADO-RS Endpoint advertised at study level, the DICOMweb Server SHALL also support full-study retrieval covering all released series and instances, with Accept: multipart/related; type=application/dicom; transfer-syntax=*. Accepting transfer-syntax=* lets the DICOMweb Server return stored files without re-encoding, so even a static file server behind an authorizing proxy can participate. Operation support does not override the token, access, or capability restrictions below.

The response returns the requested DICOM instances as a multipart body:

HTTP/1.1 200 OK
Content-Type: multipart/related; type=application/dicom; boundary=...

[DICOM instances, one part each]

Additional retrieval operations. Further WADO-RS capabilities enable richer App behavior (progressive loading, thumbnails, viewing without a full download). DICOMweb Servers SHOULD support:

  • Frame-level retrieval — .../instances/{uid}/frames/{n}
  • Rendered images — .../rendered at study, series, or instance level
  • Metadata — GET /studies/{uid}/metadata (and at series/instance level)
  • Transfer-syntax negotiation — re-encoding payloads to match the Accept header

Retrieval authorization. The DICOMweb Server SHALL perform the token and access checks in Authorization on every request. If the URL carries a capability, the DICOMweb Server SHALL additionally validate that capability and its binding to the presented token, and enforce its permitted data and operations. All applicable restrictions SHALL be enforced. These checks apply to every supported retrieval, including full studies, series, instances, frames, metadata, and rendered images, whether or not the App previously searched for the study.

The DICOMweb Server SHALL deny requests outside the authorized access without returning DICOM data. A full-study request SHALL NOT return a successful partial study when access restrictions exclude some of its contents; the DICOMweb Server SHALL deny that request.

Lifetime and revocation enforcement. The DICOMweb Server SHALL check token and capability validity when accepting each request. A response authorized before expiry MAY finish after expiry. New or retried requests SHALL be checked again. A retrieval request using an expired or revoked URL capability SHALL receive 403 Forbidden.

Delayed retrieval. If assembling authorized data takes time (for example, a C-MOVE from a PACS under the hood), the DICOMweb Server MAY respond 503 with a Retry-After header, exactly as in Finding studies.

Implementing Study-Level Authorization describes ways to distribute these decisions and checks among cooperating systems.