The health care provider prescribed sulfamethoxazole to a patient with a urinary tract infection . The nurse finds that the patient is allergic to sulfa drugs and obtains a prescription for another medication . Which action would the nurse take to prevent this incident from occurring in the future ?

A. Reporting it to the patient
B. Considering it as a common error
C. Writing it in the patient's medical record
D. Reporting it to the hospital administration