Diagnosis typically involves a thorough physical examination, focusing on the skin, mucous membranes, and lips. Additional diagnostic tools include pulse oximetry to measure oxygen saturation and arterial blood gas analysis to assess the levels of oxygen and carbon dioxide in the blood. Imaging studies such as chest X-rays and echocardiograms may also be necessary.