You can deduct only what you paid in 2017.
This, from IRS Publication 502, Medical and Dental Expenses:
Fertility Enhancement
You can include in medical expenses the cost of the following procedures to overcome an inability to have children.
-
Procedures such as in vitro fertilization (including temporary storage of eggs or sperm)
-
Surgery, including an operation to reverse prior surgery that prevented the person operated on from having children.