The 44-year-old actor was travelling from Ahmedabad to Jaipur by road when he complained of fever and decided to visit a doctor in Jaipur at around 3am.
"Aamir was at a running temperature suffering from viral and had a sore throat. He stayed for around half an hour, it was a surprise but my wife and I were very happy to see him. We discussed about his movies while sipping tea, " Dr Punit Saxena, Associate Professor at the Sawai Man Singh Hospital told.
Medicine was administered to Aamir and Saxena said, "We tried to wake up our kids to meet the actor but they did not believe us."
Before his departure, Aamir left a letter of appreciation for the doctor and a gold ring for treating him.
"I feel sorry for disturbing you in the middle of the night. Thanks for your help and kindly accept the ring as a token of appreciation and friendship, " Aamir wrote in the letter.
The doctor advised Aamir to rest for three days but he left to an undisclosed location. However, the actor invited the doctor and his family for the premier of '3 Idiots' in Mumbai.
Aamir, is on a seven city tour to promote the film and has already made visits to Varanasi, Kolkata and Palanpur in Gujarat.