Does the bed qualify as a medical deduction?

It might. Please check with your doctor. Many doctors prescribe adjustable beds for patients with hiatel hernias, poor circulation, or other health conditions.