Answer:
a lot of physicians have a patients allergies entered in their systems and these details are picked up by their program that they use to print perscriptions, and will not let them write a prescription that the patient is allergic to. It is also standard practice to ask a patient for their list of allergies prior to writing a script as no system should ever be considered fool proof and should always have a backup.