Skip to content

Add the WADO-RS retrieve URL to the inputs of an AI task workitem - #981

Merged
nroduit merged 1 commit into
nroduit:5.0from
nkalten:fix/aiw-retrieve-url
Nov 28, 2026
Merged

nroduit merged 1 commit into
nroduit:5.0from
nkalten:fix/aiw-retrieve-url

Conversation

@nkalten

@nkalten nkalten commented Nov 26, 2026

Copy link
Copy Markdown

Problem

A UPS workitem created from the AI tasks menu (or ups:run without --url) had no WADO-RS Retrieval Sequence in its Input Information Sequence, so a Task Performer could not retrieve the input series.
AiTasks.inputInstances copied only the UIDs of each instance, while the Retrieve URL (0008,1190) lives on the series in the model;
UpsWorkitem.input writes the WADO-RS Retrieval Sequence only from an instance's Retrieve URL.

Change

Each input instance now carries the Retrieve URL of its serie none, the series resource of the study's DICOMweb origin
(PS3.18 §10.4.1.1.2).
ups:run --url … --instance … is unchanged: its instances a the server named is the UPS one, not necessarily the WADO-RS one.

Verification

  • New AiTasksTest: fails before the fix (Retrieve URL null), passes after; mvn -pl weasis-dicom/weasis-dicom-aiw verify passes.
  • On macOS, 3 Swing layout tests of weasis-core (ToolBarContainerFitTest, GraphicPrefViewLayoutTest, SidePanelTest) fail with or without this change; this PR does not touch weasis-core.
  • Manual: study retrieved from a dcm4chee-arc archive, AI task menu, workitem checked on the server for its WADO-RS Retrieval Sequence (macOS).

This change was written with the help of Claude Code and reviewed and tested by me.

…from

The input instances of a workitem carried only their UIDs, so UpsWorkitem
never wrote the WADO-RS Retrieval Sequence: the Retrieve URL (0008,1190)
lives on the series in the model, never on its instances. Each instance now
takes the URL of its series, or the series resource of the DICOMweb origin
of the study when the query gave none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nroduit
nroduit merged commit 25d1a0d into nroduit:5.0 Nov 28, 2026
nroduit added a commit that referenced this pull request Nov 28, 2026
Follow-up of the pull requests #980, #981 and #982 on the AI tasks.

- A parameter name or a coded value of ups:run --param is code or
  scheme:code; without a scheme it takes the one of the task instead
  of a designator built into the plugin
- Command API 2.42 for the --param option, skill snapshots regenerated
- Format the plugin module (spotless)
- Document the parameters and the scheme of a catalog entry in
  ai-tasks.md
- Tester notes: API 2.42, what ran against a live UPS-RS server

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants