A court balances these rights by ordering only necessary and relevant disclosures and imposing protective measures, such as confidentiality agreements or in-camera reviews.
For example: If a plaintiff claims workplace harassment led to anxiety, the court might allow limited disclosure of treatment records related specifically to the anxiety caused by the alleged harassment, while safeguarding unrelated personal health details.