Diagnosis is primarily clinical, based on medical history and physical examination. A skin biopsy can confirm the diagnosis, and additional tests may be used to identify underlying infections or rule out other conditions.