Argentinian president Cristina Fernandez de Kirchner is being released from the hospital five days after undergoing surgery for a cranial blood clot.
Doctors at the Fundacion Favaloro hospital said she should be in "strict repose" and should avoid air travel for 30 days.
Ms Fernandez's spokesman Alfredo Scoccimarro said she is recovering well and is "in excellent spirits".
The Argentinian leader underwent surgery on Tuesday to drain a blood clot that was pressing on her brain.
Officials said the condition was caused by a previously unreported blow to the head that she suffered on August 12.
A 30-day rest period as indicated by doctors would keep Ms Fernandez out of the campaign for legislative elections on October 27. Polls indicate that her party could suffer losses.
Later, supporters cheered and chanted slogans as Ms Fernandez's official car drove out of the hospital under heavy guard.