I know this post is a few days old but I got prescribed Codeine 30mg yesterday so thought I might be able to help (I have spd, rib flare so bad it affects my entire lower, front and back, rib cage and round ligament pain - I can barely walk). It is impacting my sleep so badly (3 hours if I am lucky, but only made of up 20 min stretches here and there) and I started hallucinating, couldn't take care of my kids, couldn't safely drive and couldn't work.
I had a long discussion with my midwife about it which enabled me to make an informed decision. We weighed up the risks and benefits of it and I took them to my GP and explained why the benefits outweighed the risks.
She said that although it's a slim chance and completely dependent on the dose. baby could be born addicted and it's policy to keep mum and baby in for 72 hours monitoring when baby is born to ensure neither of us are going through severe withdrawals. I will also be more closely monitored during pregnancy (so a couple of extra appointments to check blood pressure etc). I have to keep a closer eye on babies movements and patterns. If anything changes, including quicker movements OR slower, or completely reduced, try the cold water and lying on my left trick and if that doesn't work call them within the hour for assessment.
I've also been told that if at any point I feel something is wrong with me and baby to call them right away. They aren't taking any risks and I. Her words, it's why they are employed, to look after us, and they would rather send us away having deemed everything fine than have something happen to us.
I was also told to be really strict and take them only when absolutely needed. I can take them every 4 hours but obviously if I take one and I am still fine in 4 hours, then put it off until I actually start feeling pain again.
I really hope this helps, as there doesn't seem to be much out there in posts about needing the hospital stay and a lot about how bad it is to take in pregnancy!
If you need it you need it, just keep an eye on yourself and babe and make sure to talk to the midwife if you have any concerns! I hope you have a lovely, and mostly pain free pregnancy 