Hypomagnesemia is a significant predictor of cardiovascular and non-cardiovascular mortality in patients undergoing hemodialysis.