A doctor has spoken of her devastation after learning why her cancer patient refused life-saving treatment after she died.