Hi there ~
I understand your concerns. The use of cocaine might not affect the test result, however you need to have a regular check up of your endocrinological problems due to usage of substances as they may exaggerate you medical problems. I also believe that you may have a tendency to opioid
dependence considering hte use of percocet. I also believe you need to consult your doctor and let him or her know about the detailed use of substances. You may need treatment and rehabilitation
which will be determined after the consultation.
I hope this helps. Take care and have a lovely day!