A physician or a physician assistant, advanced practice registered nurse or certified nurse-midwife working within that person’s scope of practice, when visiting the penitentiary of New Mexico, shall conform to its rules and regulations. The physician or the physician assistant, advanced practice registered nurse or certified nurse-midwife working within that person’s scope of practice shall express no opinion as to the disability of any prisoner except in records kept in the penitentiary.