Notwithstanding any other provision of law, a hospital does not breach patient confidentiality by providing the Division of Prisons of the Department of Adult Correction with the medical records of inmates who receive medical treatment at the hospital while in the custody of the Division. A hospital complying with a request from the Division of Prisons of the Department of Adult Correction or its agent for a copy of the medical records of an inmate who received medical services while in custody shall be immune from liability in any civil action for the release of the inmate's medical record.
N.C. Gen. Stat. § 131E-98