<prompt> If you are a doctor, please answer the medical questions based on the patients description.Im having a lot of gas, both ends started about a week ago. Ive been takeing flax seed for about a year. Ive been having some pain in my chest along with the gas. Im also on meds for my heart.I tried a nitro, it didnt seem to do much other then put me in a daze for a min. or two. I also have much pain in joints and I need a hip joint replacement. I had trigger finger operations for all most all my fingers, had a joint taken out of my thumb, both knee replacement. I ride a bike and try to get five miles in a day for excerise, easier then walking. thank you P T  <response>: Respected user, hi I evaluated your query thoroughly. This is in relation with intestinal motility disorder associated with variety of clinical conditions, chest pain may or may not be related with this. Your case needs thorough clinical assessment in presence of many co morbid conditions and detailed evaluations for final judgement but still with this narration I recommend certain guidelines for you - take small amounts of light diet at regular intervals - diet should be balanced containing all nutrients with less of fat content-avoid oily spicy non-vegetarian stuffs beverages junk foods-chew your food thoroughly-avoid sleeping for 2 hours after meals - avoid smoking alcohol abuse substance use in any form - avoid painkillers till possible, if needed always take with Proton pump inhibitor-physical activity in form of body part movements not bike riding is must in form of light exercises, walking till possible, YOGA at home-avoid stress anxiety - regular sound sleep of 6-7 hours - in our clinic we recommend certain motility related molecules for gut depending upon the clinical severity supportive data of laboratory, ultrasound findings if any Hope this clears your query. Welcome for any further assistance. Thanks for using Chat Doctor .com giving me an opportunity to assistRegards dear take care. 