patient diagnosis and management