A veteran badly injured by a roadside bomb in Afghanistan is recovering from the first-ever transplant of a penis and scrotum, doctors said Monday.

The soldier lost both legs above the knee, his penis and the area around it when the IED — improvised explosive device — blasted him.

“He is expected to be discharged from the hospital this week, and we are optimistic that he will regain near-normal urinary and sexual functions following full recovery,” Dr. Andrew Lee, the chairman of the Department of Plastic and Reconstructive Surgery at Johns Hopkins University, told reporters in a telephone briefing.