(g) A registrant shall immediately refer patients with signs or symptoms of substance abuse to a board-certified pain management physician, an addiction medicine specialist, or a mental health addiction facility as it pertains to drug abuse or addiction unless the registrant is a physician who is board-certified or board-eligible in pain management. Throughout the period of time before receiving the consultant's report, a prescribing registrant shall clearly and completely document medical justification for continued treatment with controlled substances and those steps taken to ensure medically appropriate use of controlled substances by the patient. Upon receipt of the consultant's written report, the prescribing registrant shall incorporate the consultant's recommendations for continuing, modifying, or discontinuing controlled substance therapy. The resulting changes in treatment shall be specifically documented in the patient's medical record. Evidence or behavioral indications of diversion shall be followed by discontinuation of controlled substance therapy, and the patient shall be discharged, and all results of testing and actions taken by the registrant shall be documented in the patient's medical record. This subsection does not apply to a board-eligible or board-certified anesthesiologist, physiatrist, rheumatologist, or neurologist, or to a board-certified physician who has surgical privileges at a hospital or ambulatory surgery center and primarily provides surgical services. This subsection does not apply to a board-eligible or board-certified medical specialist who has also completed a fellowship in pain medicine approved by the Accreditation Council for Graduate Medical Education or the American Osteopathic Association, or who is board eligible or board certified in pain medicine by the American Board of Pain Medicine, the American Board of Interventional Pain Physicians, the American Association of Physician Specialists, or a board approved by the American Board of Medical Specialties or the American Osteopathic Association and performs interventional pain procedures of the type routinely billed using surgical codes. This subsection does not apply to a registrant who prescribes medically necessary controlled substances for a patient during an inpatient stay in a hospital licensed under chapter 395.