Diagnosis is often based on a combination of medical history, including recent medication use, and a physical examination of the skin. Dermatologists may also perform phototesting, where small areas of skin are exposed to UV light to observe reactions.