Section 22. Notwithstanding any other general or special law to the contrary, each carrier shall require, as a condition of participation in the carrier's provider network by a physician, dentist, optometrist, podiatrist, nurse practicing in an advance practice nursing role, intern, resident, physician assistant, pharmacist with a collaborative practice agreement, psychologist and licensed independent clinical social worker, that such provider also apply to participate in the medical assistance program administered by the secretary of health and human services in accordance with chapter 118E and Title XIX of the Social Security Act and any federal demonstration or waiver relating to such medical assistance program for the limited purposes of ordering and referring services covered under such program, provided that regulations governing such limited participation are promulgated under said chapter 118E. Any such provider who chooses to participate in such medical assistance program as a provider of services shall be deemed to have fulfilled this requirement.