For the purpose of enforcing this chapter, the director, the fire marshal, the superintendent of police and such subordinate officials as may be expressly designated by the above-named county officials shall, upon exhibiting the proper credentials or proof of identity, have the right to enter any building, structure or premises of an institution for the purpose of inspecting all spaces and areas (except the living quarters of staff members of any institution without the consent of the occupant of such living quarters) at any time during business or operating hours and at such other times as may be necessary for the health, safety or welfare of the patients. (Mont. Co. Code 1965, § 89-3; 1972 L.M.C., ch. 16, § 5; 1980 L.M.C., ch. 27, § 1.)