- Take funds from an IRA,
- Use that money to make an HSA contribution,
- Do an HSA distro (reimbursing medical bills pd this year),
- Put the money back in the IRA, within 60 days.
... And, that HSA contribution could be taken as an adjustment to income (1040, line 25), incurring no penalties or additional taxes. ============ I don't think the end result is what you want....
IRA->HSA: Yes, that is a contribution and permitted once in a lifetime. HSA->Cash: Yes, with reimbursable expenses, tax free distribution. however Cash->IRA: CONTRIBUTION, NOT A ROLLOVER.
There is no provision for an HSA->IRA rollover. Once the IRA->HSA rollover completes, the funds are HSA-linked, not IRA-linked. That wipes out the non-direct IRA rollover within 60 days treatment that would be allowed if this were "IRA->cash->IRA."
Now, if what you want is credit for both an HSA and IRA contribution deductions with "no money input," that could succeed but has no 60-day clock. However, if the IRS were to audit, I would bet that they would try to challenge the economic substance of the combined 3 steps even though each step is separately allowable on the grounds that the entire transaction nets to zero (i.e. no outside funds used).