ADHD meds and e2 drug test

If I take adhd meds prescribed by a doctor and had to take a drug test by it let the doctor know I take meds will it still be positive ? What happens in the process I’m kinda confused ?