Skin

A 40 year old farmer with a history of recurrent attacks of porphyria complains of itching when exposes to the sun and maculopapular rash on sun exposed areas, his symptoms are exaggerated in the summer. The diagnosis is :