[WIP] Changing OHIFStudyMetadataSource to StudyList namespace
This commit is contained in:
parent
6cfb4f16eb
commit
638c3df924
@ -26,7 +26,7 @@ const initHangingProtocol = () => {
|
|||||||
const layoutManager = OHIF.viewerbase.layoutManager;
|
const layoutManager = OHIF.viewerbase.layoutManager;
|
||||||
|
|
||||||
// Instantiate StudyMetadataSource: necessary for Hanging Protocol to get study metadata
|
// Instantiate StudyMetadataSource: necessary for Hanging Protocol to get study metadata
|
||||||
const studyMetadataSource = new OHIFStudyMetadataSource();
|
const studyMetadataSource = new StudyList.classes.OHIFStudyMetadataSource();
|
||||||
|
|
||||||
// Creates Protocol Engine object with required arguments
|
// Creates Protocol Engine object with required arguments
|
||||||
const ProtocolEngine = new HP.ProtocolEngine(layoutManager, studyMetadataList, [], studyMetadataSource);
|
const ProtocolEngine = new HP.ProtocolEngine(layoutManager, studyMetadataList, [], studyMetadataSource);
|
||||||
|
|||||||
@ -1,8 +1,12 @@
|
|||||||
import { Viewerbase } from 'meteor/ohif:viewerbase';
|
import { Viewerbase } from 'meteor/ohif:viewerbase';
|
||||||
|
import { OHIFStudyMetadataSource } from './OHIFStudyMetadataSource';
|
||||||
|
|
||||||
StudyList = {
|
StudyList = {
|
||||||
functions: {},
|
functions: {},
|
||||||
callbacks: {}
|
callbacks: {},
|
||||||
|
classes: {
|
||||||
|
OHIFStudyMetadataSource
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
StudyList.callbacks.dblClickOnStudy = dblClickOnStudy;
|
StudyList.callbacks.dblClickOnStudy = dblClickOnStudy;
|
||||||
|
|||||||
@ -65,5 +65,4 @@ Package.onUse(function(api) {
|
|||||||
// Export the Collections
|
// Export the Collections
|
||||||
api.export('StudyListStudies', 'client');
|
api.export('StudyListStudies', 'client');
|
||||||
api.export('StudyListSelectedStudies', 'client');
|
api.export('StudyListSelectedStudies', 'client');
|
||||||
api.export('OHIFStudyMetadataSource', 'client');
|
|
||||||
});
|
});
|
||||||
|
|||||||
@ -114,10 +114,7 @@ Template.viewerMain.onRendered(() => {
|
|||||||
// Enable hotkeys
|
// Enable hotkeys
|
||||||
hotkeyUtils.enableHotkeys();
|
hotkeyUtils.enableHotkeys();
|
||||||
|
|
||||||
Session.set('OHIFViewerMainRendered', {
|
Session.set('OHIFViewerMainRendered', {});
|
||||||
instance,
|
|
||||||
date: new Date()
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user