planning, design, and construction of a shared medical facility, if the amount of the share of the Department of Veterans Affairs for the cost of such project does not exceed the amount specified in section 8104(a)(3)(A) of title 38, may be credited to the Construction, minor projects account of the Department of Veterans Affairs and used for the necessary expenses of constructing such shared medical facility. (2) Any amount transferred to the Secretary of Veterans Affairs by the Secretary of Defense for necessary expenses for the planning, design, and construction of a shared medical facility, if the amount of the share of the Department of Veterans Affairs for the cost of such project exceeds the amount specified in subsection (a)(3)(A) of section 8104 of title 38, may be credited to the Construction, major projects account of the Department of Veterans Affairs and used for the necessary expenses of constructing such shared medical facility if the other requirements of such section have been met with respect to amounts identified for transfer. (3) Any amount transferred to the Secretary of Veterans Affairs by the Secretary of Defense for the purpose of leasing space for a shared medical facility may be credited to accounts of the Department of Veterans Affairs available for such purposes, and may be used for such purposes. (f) Merger of amounts transferred Any amount transferred under this section shall be merged with, and be available for the same purposes and the same time period as, the appropriation or fund to which transferred. (g) Shared medical facility defined (1) In this section, the term shared medical facility means a building or buildings, or a campus, intended to be used by both the Department of Defense and the Department of Veterans Affairs for the provision of health care services, whether under the jurisdiction of the Secretary of Defense or the Secretary of Veterans Affairs, and whether or not located on a military installation or on real property under the jurisdiction of the Secretary of