A man is lying in a hospital bed wearing a virtual reality headset, which appears to be helping to alleviate his pain.