N.Y. Public Health Law § 3343-A
(b) The registry shall include, for each person to whom a prescription for controlled substances has been dispensed, all patient-specific information covering such period of time as is deemed appropriate and feasible by the commissioner, but no less than six months and no more than five years. Such patient-specific information shall be obtained from the prescription information reported by pharmacies pursuant to subdivision four of section thirty-three hundred thirty-three of this article and by practitioners who dispense pursuant to subdivision six of section thirty-three hundred thirty-one of this article, and shall be processed and included in the registry by the department without undue delay. For purposes of this article, "patient-specific information" means information pertaining to individual patients included in the registry, which shall include the following information and such other information as is required by the department in regulation:
2. Duty to consult prescription monitoring program registry; practitioners. (a) Every practitioner shall consult the prescription monitoring program registry prior to prescribing or dispensing any controlled substance listed on schedule II, III or IV of section thirty-three hundred six of this article, for the purpose of reviewing a patient's controlled substance history as set forth in such registry; provided, however, that nothing in this section shall preclude an authorized practitioner, other than a veterinarian, from consulting the registry at his or her option prior to prescribing or dispensing any controlled substance. The duty to consult the registry shall not apply to:
(vii) a practitioner when: