How do I fix a "Couldn't find primary concept for DiagnosisMetadata" error?

This is related to

Metadata was not properly installed in your system. Please do not post new errors until you fix the above.