The purpose of this legislation, known as the Mapping America's Pharmaceutical Supply Act or the MAPS Act, is to enhance the federal government's ability to manage health and national security risks related to essential medicines. It aims to create a systematic approach for identifying critical medications, assessing the risks associated with their supply chains, and monitoring these supply chains using advanced data analytics.