added functional for adding new patient