Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(rendered): Support rendered resources #28

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

feliwir
Copy link
Contributor

@feliwir feliwir commented Jan 7, 2025

This implements #9

Current behaviour is that the /rendered endpoints return the first renderable instance from the related study / series. According to the specification the behaviour doesn't follow any rules - it must just be documented within the conformance statement

Right for for the windowing the LUT function is ignored, since my PR is not in a released dicom-rs version yet: Enet4/dicom-rs#598

src/api/wado/routes.rs Fixed Show fixed Hide fixed
src/api/wado/routes.rs Fixed Show fixed Hide fixed
src/api/wado/routes.rs Fixed Show fixed Hide fixed
src/api/wado/routes.rs Fixed Show fixed Hide fixed
src/api/wado/service.rs Fixed Show fixed Hide fixed
src/backend/dimse/wado.rs Fixed Show fixed Hide fixed
Comment on lines +112 to +172
let options = match &request.parameters.window {
Some(windowing) => ConvertOptions::new()
.with_voi_lut(VoiLutOption::Custom(WindowLevel {
center: windowing.center,
width: windowing.width,
}))
.force_8bit(),
None => ConvertOptions::default().force_8bit(),
};

Check warning

Code scanning / clippy

use Option::map_or_else instead of an if let/else Warning

use Option::map_or_else instead of an if let/else
Comment on lines +112 to +172
let options = match &request.parameters.window {
Some(windowing) => ConvertOptions::new()
.with_voi_lut(VoiLutOption::Custom(WindowLevel {
center: windowing.center,
width: windowing.width,
}))
.force_8bit(),
None => ConvertOptions::default().force_8bit(),
};

Check warning

Code scanning / clippy

use Option::map_or_else instead of an if let/else Warning

use Option::map_or_else instead of an if let/else
src/backend/dimse/wado.rs Fixed Show fixed Hide fixed
src/backend/dimse/wado.rs Fixed Show fixed Hide fixed
Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clippy found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

@feliwir feliwir marked this pull request as ready for review January 15, 2025 10:00
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.

1 participant