Time spent on waiting lists for medical care: an insurance approach