I hurt my rib, only bruised, when can I start doing cross fit again? It's still hurting pretty bad and I'm on pain meds to sleep.

Pain best indicator. Probably small fracture of rib. The best indicator to restart exercise is when you don't have pain. Don't be OCD about working out. You will not increase your chanches of a MI if you don't work out for 3-4 wks.