Praise be to Allah, the Lord of the Worlds; and may His blessings and peace be upon our Prophet Muhammad and upon all his Family and Companions. In case these pills do not have serious effects, then there is no harm in taking them, provided that this is not done by exposing the Awrah (parts of body that must not be exposed) to the doctor. See Fatwa: 82093. Allah knows best.