Blood glucose, renal function tests, and electrolyte levels, including calcium and magnesium, should be measured if patients have diffuse cramps of unknown cause, particularly if hyperreflexia is present.