Your doctor will ask you questions about your symptoms and health history. They may do tests to determine if your symptoms are caused by an underlying condition. You should expect a physical exam where your doctor will listen to your heart and lungs, check your blood pressure, and examine your testicles and penis. They may also recommend a rectal exam to check your prostate. Additionally, you may need blood or urine tests to rule out other conditions.
Additionally, the physiologic processes involving erections begin at the genetic level. Certain genes become activated at critical times to produce proteins vital to sustaining this pathway. Some researchers have focused on identifying particular genes that place men at risk for ED. At present, these studies are limited to animal models, and little success has been reported to date.  Nevertheless, this research has given rise to many new treatment targets and a better understanding of the entire process.
Finally, gene therapy and stem cell research has widened the frontier of ED treatment proposed as possibility to even reverse ED. Specifically, gene therapy pertains to repairing the cause of ED by restoring defective gene function and/or altering the expression of the mutant gene (32). Most of the available data on gene therapy are in the animal model. However, a phase I clinical trial in men with ED undergoing intracavernous injection with a DNA plasmid carrying the alpha-subunit of the corporal smooth muscle Maxi-K channel showed promise in increased erectile function based on IIEF assessment sustained throughout the 3-month study period (122).
In comparison, 37% of men who had received external radiotherapy as their primary therapy reported the ability to attain functional erections suitable for intercourse, along with 43% of men who had received brachytherapy as primary treatment. Pretreatment sexual health-related quality of life score, age, serum prostate-specific antigen (PSA) level, race or ethnicity, body mass index, and intended treatment details were associated with functional erections 2 years after treatment. 
Fortunately, impotence is usually treatable. A thorough evaluation starting with a history and physical exam is needed to help diagnose the underlying cause. Once the cause of impotence is determined, treatment can be tailored to target that cause and any other contributing factors. Treatments used for impotence may include medications, vacuum devices, surgery, and psychotherapy.
However, studies have shown that fewer then 50% of men with ED and Diabetes respond to oral medicines. Also,fewer than 35% of men with ED after prostate cancer surgery respond to oral medicines. For these men the Internal Penile Implant is currently the best option. The Penile Implant is an approved medical option that has been used for over 30 years. During the course of a 45-minute outpatient procedure, the pump is inserted through a small one-inch opening in the scrotal sac. By squeezing the pump, fluid is pumped, resulting in a long lasting erection. Once inserted, there is no maintenance required for the pump and can remain in place for a lifetime.
Total testosterone levels: Health care professionals should obtain a patient's blood samples for total testosterone levels in the early morning (before 8 a.m.) because the testosterone levels go up and down throughout the day. If you have a low testosterone level, a health care professional should check it again to confirm that it is truly low. In some men, a specialized test measuring the active form of testosterone (free or bioavailable testosterone) may be recommended.
Instead of injecting a medicine, some men insert a suppository of alprostadil into the urethra. A suppository is a solid piece of medicine that you insert into your body where it dissolves. A health care professional will prescribe a prefilled applicator for you to insert the pellet about an inch into your urethra. An erection will begin within 8 to 10 minutes and may last 30 to 60 minutes.
In a prospective study from the Prostate Cancer Prevention Trial database, Thompson et al reported that men presenting with ED had a significantly higher chance of developing a cardiovascular event over a 7-year follow-up period.  The hazard ratio was 1.45, which is in the range of risk associated with current smoking or a family history of MI.
Oral phosphodiesterase type 5 inhibitors (PDE5 inhibitors) unless contraindicated are the recommended first line medical therapy for erectile dysfunction. Currently, there are four different PDE5 inhibitors available. They all work the same way and have essentially the same results. They differ in how long they last in your body and in side effects.
Treatments include psychotherapy, adopting a healthy lifestyle, oral phosphodiesterase type V (PDE5) inhibitors (Viagra, Levitra, Cialis, Stendra, and Staxyn), intraurethral prostaglandin E1 (MUSE), intracavernosal injections (prostaglandin E1 [Caverject, Edex], Bimix and Trimix), vacuum devices, penile prosthesis and vascular surgery, and (in some cases) changes in medications when appropriate.
The book is really full of Very Important sexual related Advise to the men affected by Erectile Dysfunction, ED. The Author really took time and researched fully about the condiion, It has some of the likely causes of the condition so you can use it as a manual to check on yourself , conditions contributind to the ED conditions include Heart disease, Diabetes, Pornography and Masturbation, smoking and substance abuse among others. Likely complications and Treatments for the conditions are well laid i this well written book.
A physical exam checks your total health. Examination focusing on your genitals (penis and testicles) is often done to check for ED. Based on your age and risk factors, the exam may also focus on your heart and blood system: heart, peripheral pulses and blood pressure. Based on your age and family history your doctor may do a rectal exam to check the prostate. These tests are not painful. Most patients do not need a lot of testing before starting treatment.