To dream that you or someone else is undergoing surgery suggests that some aspect of your life - a person, issue, or situation - needs to be removed. It is influencing you negatively. Perhaps someone in power is trying to persuade you to do something you are uncomfortable with. Alternatively, you are feeling the influence of some authority figure.
This dream may also be incorporating your anxieties regarding a scheduled operation or your general well-being.