Welcome to healthcare magic
Diapers can cause diaper dermatitis. But your description of red spots with white heads sounds like satellite pustules of candidiasis
, which is a fungal infection
. Treatment with antifungal cream like ketoconazole
2% twice a day and fluconazole
tablets will definitely help.
Even an irritant contact dermatitis
like diaper dermatitis can cause such a rash but your doctor has suspected candidiasis and it is better to treat for that.
Precautions which can be followed are changing the diaper once it is soaked. Faeces and urine are irritants and the longer it touches the skin the more chance of diaper rash. Do not rub and clean. Once diaper is removed skin has to be cleaned with wet cloth and then mop dry. You may apply coconut oil or petroleum jelly after cleaning so that barrier function of skin is maintained.
Hope this helped.