Man learns he's dying by doctor on robot screen