Fix bugs preventing OHIF Viewer usage

This commit is contained in:
Erik Ziegler committed 2016-02-17 15:54:24 +01:00
1 parent 1b3280c04b
commit 95ec18f279
3 files changed
+18 -11

No files matched your search

+12 -10
View File
@@ -24,16 +24,18 @@ getStudyMetadata = function(studyInstanceUid, doneCallback, failCallback) {
// If no study metadata is in the cache variable, we need to retrieve it from
// the server with a call.
Meteor.call('GetStudyMetadata', studyInstanceUid, function(error, study) {
var hipaaEvent = {
eventType: "viewed",
userId: Meteor.userId(),
userName: Meteor.user().profile.fullName,
collectionName: "Study",
recordId: studyInstanceUid,
patientId: study.patientId,
patientName: study.patientName
};
HipaaLogger.logEvent(hipaaEvent);
if (Meteor.user()) {
var hipaaEvent = {
eventType: "viewed",
userId: Meteor.userId(),
userName: Meteor.user().profile.fullName,
collectionName: "Study",
recordId: studyInstanceUid,
patientId: study.patientId,
patientName: study.patientName
};
HipaaLogger.logEvent(hipaaEvent);
}
log.info('worklistStudy getStudyMetadata: ' + studyInstanceUid);