- Return modalities attribute by merging modality and modalitiesInStudy attributes to be able to filter if only modality tag exists
- Remove modality tag in filter object and filter modalities of studies returned from WorklistSearch method
This commit is contained in:
1 parent
a5d4c6d0eb
commit
a2c0dbefc3
5 files changed
+49
-8
No files matched your search
@@ -0,0 +1,21 @@
|
||||
DICOMWeb.getModalities = function(modality, modalitiesInStudy) {
|
||||
var modalities = {};
|
||||
if (modality) {
|
||||
modalities = modality;
|
||||
}
|
||||
|
||||
if (modalitiesInStudy) {
|
||||
// Find vr in modalities
|
||||
if (modalities.vr && modalities.vr === modalitiesInStudy.vr) {
|
||||
for (var i = 0; i < modalitiesInStudy.Value.length; i++) {
|
||||
var value = modalitiesInStudy.Value[i];
|
||||
if (modalities.Value.indexOf(value) === -1) {
|
||||
modalities.Value.push(value);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
modalities = modalitiesInStudy;
|
||||
}
|
||||
}
|
||||
return modalities;
|
||||
};
|
||||
Reference in new issue
Block a user