The man is expected in court after he is released from the hospital.