Check study instances whether they have image data based on sopClassUid or rows (JPEG and PNG images do not have sopClassUid)
This commit is contained in:
parent
896cc715ea
commit
6f0f1dc0ea
@ -22,9 +22,9 @@ createStacks = function(study) {
|
||||
}
|
||||
|
||||
// Don't display thumbnails for non-image modalities
|
||||
// All imaging modalities must have a valid value for sopClassUid
|
||||
// All imaging modalities must have a valid value for sopClassUid or rows
|
||||
var anInstance = series.instances[0];
|
||||
if (!anInstance || !isImage(anInstance.sopClassUid)) {
|
||||
if (!anInstance || (!isImage(anInstance.sopClassUid) && !anInstance.rows)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@ -533,9 +533,9 @@ function defaultHangingProtocol(inputData) {
|
||||
study.seriesList.forEach(function(series) {
|
||||
|
||||
// Ensure that the series has image data
|
||||
// (All images have sopClassUid)
|
||||
// (All images have sopClassUid or rows)
|
||||
var anInstance = series.instances[0];
|
||||
if (!anInstance || !isImage(anInstance.sopClassUid)) {
|
||||
if (!anInstance || (!isImage(anInstance.sopClassUid) && !anInstance.rows)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user