A man allegedly assaulted a woman at a hospital before he went on to shoot a police officer in the leg, be shot twice himself and tasered during his arrest.