Providing Timely Access to Medical Care: a Queueing Model