If medical bills are paid with a joint checking account, who claims the expenses for a deduction?

I am listed on the account as a co-owner with my mother. The medical bills were for her nursing home and hospital expenses. She had no income. Can I claim her as a dependent and deduct her medical expenses since I am a co-owner on the account that was used to pay them?