Quantity and quality of care in primary care services