Self empolyed medical student -can I deduct rotation expenses?

I am a medical student and during 4th year I had to travel from city to city ( out of state too) for rotations at different hospitals. I had car rental, hotel/airbnb, flight expenses and since these rotations are not optional ( required for gradutation) I wonder if ANY of these expenses qualify as education expenses.

My income is received as 1099-NEC & W2 (school library job).