The health care provider may need to take a biopsy, a sample of skin. The skin sample is examined by a pathologist, who views it under a microscope.