13 lines
332 B
JavaScript
13 lines
332 B
JavaScript
/**
|
|
* Returns timepoint object given a specified imageId
|
|
*
|
|
* @param imageId
|
|
* @returns {*|{}} Timepoint object
|
|
*/
|
|
getTimepointObject = function(imageId) {
|
|
var study = cornerstoneTools.metaData.get('study', imageId);
|
|
if (!study) {
|
|
return;
|
|
}
|
|
return Timepoints.findOne({timepointName: study.studyDate});
|
|
}; |