Symptom diagnostics based on clinical records