; and (2) the Under Secretary for Health, in consultation with the director of the facility, submits to the Secretary, and the Secretary transmits to the appropriate congressional committees, written certification that— (A) the director has confidence that the build and configuration of the electronic health record, as proposed to be carried out at such medical facility, are accurate and complete; (B) the staff and infrastructure of such facility are adequately prepared to receive such system; (C) the facility and the Department have taken appropriate action to mitigate any adverse effects of the implementation of such system on health outcomes, coordination of care, wait times, patient safety, or veteran experience at such medical facility; and (D) such system has demonstrated a sustained record of achieving the contractual requirements for outage-free time and incident-free time prior to such certification. 523. Conditional restructuring of Electronic Health Record Modernization Program (a) In general Beginning on the date that is two years after the date of the enactment of this Act, the Secretary of Veterans Affairs may not exercise any option periods or optional tasks or extend any contracts to carry out the Electronic Health Record Modernization Program, unless before the date that is two years after the date of enactment of this Act— (1) the Secretary submits to the appropriate congressional committees a certification, including supporting data, that the metrics described in section 522(a) show overall improvement in each measurement period during the period beginning on the date of the enactment of this Act and ending on the date on which the certification under this paragraph is made