After acidosis and other causes of intracellular potassium shift (increased beta-adrenergic effect, hyperinsulinemia) have been eliminated, 24-hour urinary potassium and serum magnesium concentrations are measured.