In the case of a patient with intractable pain, a physician may prescribe a dosage in excess of the recommended dosage of a pain relieving agent if he certifies the medical necessity for such excess dosage in the patient's medical record. Any person who prescribes, dispenses or administers an excess dosage in accordance with this section shall not be in violation of the provisions of this title because of such excess dosage, if such excess dosage is prescribed, dispensed or administered in good faith for accepted medicinal or therapeutic purposes.
Nothing in this section shall be construed to grant any person immunity from investigation or disciplinary action based on the prescription, dispensing or administration of an excess dosage in violation of this title.
Va. Code § 54.1-3408.1