It is neat that this is something people are trying, but this strikes me as a technical solution to a political problem. Such a thing probably can't scale on account of that.
The real solution is to reform how drugs are priced and healthcare is provided. In the UK we did this over 70 years ago and the most you should pay for a medication is £12/month (committed to a year), £11 per prescription, or nothing (if you're poor).
This is possible because of the politics and governance of healthcare in the UK: the tech has been around for half a century.