You can deduct the cost of the Hero pill dispenser and membership fees if you are using it to treat a diagnosed illness. The IRS allows deductions for diagnostic devices, including those used for medical treatment. Talk to your tax accountant for details.