How do hospitals prepare for mass casualties?

How do hospitals prepare for mass casualties?