fixed issue with doctor visit and patient visit