Composition and uses of formal clinical cognitive science