No alcoholic beverage, marijuana, or weapon, as defined in subdivision 22-1-2(10), may be possessed by any inmate of a state correctional facility. No prescription or nonprescription drug, controlled substance as defined by chapter 34-20B, or any article of indulgence may be possessed by any inmate of a state correctional facility except by order of a physician, physician assistant, or licensed nurse practitioner, as defined in chapters 36-4, 36-4A, and 36-9A, respectively. Such order must be in writing and for a definite period. Any violation of this section constitutes Possession of the following articles by an inmate of a state correctional facility, unless directly issued by the Department of Corrections and used in accordance with the department's policies and procedures, is a felony pursuant to the following schedule: (1) Possession of any alcoholic beverage or marijuana is a Class 6 felony; (2) Possession of an article of indulgence is a Class 6 felony; (3) Possession of a cell phone or any other electronic communication device prohibited by Department of Corrections policy is a Class 4 felony; (4) Possession of any prescription or nonprescription drug or controlled substance, as defined by chapter 34-20B, except by written order for a definite period from a physician, physician assistant, or certified nurse practitioner, as defined in chapters 36-4, 36-4A, and 36-9A, is a Class 4 felony; and (3)(5) Possession of a dangerous weapon as defined in subdivision 22-1-2(10) by § 22- 1-2 is a Class 2 felony.