The drug is not as important as the symptom here. It is clear that the patient is suffering from an irregular heart rate, due to the confusion after the gastric surgery. There are many drugs that can cause irregular heart rates, like caffeine, tobacco, alcohol, and even cold and cough medications.