Diagnosis typically involves a combination of medical history, physical examination, and diagnostic tests. Tests may include chest X-rays, blood tests, sputum cultures, and bronchoscopy. Specific tests like PCR (Polymerase Chain Reaction) may be used to identify viral infections.