Diagnosing patients with longstanding shoulder joint pain