Hi Mark..
I think you have hurt your rib and healing will take some time and you need to give rest to your bones for around 3 months completely so that would mean to avoid surfing and such activities then gradually start with breathing exercises see for your condition and also get your bone density check done and of course do consult your doctor..get well soon