I had a generator installed for medical equipment. Can I deduct the sales tax and can it be deducted under medical?

I'm using oxygen equipment. When we lose power I needed a way to keep this equipment working. I had a generator and transfer switch installed. Can I deduct this generator and transfer switch? Can I deduct the sales tax?