In every legal action, both civil and criminal, no health care provider shall be competent to testify concerning any information obtained about a patient, nor shall he or she be required to produce any documentary evidence obtained about a patient, in the course of the customary professional health care relationship, without the consent of the patient, his or her legal guardian, or, if the patient is deceased, his or her next-of-kin, executor, or administrator. No health care provider shall be allowed in giving testimony to disclose any confidential communication or health care information, properly entrusted to him or her in his or her professional capacity and within the customary health care relationship, and necessary and proper to enable him or her to discharge medical duties in the usual course of practice, without the consent of the patient, his or her legal guardian, or, if the patient is deceased, his or her next-of-kin, executor, or administrator. Notwithstanding the foregoing, a health care provider may be required to testify or produce documentary evidence regarding the medical condition of a patient:
R.I. Gen. Laws § 9-17-24