fix(DICOM PDF and Video): fixes for local DICOM load and remote data sources (#3374)

* fix(DICOM PDF and Video)
- added retrieve.directURL for local DICOM load data source; it returns a data URL
- fixed various checks for video using transfer syntaxes and SOP class UID with number of frames
- added call to 'rendered' endpoint for those data sources that support it; others get BulkDataURI

* Added DOC (PDF) and OT (for video in particular) to list of non-image thumbnail modalities.

* Fixed broken e2e tests.
This commit is contained in:
Joe Boccanfuso authored and GitHub committed 2023-05-10 12:42:48 -04:00
1 parent 0eda151418
commit 8eaa1877fd
12 files changed
+59 -20

No files matched your search

@@ -37,7 +37,18 @@ const _getDisplaySetsFromSeries = (
metadata.AvailableTransferSyntaxUID ||
metadata.TransferSyntaxUID ||
metadata['00083002'];
return supportedTransferSyntaxUIDs.includes(tsuid);
if (supportedTransferSyntaxUIDs.includes(tsuid)) {
return true;
}
// Assume that an instance with certain SOPClassUID and
// with at least 90 frames (i.e. typically 3 seconds of video) is indeed a video.
return (
metadata.SOPClassUID ===
SOP_CLASS_UIDS.MULTIFRAME_TRUE_COLOR_SECONDARY_CAPTURE_IMAGE_STORAGE &&
metadata.NumberOfFrames >= 90
);
})
.map(instance => {
const {
@@ -14,8 +14,7 @@ function OHIFCornerstoneVideoViewport({ displaySets }) {
useEffect(() => {
const load = async () => {
await videoUrl;
setUrl(videoUrl);
setUrl(await videoUrl);
};
load();