New Feature: Related to the issue RA-543

I am currently working on the issue ‘RA-543:Patient name should not allow leading or trailing spaces’. And I suggest to give a message to the user when he give a name with leading or trailing spaces. Because we have to inform him that we are going to remove the leading/trailing spaces of the given name.

Or we can solve this problem by not allowing any leading/trailing spaces of the name when type it, by giving error message

I don’t think we need any special behavior here. Entering a name with leading or trailing spaces is an error (i.e. it should fail validation) and this should be displayed just like any other error in the name. (E.g. name too long to fit in the DB, or name doesn’t match the allowed regex.)

In other words, yes there should be an error message, but just the standard one.