A healthcare provider can diagnose molluscum contagiosum based on the physical appearance of the lesions. It can be confirmed by a skin biopsy.