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
This commit is contained in:
1 parent
c511edd419
commit
ab4d4c9008
537 files changed
+5122
-3545
No files matched your search
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* A global Blaze UI helper to format a DICOM Time for display using the Moment library
|
||||
*/
|
||||
UI.registerHelper('formatTM', function(context, options) {
|
||||
if (!context) {
|
||||
return;
|
||||
}
|
||||
|
||||
// DICOM Time is stored as HHmmss.SSS, where:
|
||||
// HH 24 hour time:
|
||||
// m mm 0..59 Minutes
|
||||
// s ss 0..59 Seconds
|
||||
// S SS SSS 0..999 Fractional seconds
|
||||
//
|
||||
// See MomentJS: http://momentjs.com/docs/#/parsing/string-format/
|
||||
var dateTime = moment(context, 'HHmmss.SSS');
|
||||
|
||||
var format = "HH:mm:ss";
|
||||
if (options && options.format) {
|
||||
format = options.format;
|
||||
}
|
||||
|
||||
return dateTime.format(format);
|
||||
});
|
||||
Reference in new issue
Block a user