People who were poor and those who had Medicaid insurance or no insurance were among those who waited the longest.