Compulsory reporting of life-saving drug shortages will be introduced after legislation was passed in the Senate on Monday.

Health Minister Greg Hunt believes this mandatory scheme will aid in patient welfare and reduce risk created by events like the Epipen shortage in April this year.

This replaces the voluntary scheme put into place in 2014, which Hunt believes was ineffective.