Stop throwing errors when no study data is available, log issue instead.
This commit is contained in:
parent
319f030f32
commit
5cec053b8d
@ -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;
|
||||
|
||||
@ -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}`);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user