2015-11-16 17:49:35 +01:00
|
|
|
/**
|
2016-01-13 16:17:32 +01:00
|
|
|
* Formats a patient name for display purposes
|
2015-11-16 17:49:35 +01:00
|
|
|
*/
|
2016-01-13 16:17:32 +01:00
|
|
|
formatPN = function(context) {
|
2015-10-13 14:14:50 +02:00
|
|
|
if (!context) {
|
2016-01-13 16:17:32 +01:00
|
|
|
return;
|
2015-10-13 14:14:50 +02:00
|
|
|
}
|
2015-11-16 17:49:35 +01:00
|
|
|
return context.replace('^', ', ');
|
2016-01-13 16:17:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* A global Blaze UI helper to format a patient name for display purposes
|
|
|
|
|
*/
|
|
|
|
|
UI.registerHelper('formatPN', formatPN);
|