PWV-3: Creating ohif:log package and partially refactoring ohif:measurements
This commit is contained in:
1 parent
f3f32518c6
commit
60aa1d0982
76 files changed
+410
-479
No files matched your search
+5
-3
@@ -1,3 +1,5 @@
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
|
||||
var keys = {
|
||||
ESC: 27
|
||||
};
|
||||
@@ -118,7 +120,7 @@ function getActiveViewportImageId() {
|
||||
return;
|
||||
}
|
||||
} catch(error) {
|
||||
log.warn(error);
|
||||
OHIF.log.warn(error);
|
||||
return;
|
||||
}
|
||||
// Return the enabled element's imageId
|
||||
@@ -141,7 +143,7 @@ function getAbstractPriorValue(imageId) {
|
||||
if (!priorStudy) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
var studies = StudyListStudies.find({
|
||||
patientId: currentStudy.patientId,
|
||||
studyDate: {
|
||||
@@ -184,7 +186,7 @@ function getCurrentAttributeValue(attribute, level) {
|
||||
if (level === 'protocol') {
|
||||
level = 'study';
|
||||
}
|
||||
|
||||
|
||||
if (attribute === 'abstractPriorValue') {
|
||||
return getAbstractPriorValue(imageId);
|
||||
}
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
// Create package logger using loglevel
|
||||
// https://atmospherejs.com/spacejamio/loglevel
|
||||
log = loglevel.createPackageLogger('hangingprotocols', defaultLevel = 'info');
|
||||
@@ -12,7 +12,6 @@ Package.onUse(function(api) {
|
||||
api.use('jquery');
|
||||
api.use('stylus');
|
||||
api.use('random');
|
||||
api.use('practicalmeteor:loglevel');
|
||||
api.use('templating');
|
||||
api.use('natestrauser:select2@4.0.1', 'client');
|
||||
api.use('clinical:router');
|
||||
@@ -22,11 +21,6 @@ Package.onUse(function(api) {
|
||||
// Our custom packages
|
||||
api.use('ohif:viewerbase');
|
||||
|
||||
// This sets the default logging level of the package using the
|
||||
// loglevel package. It can be overridden in the JavaScript
|
||||
// console for debugging purposes
|
||||
api.addFiles('log.js');
|
||||
|
||||
api.addAssets('assets/dots.svg', 'client');
|
||||
|
||||
// Both client & server
|
||||
|
||||
Reference in new issue
Block a user