If it really was prescribed by a doctor, why would you claim you have anything illicit in your car? You should have never consented to the search.