The secretary shall assure that sources from which services are purchased are: (1) Licensed, or (2) meet applicable accrediting standards, or (3) in the absence of licensing or accrediting standards, meet standards or criteria established by the secretary to assure quality of service: PROVIDED, That this section shall not be deemed to dispense with any licensing or accrediting requirement imposed by any other provision of law, by any county or municipal ordinance, or by rule or regulation of any public agency.