Deductions & credits

I think that the IRS would argue that the primary purpose of the trip was to go home as opposed to getting treatment but you are free to argue the contrary.