deductions for children's medical expenses after divorce

Divorced parents each paid 50% of children's medical expenses.  One parent makes too much money to claim any medical deductions so will not claim those expenses on return.  Can the other parent, with income small enough that they do benefit from medical deductions, claim all of the medical expenses, or only the 50% paid by that parent?   Does it matter which parent claims the child as a dependent?