There actually is a capitalist solution to the problem of high medicine prices. That is for pharma companies to have to post a price of their patents. And when somebody is willing to pay that price they do get the patent for exactly that price. After that you tax the value of the patents at a somewhat high percentage. This way, if the price of the medicine is to high relative to the posted value the state or perhaps the insurance companies could just buy the patent. On the other hand if the price of the patent is too high relative to the price of the medicine there is no real problem. In the case where both are too high but it is not the case that one is higher than the other the state should just funnel the money that comes in through the tax back to whoever needs to buy the medicine at a the high price.