The issue is not about doctor-patient relationship here. It is about war crimes and about crimes against humanity, which are not contingent on someone being your patient.
The American Psychological Association turned to the CIA for guidance in developing ethics policies on psychologist involvement in interrogation operations.