Implementing doctor functionalities