STORY: Officers raced to the more than 100-year-old Ruijin Hospital on Saturday morning after receiving calls about an attack, police said.
Videos on social media showed chaos as visitors clambered under turnstiles to get out of the hospital while doctors were seen running out with their patients, some in wheelchairs and one on a mobile bed.
Shanghai resident Anna Jiao said she was shocked and that the hospital should do security checks to protect doctors and nurses.
Police found a man holding a crowd hostage on the seventh floor of the outpatient department.
According to local police, officers opened fire and subdued him.
A man was arrested on Monday (July 5) after going on a stabbing spree in the city's downtown Jingan district.