Paying attention to one's own personal hygiene and being selective in where you eat and drink will allow you to avoid most common ailments. Standard guidebooks will offer additional tips. Here are some web resources you may find useful.
Lonely Planet Press's page on traveler's health:
http://www.lonelyplanet.com/health/
For additional East Asia-focused information, please visit the US Centers for Disease Control page:
http://www.cdc.gov/travel/eastasia.htm
CDC Food and water safety: http://www.cdc.gov/travel/foodwater.htm
For regularly updated information disease outbreaks in China, visit the World Health Organization's China page:
http://www.who.int/country/chn/en/
The US State Dept. offers a page with Tips for Travelers to China:
http://travel.state.gov/tips_china.html
SARS is a dangerous disease, but this year has not posed a significant threat. There are a handful of confirmed cases in China, but all are linked to a lab error in Beijing. As of this writing, there are no reported cases in the Shanghai area. Still, you may want to read more on the disease:
World Health Organization SARS page:
http://www.who.int/csr/sars/en/
CDC SARS page:
http://www.cdc.gov/ncidod/sars/index.htm