The physician orders penicillin for a patient with streptococcal pharyngitis. The nurse administers the drug as ordered, and the patient has an allergic reaction. The nurse checks the medication order sheet and finds that the patient is allergic to penicillin. Legal responsibility for the error is: