Stop throwing errors when no study data is available, log issue instead.

This commit is contained in:
Erik Ziegler 2017-06-13 14:20:13 +02:00
parent 319f030f32
commit 5cec053b8d
2 changed files with 2 additions and 3 deletions

View File

@ -30,7 +30,7 @@ Template.studyTimepointBrowser.onCreated(() => {
return timepoint.studyInstanceUids.map(studyInstanceUid => {
const query = {
patientId: timepoint.patientId,
studyInstanceUid: studyInstanceUid
studyInstanceUid
};
const loadedStudy = OHIF.viewer.Studies.findBy(query);
@ -40,7 +40,7 @@ Template.studyTimepointBrowser.onCreated(() => {
const notYetLoaded = OHIF.studylist.collections.Studies.findOne(query);
if (!notYetLoaded) {
throw new OHIFError(`No study data available for Study: ${studyInstanceUid}`);
OHIF.log.info(`No study data available for Study: ${studyInstanceUid}`);
}
return notYetLoaded;

View File

@ -121,7 +121,6 @@ Router.route(Settings.uri.replace(OHIF.utils.absoluteUrl(), ''), function() {
// Use Node's HTTP API to send a request to the PACS
const proxyRequest = requester(options, proxyResponse => {
console.log(JSON.stringify(proxyResponse, null, 2));
// When we receive data from the PACS, stream it as the
// response to the original request.
// console.log(`Got response: ${proxyResponse.statusCode}`);