Medical expense - service in '24, paid in '25

Took my child to Urgent Care (all is well) in December '24.  Paid the bill in '25.  What year can I deduct the medical expense?