Towards a theory of continuity of care