It shall be an affirmative defense to a charge under subdivision 1, clause (6), that the defendant used the controlled substance according to the terms of a prescription issued for the defendant in accordance with sections 152.11 and 152.12.
Minn. Stat. § 609.2112
1963 c 753 art 1 s 609.21; 1983 c 12 s 1; 1984 c 622 s 24; 1984 c 628 art 3 s 4, 11; 1989 c 290 art 6 s 6; art 10 s 7; 1990 c 602 art 4 s 1; 1996 c 408 art 3 s 14; 1996 c 442 s 33; 2004 c 283 s 13; 2007 c 54 art 3 s 7, 8; 2014 c 180 s 4, 9; 2014 c 186 s 2; 2016 c 109 s 2