A board shall not take an action pursuant to the Uniform Licensing Act against a license holder or license applicant based solely on a licensee’s or license applicant’s:

A.     provision of, authorization of, recommendation of, assistance in, referral for or other participation in a protected health care activity, as defined in the Reproductive and Gender-Affirming Health Care Protection Act N.M. Stat. Ann. § 24-35-1 to 24-35-8, in accordance with the laws of New Mexico, including the medical standards of care, whether the protected health care activity is provided to a resident of this state or to a resident of another state; or

B.     actual or alleged violation of another state’s laws prohibiting the provision of, authorization of, recommendation of, assistance in, referral for or other participation in a protected health care activity, as defined in the Reproductive and Gender-Affirming Health Care Protection Act, if the protected health care activity provided would have been in accordance with the laws of New Mexico, including the medical standards of care.