Why not do it the same way as the doctor-patient confidentiality that psychologists have? Wikipedia:
There are important exceptions to confidentiality, namely where it conflicts with the clinician’s duty to warn or duty to protect. This includes instances of suicidal behavior or homicidal plans, child abuse, elder abuse and dependent adult abuse.
Hard to argue with that.