As part of your diagnosis, you and your doctor may discuss surgery as a way to correct your condition. This decision is based on looking carefully at your health history. It is also based on the results of tests you have. These include blood tests, X-rays, MRI, CT scan, ultrasound, and electrocardiogram. The tests may also include other lab tests done to make the diagnosis.
Two broad type of surgery exist, depending on your diagnosis.
An elective surgery doesn't always mean it is optional. It means that the surgery can be scheduled in advance. It may be a surgery you choose to have for a better quality of life, but not for a life-threatening condition. But in some cases it may be for a serious condition such as cancer. Examples of elective surgery include removing a mole or wart, and having kidney stones removed. It may also be done if other forms of treatment are not working.
This type of surgery is done because of an urgent medical condition. The condition may even be life threatening. Examples are acute appendicitis and trauma.