; 38 U.S.C. 1701 note) before first providing care under the laws administered by the Secretary and at any time when those guidelines are modified thereafter. (b) Inclusion of medical history and current medications The Secretary shall implement a process to ensure that, if care of a veteran by a covered health care provider is authorized under the laws administered by the Secretary, the document authorizing such care includes the relevant medical history of the veteran and a list of all medications prescribed to the veteran. (c) Submittal of prescriptions (1) In general Except as provided in paragraph (3), the Secretary shall require, to the maximum extent practicable, each non-Department health care provider to submit prescriptions for opioids— (A) to the Department for prior authorization for the prescribing of a limited amount of opioids under contracts the Department has with retail pharmacies; or (B) directly to a pharmacy of the Department for dispensing of the prescriptions. (2) Responsibility of Department for recording and monitoring In carrying out paragraph (1) and upon the receipt by the Department of the prescription for opioids to veterans under laws administered by the Secretary, the Secretary shall— (A) ensure the Department is responsible for the recording of the prescription in the electronic health record of the veteran; and (B) enable other monitoring of the prescription as outlined in the Opioid Safety Initiative of the Department. (3) Exception (A) In general A covered health care provider is not required under paragraph (1)(B) to submit an opioid prescription directly to a pharmacy of the Department if— (i) the health care provider determines that there is an immediate medical need for the prescription, including an urgent or emergent prescription or a prescription dispensed as part of an opioid treatment program that provides office-based medications