Apart from diarrhea, oral rehydration solution has been employed in:
Non-diarrhea uses of ORS include:

Maintenance of hydration in postsurgical, postburn and post-trauma patients.
Heat stroke.
During changeover from total parenteral nutrition to enteral nutrition.
Severe vomiting
Burn cases
Heat stroke
Both (2) and (3)