fix(Video): Added fallback checks for DICOM video (#3402)

* fix(Video): Added fallback checks for DICOM video
Added some docs for video, pdf and upload.

* Added separate headings for DICOM PDF, DICOM Video and DICOM Upload in the docs.

* Updated docs for singlepart data source configuration.
This commit is contained in:
Joe Boccanfuso authored and GitHub committed 2023-05-17 16:50:27 -04:00
1 parent f1c0581313
commit 856538537d
3 files changed
+35 -3

No files matched your search

@@ -12,6 +12,10 @@ const SOP_CLASS_UIDS = {
};
const sopClassUids = Object.values(SOP_CLASS_UIDS);
const secondaryCaptureSopClassUids = [
SOP_CLASS_UIDS.SECONDARY_CAPTURE_IMAGE_STORAGE,
SOP_CLASS_UIDS.MULTIFRAME_TRUE_COLOR_SECONDARY_CAPTURE_IMAGE_STORAGE,
];
const SupportedTransferSyntaxes = {
MPEG4_AVC_264_HIGH_PROFILE: '1.2.840.10008.1.2.4.102',
@@ -42,11 +46,16 @@ const _getDisplaySetsFromSeries = (
return true;
}
// Assume that an instance with certain SOPClassUID and
if (
metadata.SOPClassUID === SOP_CLASS_UIDS.VIDEO_PHOTOGRAPHIC_IMAGE_STORAGE
) {
return true;
}
// Assume that an instance with one of the secondary capture SOPClassUIDs 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 &&
secondaryCaptureSopClassUids.includes(metadata.SOPClassUID) &&
metadata.NumberOfFrames >= 90
);
})