Medical expenses

Is the medical deduction based off of amount paid in the year or amount incurred in the year? I have medical expenses exceeding $25,000, that havent been paid, but are awaiting judgement in civil court.