Mass. Gen. Laws ch. 19A, § 23
(e) No provision of chapter sixty-six A, section one hundred and thirty-five of chapter one hundred and twelve or this section relating to confidential data or confidential communications shall prohibit the department or designated agency from making reports to the district attorney under subsection (b) of section sixteen or subsection (a) of section eighteen, or from providing in such reports to the district attorney any information obtained by the department or a designated agency under section fifteen or section eighteen. No person providing notification or information to a district attorney or testimony in court pursuant to the provisions of this subsection shall be liable in any civil or criminal act by reason of such action.
Nothing herein shall be construed to limit the prosecutorial power of a district attorney.
No provision of chapter sixty-six A, section one hundred and thirty-five of chapter one hundred and twelve, or any other provision of law relating to confidential data or confidential communications shall prohibit the department, by its appropriate employees, or any designated protective services agency, by its appropriate employees from testifying in any judicial proceeding pursuant to subsections (a) and (b) of section twenty, chapter two hundred and one, or chapter two hundred and nine A where the employee has acquired the information which is the subject of his testimony while conducting an assessment in accordance with section eighteen. Such testimony shall not include the identity of the reporter of abuse under section fifteen.