{{{Lisa}}} So sorry you are going though this pain
Gallstones are terrible, I was hospitalised twice with them (once when DD was 4 months old and then again when she was 6.5 months old)
They wouldn't allow my daughter to stay with me But I insisted on her being with me during the day.
You can get breastfeeding friendly painkillers and antibiotics. I can't believe they didn't suggest this for you. When you go back in insist on getting breastfeeding friendly drugs (use the drug line below or the nurses can check with the midwifes for advice)
Morphine is also ok to breastfeed with ...just like c-section new mums do. No need to pump and dump or anything.
Some painkillers have to be time dosed...i.e.Breastfed first and then take drug.
I also found that sticking to low fat diet didn't stop the attacks, even fat free crackers would set me off once my bladder was inflamed.
Sorry to say, that for me recently the pain has returned (even with gall bladder removed four months ago)but I will be insisting on breastfeeding friendly drugs if I go back in to hospital for my 14 month old DD.
Here are a few numbers which might help you if you have to go back in...
NCT Breastfeeding Help Line 9870 444 8708
Drugs in Breastmilk Helpline (generally answered at night) Wendy Jones 0844 412 4665
Drugs and breastfeeding help website.
Drugline
I have got a few more links and information I got of a fab NCT tutor if you want more information...let me know.