Sleep study
I was diagnosed with Sleep Apnea in May as part of the tests we have to do after orientation. I did not know I had it before hand either.
Sleep apnea will not stop you from having surgery. You will have to be on a CPAP machine (unless your sleep apnea is mild, than I'm not sure if CPAP is necessary). Surgery can improve or resolve sleep apnea.
THe high heart rate, I don't know if that's due to the sleep apnea or not, but sleep apnea itself will not prevent you from surgery. I was just approved to go onto the SUrgical phase, and I have severe sleep apnea.
Try not to stress to much and wait and see what the doctor says. I'm sure you'll be fine.
Good luck.