Anointing with oil is indicative of praise. Anointing with something impure is indicative of criticism. If a person dreams that he anointed someone else, that indicates that he is a hypocrite and bootlicker.If the medicine is good, then healing will come with the help of aman from the region where that medicine originates.
For example, aman who was ill with a high temperature said: I dreamt that I ate a kind of Egyptian cucumber. Shaykh Shihaab-ud-Deen said to him: You will be healed at the hands of an Egyptian doctor or one who is of Egyptian origin. And it turned out as he said.Praise be to Allah, the Lord of the Worlds, in all situations.