This section does not require or permit, unless otherwise provided, a hospital, health care provider, or other person to administer a test for the express purpose of determining the presence of a contagious or infectious disease, except that testing may be performed if the individual consents and if the requirements of this section are satisfied.