Yeah that was my first thought too. While I kind of get the spirit of it, in practice this is so absurdly dangerous IMO. Even if someone has the best possible intentions, there are so many things that could go wrong with this, especially if you include things like long-term effects that aren't immediately apparent, or interactions with other drugs, especially if you're taking other home-made pills with potentially unknown ingredients. While it can be frustrating to hear about a promising new medicine that won't be available for years, there's a reason why they spend so long testing these things.
IMO the better (but much more difficult) solution is reforming the medical industry so that it's easier for people to see a doctor and actually afford to get medicine. I'm not usually a fan of big government stuff, but medicine is one of those things that just needs to be kept under supervision I think.