Testing + Removing debugger statements
This commit is contained in:
parent
402d45f40b
commit
014dc7730f
@ -65,8 +65,6 @@ Template.viewer.onCreated(() => {
|
|||||||
instance.autorun(OHIF.lesiontracker.pixelSpacingAutorunCheck);
|
instance.autorun(OHIF.lesiontracker.pixelSpacingAutorunCheck);
|
||||||
|
|
||||||
// @TypeSafeStudies
|
// @TypeSafeStudies
|
||||||
debugger;
|
|
||||||
|
|
||||||
// Update the OHIF.viewer.Studies collection with the loaded studies
|
// Update the OHIF.viewer.Studies collection with the loaded studies
|
||||||
OHIF.viewer.Studies.removeAll();
|
OHIF.viewer.Studies.removeAll();
|
||||||
|
|
||||||
|
|||||||
@ -49,8 +49,6 @@ Template.viewer.onCreated(() => {
|
|||||||
Session.set('activeViewport', ViewerData[contentId].activeViewport || 0);
|
Session.set('activeViewport', ViewerData[contentId].activeViewport || 0);
|
||||||
|
|
||||||
// @TypeSafeStudies
|
// @TypeSafeStudies
|
||||||
debugger;
|
|
||||||
|
|
||||||
// Update the OHIF.viewer.Studies collection with the loaded studies
|
// Update the OHIF.viewer.Studies collection with the loaded studies
|
||||||
OHIF.viewer.Studies.removeAll();
|
OHIF.viewer.Studies.removeAll();
|
||||||
|
|
||||||
|
|||||||
@ -136,7 +136,6 @@ function getActiveViewportImageId() {
|
|||||||
|
|
||||||
function getAbstractPriorValue(imageId) {
|
function getAbstractPriorValue(imageId) {
|
||||||
// @TypeSafeStudies
|
// @TypeSafeStudies
|
||||||
debugger;
|
|
||||||
// @TODO: Implement MIN and MAX methods in TypeSafeCollection
|
// @TODO: Implement MIN and MAX methods in TypeSafeCollection
|
||||||
// const currentStudy = ViewerStudies.findOne({}, {
|
// const currentStudy = ViewerStudies.findOne({}, {
|
||||||
// sort: {
|
// sort: {
|
||||||
|
|||||||
@ -404,7 +404,6 @@ HP.ProtocolEngine = class ProtocolEngine {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// @TypeSafeStudies
|
// @TypeSafeStudies
|
||||||
debugger;
|
|
||||||
|
|
||||||
var alreadyLoaded = OHIF.viewer.Studies.findBy({
|
var alreadyLoaded = OHIF.viewer.Studies.findBy({
|
||||||
studyInstanceUid: priorStudy.studyInstanceUid
|
studyInstanceUid: priorStudy.studyInstanceUid
|
||||||
|
|||||||
@ -32,7 +32,6 @@ function findAndRenderDisplaySet(displaySets, viewportIndex, studyInstanceUid, s
|
|||||||
function renderIntoViewport(viewportIndex, studyInstanceUid, seriesInstanceUid, sopInstanceUid, renderedCallback) {
|
function renderIntoViewport(viewportIndex, studyInstanceUid, seriesInstanceUid, sopInstanceUid, renderedCallback) {
|
||||||
|
|
||||||
// @TypeSafeStudies
|
// @TypeSafeStudies
|
||||||
debugger;
|
|
||||||
|
|
||||||
// First, check if we already have this study loaded
|
// First, check if we already have this study loaded
|
||||||
const alreadyLoadedStudy = OHIF.viewer.Studies.findBy({ studyInstanceUid });
|
const alreadyLoadedStudy = OHIF.viewer.Studies.findBy({ studyInstanceUid });
|
||||||
|
|||||||
@ -4,7 +4,6 @@ import { OHIF } from 'meteor/ohif:core';
|
|||||||
Template.studyBrowser.helpers({
|
Template.studyBrowser.helpers({
|
||||||
studies() {
|
studies() {
|
||||||
// @TypeSafeStudies
|
// @TypeSafeStudies
|
||||||
debugger;
|
|
||||||
return OHIF.viewer.Studies.findAllBy({
|
return OHIF.viewer.Studies.findAllBy({
|
||||||
selected: true
|
selected: true
|
||||||
});
|
});
|
||||||
|
|||||||
@ -586,7 +586,6 @@ Template.imageViewerViewport.onRendered(function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// @TypeSafeStudies
|
// @TypeSafeStudies
|
||||||
debugger;
|
|
||||||
const study = OHIF.viewer.Studies.findBy({ studyInstanceUid });
|
const study = OHIF.viewer.Studies.findBy({ studyInstanceUid });
|
||||||
|
|
||||||
data.study = study;
|
data.study = study;
|
||||||
|
|||||||
@ -29,7 +29,6 @@ Template.studySeriesQuickSwitch.onCreated(() => {
|
|||||||
const viewportData = instance.getViewportData(viewportIndex);
|
const viewportData = instance.getViewportData(viewportIndex);
|
||||||
|
|
||||||
// @TypeSafeStudies
|
// @TypeSafeStudies
|
||||||
debugger;
|
|
||||||
|
|
||||||
if (viewportData) {
|
if (viewportData) {
|
||||||
// Finds the current study and return it
|
// Finds the current study and return it
|
||||||
|
|||||||
@ -41,7 +41,6 @@ Template.studyTimepoint.events({
|
|||||||
let $studiesTarget = instance.$('.studyTimepoint');
|
let $studiesTarget = instance.$('.studyTimepoint');
|
||||||
|
|
||||||
// @TypeSafeStudies
|
// @TypeSafeStudies
|
||||||
debugger;
|
|
||||||
|
|
||||||
if (changed.isQuickSwitch) {
|
if (changed.isQuickSwitch) {
|
||||||
// Changes the current quick switch study
|
// Changes the current quick switch study
|
||||||
|
|||||||
@ -22,7 +22,6 @@ Template.studyTimepointBrowser.onCreated(() => {
|
|||||||
// Get the studies for a specific timepoint
|
// Get the studies for a specific timepoint
|
||||||
instance.getStudies = timepoint => {
|
instance.getStudies = timepoint => {
|
||||||
// @TypeSafeStudies
|
// @TypeSafeStudies
|
||||||
debugger;
|
|
||||||
|
|
||||||
if (!timepoint) {
|
if (!timepoint) {
|
||||||
return OHIF.viewer.Studies.all();
|
return OHIF.viewer.Studies.all();
|
||||||
|
|||||||
@ -99,7 +99,6 @@ Template.studyTimepointStudy.events({
|
|||||||
const isQuickSwitch = !_.isUndefined(instance.data.viewportIndex);
|
const isQuickSwitch = !_.isUndefined(instance.data.viewportIndex);
|
||||||
|
|
||||||
// @TypeSafeStudies
|
// @TypeSafeStudies
|
||||||
debugger;
|
|
||||||
// Check if the study already has series data,
|
// Check if the study already has series data,
|
||||||
// and if not, retrieve it.
|
// and if not, retrieve it.
|
||||||
if (!studyData.seriesList) {
|
if (!studyData.seriesList) {
|
||||||
@ -128,7 +127,6 @@ Template.studyTimepointStudy.events({
|
|||||||
Template.studyTimepointStudy.helpers({
|
Template.studyTimepointStudy.helpers({
|
||||||
isLoading() {
|
isLoading() {
|
||||||
// @TypeSafeStudies
|
// @TypeSafeStudies
|
||||||
debugger;
|
|
||||||
const instance = Template.instance();
|
const instance = Template.instance();
|
||||||
const studyData = instance.data.study;
|
const studyData = instance.data.study;
|
||||||
const alreadyLoaded = OHIF.viewer.Studies.findBy({ studyInstanceUid: studyData.studyInstanceUid });
|
const alreadyLoaded = OHIF.viewer.Studies.findBy({ studyInstanceUid: studyData.studyInstanceUid });
|
||||||
|
|||||||
@ -219,7 +219,6 @@ Template.viewportOverlay.helpers({
|
|||||||
}
|
}
|
||||||
|
|
||||||
// @TypeSafeStudies
|
// @TypeSafeStudies
|
||||||
debugger
|
|
||||||
// Make sure there are more than two studies loaded in the viewer
|
// Make sure there are more than two studies loaded in the viewer
|
||||||
const viewportStudies = OHIF.viewer.Studies.all();
|
const viewportStudies = OHIF.viewer.Studies.all();
|
||||||
if (viewportStudies.length < 2) {
|
if (viewportStudies.length < 2) {
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import { OHIF } from 'meteor/ohif:core';
|
|||||||
|
|
||||||
const getStudyFromStudyInstanceUid = studyInstanceUid => {
|
const getStudyFromStudyInstanceUid = studyInstanceUid => {
|
||||||
// @TypeSafeStudies
|
// @TypeSafeStudies
|
||||||
return Studies.findBy({ studyInstanceUid });
|
return OHIF.viewer.Studies.findBy({ studyInstanceUid });
|
||||||
};
|
};
|
||||||
|
|
||||||
const getNumberOfStacks = studyInstanceUid => {
|
const getNumberOfStacks = studyInstanceUid => {
|
||||||
|
|||||||
@ -44,7 +44,6 @@ Template.viewer.onCreated(() => {
|
|||||||
Session.set('activeViewport', ViewerData[contentId].activeViewport || 0);
|
Session.set('activeViewport', ViewerData[contentId].activeViewport || 0);
|
||||||
|
|
||||||
// @TypeSafeStudies
|
// @TypeSafeStudies
|
||||||
debugger;
|
|
||||||
// Update the OHIF.viewer.Studies collection with the loaded studies
|
// Update the OHIF.viewer.Studies collection with the loaded studies
|
||||||
OHIF.viewer.Studies.removeAll();
|
OHIF.viewer.Studies.removeAll();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user