While endoscopy is a safe procedure, there are some situations where it may not be the best course of action. If you fall into these categories, you should consider alternative procedures or ask your doctor about what extra precautions can be taken. Groups who are advised not to get an endoscopy or proceed with caution include: • People with severe heart or lung conditions - If you have severe heart or lung problems, the sedatives used during endoscopy can pose additional risks. The physician will carefully assess the specific circumstances to ensure extra precautions are taken or an alternative approach is found. • Pregnant women - This procedure is generally avoided during pregnancy, unless there's a very compelling medical reason to perform it, such as a lodged foreign object. • Allergic reactions - If you've had severe allergic reactions to medications or anesthesia in the past, it’s very important that the healthcare team is aware of this risk. It's crucial to discuss your medical history and any concerns with the doctor before undergoing an endoscopy. With this information, the physician can assess your unique situation, weigh the benefits against the risks, and determine the safest course of action for you.