Pneumonia is diagnosed by the doctor with thorough history taking and physical examination. Sometimes, there may be a need to perform a chest x-ray and/or blood tests.