Deductions & credits

Distributions are not a "deduction".  They are excluded from taxable income as long as you use them for qualified medical expenses.  You may continue to withdraw money from your HSA to pay medical expenses even though you are no longer allowed to contribute.