(a) If a treating physician determines that an inpatient's treatment will be substantially impaired by the denial to that patient of the use of tobacco, the physician may enter a written order permitting the use of tobacco by that patient.
(b) The order shall be consistent with:
(1) The medical facility's medical staff bylaws;
(2) Hospital regulations; and
(3) Local ordinances.