PWV-182: Integrating study/timepoint browser changes on PIM Web Viewer

This commit is contained in:
Bruno Alves de Faria committed 2017-10-25 22:20:43 -02:00
1 parent 37137b9331
commit 05b2aa3e15
7 files changed
+6 -10

No files matched your search

@@ -49,6 +49,7 @@ Template.timepointBrowserItem.onCreated(() => {
const text = 'An error has occurred while retrieving studies information';
OHIF.ui.notifications.danger({ text });
OHIF.log.error(error);
instance.summary.set('Failed');
});
updateStudiesData();
@@ -79,7 +79,8 @@ Template.timepointBrowserSidebar.helpers({
const { patientId } = currentTimepoint;
let timepoints = [];
if (instance.timepointViewType.get() === 'key') {
timepoints = timepointApi.key();
const filter = { latestDate: { $lte: currentTimepoint.latestDate } };
timepoints = timepointApi.key(filter);
} else {
timepoints = timepointApi.all({ patientId });
}