A doctor often needs to perform some testing on a patient before writing a prescription.