The main purpose of this legislation is to expand access to the 340B drug discount program for rural emergency hospitals. The 340B program allows certain healthcare providers to purchase medications at reduced prices, helping them to serve low-income patients more effectively. By including rural emergency hospitals in this program, the legislation aims to improve healthcare access in underserved areas. The key provision of this legislation is the amendment to the definition of a "covered entity" under the 340B program.