That would be on the extreme side of straight edge. I stay basic, alcohol, drugs, smoking. Prescriptions fall under drugs but only if you abuse them and take them differently than doctors orders. I have had two knee surgeries and took them as prescribed. Its medicine and I shouldn't need to suffer, is the way I look at it. But I wouldn't take them if I had no pain or reason to do so.
Hard liners can also choose to become vegetarian or vegan, no caffeine, no prescription drugs (regardless of the medical issue) and not engage in promiscuous sex. The sex one is the only hard line one I follow but that's just because I think its weird to have sex with someone I barely know.