Diagnosing oral ulcers