diagnosing complex medical conditions