Updated code changes for doctor functionality

Updated code changes for doctor functionality