such as with vomiting or diarrhea. Thiazide-like diuretics have been shown to increase the urinary excretion of magnesium; this may result in hypomagnesemia.