Files
ohif-viewer/Packages/ohif-measurements/client/lib/hangingProtocolCustomizations.js
T
Erik Ziegler ab4d4c9008 Work on refactoring measurements out of Lesion Tracker package
- Removed AssociatedStudies Collection
- Measurement API is generated from configuration files
- Data exchange methods are defined in configuration
2016-11-15 08:21:46 +01:00

19 lines
412 B
JavaScript

getTimepointType = function(study) {
const timepointApi = Template.instance().timepointApi;
if (!timepointApi) {
return;
}
const timepoint = timepointApi.study(study.studyInstanceUid)[0];
if (!timepoint) {
return;
}
return timepoint.timepointType;
};
const HP = HP || false;
if (HP) {
HP.addCustomAttribute('timepointType', 'Timepoint Type', getTimepointType);
}