According to IRS Publication 502 regarding Medical and dental expenses, you may be able to deduct the cost of medical equipment and modifications that you make to your home. The below excerpt can be found on page 6 under Capital Expenses.
“You can include in medical expenses amounts you pay for special equipment installed in a home, or for improvements, if their main purpose is medical care for you, your spouse, or your dependent.