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:
AlfandiMario
2025-10-31 10:51:15 +07:00
parent 9ab6fb405d
commit 1702191d18
3 changed files with 19 additions and 2 deletions

View File

@@ -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 => {