To help find the cause of symptoms, the doctor evaluates a person's medical history, smoking history, exposure to environmental and occupational substances, and family history of cancer. The doctor also performs a physical exam and may order a chest x-ray and other tests. If lung cancer is suspected, sputum cytology (the microscopic examination of cells obtained from a deep-cough sample of mucus in the lungs) is a simple test that may be useful in detecting lung cancer. To confirm the presence of lung cancer, the doctor must examine tissue from the lung. A biopsy the removal of a small sample of tissue for examination under a microscope by a pathologist can show whether a person has cancer. A number of procedures may be used to obtain this tissue :
The doctor puts a bronchoscope (a thin, lighted tube) into the mouth or nose and down through the windpipe to look into the breathing passages. Through this tube, the doctor can collect cells or small samples of tissue.
A needle is inserted through the chest into the tumor to remove a sample of tissue.
Using a needle, the doctor removes a sample of the fluid that surrounds the lungs to check for cancer cells.
Surgery to open the chest is sometimes needed to diagnose lung cancer. This procedure is a major operation performed in a hospital.
The above information thankfully comes from the heartspring.net at the following link.