I expect this has been mentioned earlier in the thread, but if you contact your medmal insurer they may refer you to a lawyer at their expense to help with this. The last thing they want is the patient suing you (and hence them) for a confidentiality breech.
I would also point out that (some) lawyers have a tendency to play on physician fears. One case I was involved with asked me to release to them all notes, emails, etc that had the resident's name in them. They threatened me with fines and jail if I didn't submit them. I contacted my legal dept, and they laughed. Point is, just because a lawyer is asking for something and threatening you with official looking paperwork, it may be bogus. I'm sure our MD/JD friends on this thread aren't like that...
If the court decides that the patient's records need to be part of the proceedings, then they will subpoena your records. The judge (and opposing counsel) should be trying to protect the patient's privacy. That's not your job -- your job s to follow the rules and not get snookered into releasing something that you shouldn't. If the records are admitted into evidence, then you can be asked questions about them and you should answer. But usually you can deflect questions that go beyond the records by claiming you are not an expert in this area, or that if you had such concerns that you would consult an expert in that area.