-
Notifications
You must be signed in to change notification settings - Fork 2
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
base: main
Are you sure you want to change the base?
Conversation
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
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
There was a problem hiding this 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.
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