Cleanup around viewerbase and worklist

This commit is contained in:
Erik Ziegler committed 2015-11-06 15:29:09 +01:00
1 parent 0365e9963d
commit 5363880e40
19 files changed
+132 -115

No files matched your search

+3 -16
View File
@@ -1,20 +1,7 @@
UI.registerHelper('formatDA', function (context, format, options) {
UI.registerHelper('formatPN', function (context, format, options) {
if (!context) {
return undefined;
}
var pn = context;
var str = '';
if(pn.prefix) {
str = pn.prefix + ' ';
}
str += (pn.familyName || '') + ', ';
str += (pn.givenName || '');
if(pn.middleName) {
str += ' ' + pn.middleName;
}
if(pn.suffix) {
str += ' ' + pn.suffix;
}
return str;
var patientName = context.replace('^', ', ');
return patientName;
});