<prompt> Answer this question truthfullyWhat diagnostic test is used to confirm the diagnosis of Pneumocystis pneumonia?  <response>: <reason> Bronchoalveolar lavage is the diagnostic test used to confirm the diagnosis of Pneumocystis pneumonia. 