Before tanning, go back over your meds and see if any say limit exposure to sunlight. Two of mine do. Then check with your doctor's office and see what they want out of direct sunlight.
I am a California girl, and get enough sunlight for most of me to get well barbecued if I simply forget to put on enough.
That said, using a tanning bed, cook your back ala nude, then the wash cloth "g-string over the surgical wound area for doing the front, and enjoy.