A driver who fatally struck an eight-month-old baby in her pushchair outside a hospital has been jailed for four years.