No professional licensing board may impose a civil penalty or take other disciplinary action against a licensee based solely on the fact that the licensee has performed acts that are necessary or appropriate to carry out the licensee’s role as a designated primary caregiver to a person who is a qualified patient or who possesses a lawful identification card issued pursuant to Section 11362.72. However, this section shall not apply to acts performed by a physician relating to the discussion or recommendation of the medical use of marijuana to a patient. These discussions or recommendations, or both, shall be governed by Section 11362.5.