You may have traumatised the rib when you had your skiing accident if it was recently. There is a possibility that it was fractured initially over a year ago. A single fractured rib can be managed with only pain-killers without hospital treatment, although it can be very painful.
I think your current pain is related to your rib and the only management would be strong pain-killers ie, paracetamol
Regarding your upcoming surgery, you need to mention your pain to the anesthesiologist as this could affect your post-operative recovery. It should not prevent you having the surgery but may affect your breathing postop so you will need care to ensure you do not develop any postop chest problems. This can be helped by postop chest physiotherapy
with breathing exercises coupled with pain relief.
I wish you well.
Dr K A Pottinger,