Diagnosis typically involves a combination of blood gas analysis, serum electrolytes, and lactate levels. Arterial blood gases (ABGs) are particularly useful for determining the pH, partial pressure of carbon dioxide (PaCO2), and bicarbonate levels, which help distinguish between metabolic and respiratory acidosis.