; and (II) to determine whether there is any criminal, national security, or other factor that would render the alien ineligible for cancellation of removal or conditional permanent resident status. (ii) Completion of background checks The security and law enforcement background checks under clause (i) shall be completed, to the satisfaction of the Secretary, before the date on which the Secretary cancels the removal of, or grants conditional resident status to, the alien under this paragraph. (G) Medical examination required (i) In general An alien who applies for cancellation of removal or conditional permanent resident status under this paragraph shall undergo a medical observation and examination in accordance with the policies and procedures prescribed under clause (ii). (ii) Procedures The Secretary, with the concurrence of the Secretary of Health and Human Services, shall prescribe policies and procedures for the nature and timing of medical observations and examinations for aliens applying for cancellation of removal or conditional permanent resident status under this paragraph. (H) Military selective service An alien subject to registration under the Military Selective Service Act ( 50 U.S.C. App. 451 et seq.) who applies for cancellation of removal or conditional permanent resident status under this paragraph shall provide to the Secretary evidence that the alien has registered that Act. (2) Termination of continuous period For purposes of this subsection, any period of continuous residence or continuous physical presence in the United States of an alien who applies for cancellation of removal or conditional permanent resident status under paragraph (1) shall not terminate on the date on which the alien is served a notice to appear under section 239(a). (3) Treatment of certain breaks in presence (A) In general For purposes of paragraph (1)(B)(i), an alien shall be considered to have failed to maintain continuous physical presence in the United States if the alien has remained outside the United States—