Solemn exorcisms, according to the Canon law of the Church, can be exercised only by an ordained priest (or higher prelate), with the express permission of the local bishop, and only after a careful medical examination to exclude the possibility of mental illness.