Objectives-To compare outcome and costs of general practitioners, senior house officers, and registrars treating patients who attended accident and emergency department with problems assessed at triage as being of primary care type. Design-Prospective intervention study which was later costed. Setting-inner city accident and emergency department in south east London. Subjects-4631 patients presenting with primary care problems: 1702 were seen by general practitioners, 2382 by senior house officers, and 557 by registrars. Main outcome measures-Satisfaction and outcome assessed in subsample of 565 patients 7-10 days after hospital attendance and aggregate costs of hospital care provided. Results-Most patients expressed high levels of satisfaction with clinical assessment (430/562 (77%)), treatment (418/557 (75%)), and consulting doctor's manner (434/492 (88%)). Patients' reported outcome and use of general practice in 7-10 days after attendance were similar: 206/241 (85%), 224/263 (85%), and 52/59 (88%) of those seen by general practitioners, senior house officers, and registrars respectively were fully recovered or improving chi(2)=0.35, P=0.830), while 48/240 (20%), 48/268 (18%), and 12/57 (21%) respectively consulted a general practitioner or practice nurse (chi(2)=0.51, P=0.774). Excluding costs of admissions, the average costs per case were pound 19.30, pound 17.97, and pound 11.70 for senior house officers, registrars, and general practitioners respectively. With cost of admissions included, these costs were pound 58.25, pound 44.68, and pound 32.30 respectively. Conclusion-Management of patients with primary care needs in accident and emergency department by general practitioners reduced costs with no apparent detrimental effect on outcome. These results support new role for general practitioners.