Shared care: what mix of generalist and specialist care optimizes patient outcomes?