Make createStacks use Study Metadata API for multiframe instances
This commit is contained in:
parent
1a24e05e26
commit
d5feda0148
@ -85,18 +85,18 @@ const createStacks = study => {
|
|||||||
displaySet = makeDisplaySet(series, [ instance ]);
|
displaySet = makeDisplaySet(series, [ instance ]);
|
||||||
displaySet.setAttributes({
|
displaySet.setAttributes({
|
||||||
isClip: true,
|
isClip: true,
|
||||||
studyInstanceUid: study.studyInstanceUid, // Include the study instance Uid for drag/drop purposes
|
studyInstanceUid: study.getStudyInstanceUID(), // Include the study instance Uid for drag/drop purposes
|
||||||
numImageFrames: instance.numberOfFrames, // Override the default value of instances.length
|
numImageFrames: instance.getRawValue('x00280008'), // Override the default value of instances.length
|
||||||
instanceNumber: instance.instanceNumber, // Include the instance number
|
instanceNumber: instance.getRawValue('x00200013'), // Include the instance number
|
||||||
acquisitionDatetime: instance.acquisitionDatetime // Include the acquisition datetime
|
acquisitionDatetime: instance.getRawValue('x0008002a') // Include the acquisition datetime
|
||||||
});
|
});
|
||||||
displaySets.push(displaySet);
|
displaySets.push(displaySet);
|
||||||
} else if (isSingleImageModality(instance.modality)) {
|
} else if (isSingleImageModality(instance.modality)) {
|
||||||
displaySet = makeDisplaySet(series, [ instance ]);
|
displaySet = makeDisplaySet(series, [ instance ]);
|
||||||
displaySet.setAttributes({
|
displaySet.setAttributes({
|
||||||
studyInstanceUid: study.studyInstanceUid, // Include the study instance Uid
|
studyInstanceUid: study.getStudyInstanceUID(), // Include the study instance Uid
|
||||||
instanceNumber: instance.instanceNumber, // Include the instance number
|
instanceNumber: instance.getRawValue('x00200013'), // Include the instance number
|
||||||
acquisitionDatetime: instance.acquisitionDatetime // Include the acquisition datetime
|
acquisitionDatetime: instance.getRawValue('x0008002a') // Include the acquisition datetime
|
||||||
});
|
});
|
||||||
displaySets.push(displaySet);
|
displaySets.push(displaySet);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user