This is a very nasty area. Apart from countermeasures, psychological and phsiological conditions/treatments can alter autonomic reactions. In reviewing recent literature, there are conditions (everything else being the same) which enhance the polygraph response as well as those that interfere with a "valid" response. The conditions/treatments of most interest are those that generate false-positives ("failing" an otherwise innocent person) and false-negatives (possibly allowing a terrorist through).
If the polygraph is only being used as an "excuse" to frighten weak minds into a confession, then the authorities don't really care about any medical conditions because accuracy doesn't count at all. When an attempt is being made to use the polygraph "responsibly" as an investigative tool - treatments and illness matter, for example:
"Sec. 709.5 Waiver of polygraph examination requirements., (a) General. The CI-scope polygraph examination requirement under Sec. 709.3 of this part does not apply to:
...
(2) Any individual who is being treated for a medical or
psychological condition that, based upon consultation with the individual and appropriate medical personnel, the Secretary or the Director of the Office of Counterintelligence determines would preclude the individual from being tested;...",Federal Register: January 7, 2005 (Volume 70, Number 5) Proposed Rules, Page 1383-1396,DEPARTMENT OF ENERGY,10 CFR Parts 709 and 710,...Counterintelligence Evaluation Regulations,
http://www.fas.org/sgp/news/2005/01/doe010705.html "3.4 Polygraph Examinee
3.4.1 The examiner shall make reasonable efforts to determine that the examinee is a fit subject for testing, where allowed by law. Basic inquiries into the medical and psychological condition of the examinee as well as any recent drug use should be made where allowed by law. Mental, physical or medical conditions of the examinee that should be observable to, or that should be reasonably known by the examiner, should also be evaluation prior to testing. No test should be conducted where valid results could not be reasonably foreseen.
3.4.2 During the pretest interview, where allowed by law, the examiner will specifically inquire of the person to be examined whether or not he or she is currently receiving or has in the past received medical or psychiatric treatment or consultation.
3.4.3 If an examiner has a reasonable doubt concerning the ability of an examinee to safely undergo an examination, a release from the examinee and his or her physician shall be obtained.", American Polygraph Association, Standards of Practice,
http://www.polygraph.org/standards.htm “In those instances when the examinee is undergoing treatment by a medical or mental health professional, coordination with the attending medical or mental health professional is essential to evaluate the examinee’s overall suitability and to obtain medical clearance to conduct PDD testing. This form of coordination is also necessary to ensure that PDD testing does not interfere with ongoing treatment efforts and to prevent PDD testing of an otherwise unsuitable examinee.
Psychological Suitability: Polygraph testing of an examinee receiving current, on-going treatment and/or prescribed medication by mental health professionals (psychiatrist, psychologist, mental health counselors or other mental health professionals) shall be discontinued or postponed until the examinee’s attending mental health professional declares the individual suitable for PDD testing. Verbal authorization from the attending mental health professional is permitted, but should be the exception and not the rule. In instances where the examinee cites mental health related illnesses associated with severe depression or other severe illnesses, written authorization from the attending mental health professional is mandatory. Any questions concerning an examinee’s psychological suitability for PDD testing must be addressed with the attending mental health professional and/or a CRC supervisor prior to PDD testing.
Physiological Suitability: Polygraph testing of an examinee being treated and/or prescribed medication by medical professionals (doctors, physician assistants, nurses, or other medical specialist) for significant injuries or illnesses shall be postponed until the examinee’s attending medical professional declares the individual suitable for PDD testing. Verbal authorization from the attending medical health professional is permitted, but should be the exception and not the rule. In instances where the examinee cites severe medical illnesses, written authorization from the attending medical professional is mandatory. Any questions concerning an examinee’s physiological suitability for PDD testing must be addressed with the attending medical professional and/or a CRC supervisor prior to PDD testing.”, FORENSIC PSYCHOPHYSIOLOGICAL DETECTION OF DECEPTION(PDD) POLICY AND PROCEDURE MANUAL, Section 8.12 Examinee Suitability, UNITED STATES ARMY CRIMINAL INVESTIGATION COMMAND, Effective 21 February 2005
"Other Psychopathology
Guilty psychopaths may escape detection because they are not concerned enough about a misdeed to create interpretable physiological responses. Individuals with other forms of psychopathology may escape detection or be classified as false positives for other reasons (e.g., emotional instability, delusional thinking). The one study that has investigated this possibility (74) found, in fact, that innocent neurotics and particularly psychotics were likely to be identified as deceptive. There were no guilty subjects in this “real crime" analog study.",Scientific Validity of Polygraph Testing: A Research Review and Evaluation - A Technical Memorandum, U.S. Congress, Office of Technology Assessment , Washington D.C., OTA-TM-H-15, November 1983 – Chapter 6 Factors Affecting Polygraph Examination Validity - Other Psychopathology
etc...