Fix bugs preventing OHIF Viewer usage
This commit is contained in:
parent
1b3280c04b
commit
95ec18f279
@ -1,4 +1,5 @@
|
|||||||
<template name="viewer">
|
<template name="viewer">
|
||||||
|
{{#if Template.subscriptionsReady}}
|
||||||
<div id="viewer">
|
<div id="viewer">
|
||||||
{{> studyBrowser }}
|
{{> studyBrowser }}
|
||||||
<div class='viewerMain'>
|
<div class='viewerMain'>
|
||||||
@ -6,4 +7,7 @@
|
|||||||
{{ > imageViewerViewports }}
|
{{ > imageViewerViewports }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{{else}}
|
||||||
|
{{>loadingText}}
|
||||||
|
{{/if}}
|
||||||
</template>
|
</template>
|
||||||
@ -68,7 +68,8 @@ Template.viewer.onCreated(function() {
|
|||||||
Session.set('activeViewport', ViewerData[contentId].activeViewport || 0);
|
Session.set('activeViewport', ViewerData[contentId].activeViewport || 0);
|
||||||
|
|
||||||
// Update the ViewerStudies collection with the loaded studies
|
// Update the ViewerStudies collection with the loaded studies
|
||||||
ViewerStudies = new Meteor.Collection(null);
|
ViewerStudies.remove({});
|
||||||
|
|
||||||
this.data.studies.forEach(function(study) {
|
this.data.studies.forEach(function(study) {
|
||||||
study.selected = true;
|
study.selected = true;
|
||||||
ViewerStudies.insert(study);
|
ViewerStudies.insert(study);
|
||||||
|
|||||||
@ -24,6 +24,7 @@ getStudyMetadata = function(studyInstanceUid, doneCallback, failCallback) {
|
|||||||
// If no study metadata is in the cache variable, we need to retrieve it from
|
// If no study metadata is in the cache variable, we need to retrieve it from
|
||||||
// the server with a call.
|
// the server with a call.
|
||||||
Meteor.call('GetStudyMetadata', studyInstanceUid, function(error, study) {
|
Meteor.call('GetStudyMetadata', studyInstanceUid, function(error, study) {
|
||||||
|
if (Meteor.user()) {
|
||||||
var hipaaEvent = {
|
var hipaaEvent = {
|
||||||
eventType: "viewed",
|
eventType: "viewed",
|
||||||
userId: Meteor.userId(),
|
userId: Meteor.userId(),
|
||||||
@ -34,6 +35,7 @@ getStudyMetadata = function(studyInstanceUid, doneCallback, failCallback) {
|
|||||||
patientName: study.patientName
|
patientName: study.patientName
|
||||||
};
|
};
|
||||||
HipaaLogger.logEvent(hipaaEvent);
|
HipaaLogger.logEvent(hipaaEvent);
|
||||||
|
}
|
||||||
|
|
||||||
log.info('worklistStudy getStudyMetadata: ' + studyInstanceUid);
|
log.info('worklistStudy getStudyMetadata: ' + studyInstanceUid);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user