What are the exceptions to confidentiality?

when there is harm to self and/or to others... e.g. when a husband makes a threat to kill his wife, and the physician feels that the threat is real, the physician has the right to inform the wife, asking her to leave and to come to the office..or to a safe place..