refactered api key code to use http header for get pharmacist.