A California hospital has been put on lockdown after a shooting erupted outside.