If you are taking medication it is highly unlikely that you will need to stop breastfeeding. When taking medication only a tiny amount shows up in the milk and is almost never harmful to your baby. If a medicine is considered unsuitable for breastfeeding women than there is usually an alternative medication available. Remember to remind your G.P. that you are breastfeeding and he will happily provide you with medication that is suitable for you and your baby.
Stopping breastfeeding for any reason can lead to your baby refusing to breastfeed and to painful engorgement of the breasts. It is far better for your little one to continue breastfeeding as the risks of bottle feeding are of greater concern. For your peace of mind here is a list of some common medications that are considered safe to take while breastfeeding; paracetemol, anti-inflammatories (such as Ibuprofen), certain anti-depressants, immunisations and local anesthesia, medications applied to the skin,nose or eyes are almost always safe, medications that are inhaled (such as medications for asthma), X-rays, CT and MRI scans do not require a mother to stop breastfeeding.
Should you need to take any medication while breastfeeding you must always consult with your G.P.