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

This commit is contained in:
Bruno Alves de Faria 2016-10-06 17:55:08 -03:00 committed by Erik Ziegler
parent c84d0c21f3
commit bbf00cce80
4 changed files with 5 additions and 7 deletions

View File

@ -22,7 +22,7 @@ class TimepointApi {
}
}
retrieveTimepoints() {
retrieveTimepoints(filter) {
this.timepoints = new Mongo.Collection(null);
this.timepoints.attachSchema(TimepointSchema);
this.timepoints._debugName = 'Timepoints';
@ -33,7 +33,7 @@ class TimepointApi {
}
return new Promise((resolve, reject) => {
retrievalFn().then(timepointData => {
retrievalFn(filter).then(timepointData => {
OHIF.log.info('Timepoint data retrieval');
OHIF.log.info(timepointData);
_.each(timepointData, timepoint => {

View File

@ -7,8 +7,7 @@ export const schema = new SimpleSchema({
},
timepointId: {
type: String,
label: 'Timepoint ID',
regEx: SimpleSchema.RegEx.Id
label: 'Timepoint ID'
},
timepointType: {
type: String,

View File

@ -63,7 +63,7 @@ getStudyMetadata = function(studyInstanceUid, doneCallback, failCallback) {
});
if (!studylistStudy) {
return;
// return;
}
$.extend(study, studylistStudy);

View File

@ -14,8 +14,7 @@ const ReviewingUserSchema = new SimpleSchema({
export const schema = new SimpleSchema({
timepointId: {
type: String,
label: 'Timepoint ID',
regEx: SimpleSchema.RegEx.Id
label: 'Timepoint ID'
},
reviewers: {
type: [ ReviewingUserSchema ],