Deductions & credits

So if my mother had medical bills in 2017 and pays them in 2018 they can be claimed for 2018 legally?