Arterial blood gas analysis or pulse oximetry can be used to determine the degree of hypoxemia and monitor the response to therapy.