Munchausens is when an individual makes themselves ill in order to get attention/surgery/treatment etc.
By proxy means the individual with the problem/condition does it to someone else, usually a child or other vulnerable person who is dependent on them.