N.Y. Comp. Codes R. & Regs. tit. 10, § 80.85
(b) Controlled substances may be administered to narcotic addicts or habitual users of controlled substances upon the order of a person authorized by law to practice medicine or osteopathy in this State and who possesses a Federal registration by the Drug Enforcement Administration, United States Department of Justice, authorizing him to use controlled substances in connection with his professional practice as follows:
(2) for addicts who are aged and infirm, or severely ill and it is determined that withdrawal of controlled substances would be dangerous to life, provided that:
(3) to relieve acute withdrawal symptoms, except that: