After you file

You can deduct the amount of the loan that was used for the medical expense along with any out of pocket funds you used for the expense.