An analysis of emergency department use by patients with minor illness