fix SeriesDescription not loaded in thumbnail. Fix in getSopClassHandlerModule. Maybe jika ada SOPClassUID spesial perlu adjust extension/getSopClassHandlerModule nya lagi. sementara ini hanya default SOPClassID dulu
This commit is contained in:
@@ -321,6 +321,8 @@ export default class DisplaySetService extends PubSubService {
|
||||
const handler = this.extensionManager.getModuleEntry(SOPClassHandlerId);
|
||||
|
||||
if (handler.sopClassUids.includes(instance.SOPClassUID)) {
|
||||
// Add this debug
|
||||
console.log('Using SOPHandler:', SOPClassHandlerId, 'for SOPClass:', instance.SOPClassUID);
|
||||
// Check if displaySets are already created using this SeriesInstanceUID/SOPClassHandler pair.
|
||||
let displaySets = existingDisplaySets.filter(
|
||||
displaySet => displaySet.SOPClassHandlerId === SOPClassHandlerId
|
||||
@@ -363,6 +365,16 @@ export default class DisplaySetService extends PubSubService {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Add debug
|
||||
console.log(
|
||||
'Created displaySets from Series:',
|
||||
displaySets.map(ds => ({
|
||||
uid: ds.displaySetInstanceUID,
|
||||
desc: ds.SeriesDescription,
|
||||
seriesUID: ds.SeriesInstanceUID,
|
||||
}))
|
||||
);
|
||||
|
||||
// applying hp-defined viewport settings to the displaysets
|
||||
displaySets.forEach(ds => {
|
||||
Object.keys(settings).forEach(key => {
|
||||
|
||||
Reference in New Issue
Block a user