Cleanup around viewerbase and worklist
This commit is contained in:
1 parent
0365e9963d
commit
5363880e40
19 files changed
+132
-115
No files matched your search
@@ -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;
|
||||
});
|
||||
Reference in new issue
Block a user