PWV-1: Making timepoint URL load the viewer with the studies

This commit is contained in:
Bruno Alves de Faria authored and Erik Ziegler committed 2016-11-15 08:24:30 +01:00
1 parent c84d0c21f3
commit bbf00cce80
4 files changed
+5 -7

No files matched your search

@@ -22,7 +22,7 @@ class TimepointApi {
} }
} }
retrieveTimepoints() { retrieveTimepoints(filter) {
this.timepoints = new Mongo.Collection(null); this.timepoints = new Mongo.Collection(null);
this.timepoints.attachSchema(TimepointSchema); this.timepoints.attachSchema(TimepointSchema);
this.timepoints._debugName = 'Timepoints'; this.timepoints._debugName = 'Timepoints';
@@ -33,7 +33,7 @@ class TimepointApi {
} }
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
retrievalFn().then(timepointData => { retrievalFn(filter).then(timepointData => {
OHIF.log.info('Timepoint data retrieval'); OHIF.log.info('Timepoint data retrieval');
OHIF.log.info(timepointData); OHIF.log.info(timepointData);
_.each(timepointData, timepoint => { _.each(timepointData, timepoint => {
@@ -7,8 +7,7 @@ export const schema = new SimpleSchema({
}, },
timepointId: { timepointId: {
type: String, type: String,
label: 'Timepoint ID', label: 'Timepoint ID'
regEx: SimpleSchema.RegEx.Id
}, },
timepointType: { timepointType: {
type: String, type: String,
@@ -63,7 +63,7 @@ getStudyMetadata = function(studyInstanceUid, doneCallback, failCallback) {
}); });
if (!studylistStudy) { if (!studylistStudy) {
return; // return;
} }
$.extend(study, studylistStudy); $.extend(study, studylistStudy);
@@ -14,8 +14,7 @@ const ReviewingUserSchema = new SimpleSchema({
export const schema = new SimpleSchema({ export const schema = new SimpleSchema({
timepointId: { timepointId: {
type: String, type: String,
label: 'Timepoint ID', label: 'Timepoint ID'
regEx: SimpleSchema.RegEx.Id
}, },
reviewers: { reviewers: {
type: [ ReviewingUserSchema ], type: [ ReviewingUserSchema ],