It depends. If this was elective surgery, then none of it is deductible.
If the surgery was medically necessary then yes, you can deduct these expenses.
Flying would not be mileage, it would just be a travel expense entered on the "additional medical expenses" boxes at the end of the medical section of TurboTax.
"You can include in medical expenses amounts you pay for transportation to another city if the trip is primarily for, and essential to, receiving medical services. You may be able to include up to $50 for each night for each person. You can include lodging for a person traveling with the person receiving the medical care. For example, if a parent is traveling with a sick child, up to $100 per night can be included as a medical expense for lodging. Meals aren't included. See Lodging , earlier."
https://www.irs.gov/publications/p502#en_US_2018_publink1000179026
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"