At the time of reception and at other times the director determines to be appropriate, the department of rehabilitation and correction may examine and test a prisoner for tuberculosis, HIV infection, hepatitis, including but not limited to hepatitis A, B, and C, and other contagious diseases. The department may test and treat involuntarily a prisoner in a state correctional institution who refuses to be tested or treated for tuberculosis, HIV infection, hepatitis, including but not limited to hepatitis A, B, and C, or another contagious disease.