When my old workplace had someone who had advanced cancer, he was in and out of the workplace for about a year, and then he went on medical leave and it was widely understood that he was dying, and he was keeping the job as a source of insurance. He came to visit every now and then, but he was focused on spending time with his family and resting during the time he had left.
no subject