We should also not forget that practically all ground research in pharmaceuticals is done at public universities and institutions.
Companies should get paid for testing and producing, possibly have a grace period of, say, 5 years of monopoly gains, but the knowledge needs to be public.
Medical progress is not helped by patents and monopolies, but hindered.