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