Electronic syringe with automatic loading