Improve addPatients algorithm.
Refactoring security.
Refactoring of Spring security implementation.
Refactoring security.