A patch test is done by applying a small amount of the chemical product to a patch of skin to check for allergies or adverse reactions before proceeding with the treatment.