restructured the socket connection with the patient and the doctor.  Just implemented very crude way to set up the socekts to get the functionality working first.  better management system is needed to handle the sockets.