An inmate with a violent past that was involved in a hospital shooting on Wednesday was close to pleading guilty to armed robberies.