Wow, you really did a number on yourself, there
Glad the elbow and knee will be okay, but ribs are so painful, i'm sorry! Since you get sick on regular pain meds, maybe you can try Tramadol. I take it for my back. It's non-narcotic and okay with my tummy and it really does help.
Anyway, wishing you speedy healing!