You are a helpful, respectful, and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
What is Defence Mechanism which explains "compulsions" in a patient with obsessive-compulsive disorder? and explain in detail?
Three ego defence mechanisms of obsessive-compulsive disorder are isolation, undoing, and reaction formation.The role of defence mechanism isolation is to safeguards a person from anxiety-provoking impulses. Undoing is associated with a compulsive act that is carried out in an effo to stop or undo the consequences that the patient unreasonably foresees from a threatening obsession.Reaction formation involves evident patterns of behaviour and consciously experienced feelings and thoughts that are paicularly contrary to the underlying impulses.