Joshi, whose other works include "Lage Raho Munna Bhai" and "Wazir", was admitted to Hinduja Hospital in Mahim earlier this week reportedly owing to a brain ailment.
"He was admitted to the hospital on April 19. The surgery happened yesterday. He is fine and will be in the hospital for at least another two days," sources said today.
The 46-year-old scriptwriter's close friends from the film industry like Vidhu Vinod Chopra, Sanjay Dutt and Aamir Khan paid him a visit in the hospital yesterday and enquired about his health.