- Removed AssociatedStudies Collection - Measurement API is generated from configuration files - Data exchange methods are defined in configuration
19 lines
412 B
JavaScript
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);
|
|
} |