An electrocardiogram (ECG or EKG) is a non-invasive test that measures and records the electrical activity of the heart. It's a quick and painless way to assess heart rhythm and rate, helping to diagnose various heart conditions. Here's a more detailed explanation: What it does: An ECG machine records the electrical signals produced by the heart's activity and displays them as waves on a graph or computer screen. How it works: Electrodes (small, sticky patches) are attached to the chest, arms, and legs. These electrodes are connected to the ECG machine, which detects and records the heart's electrical signals. Why it's done: ECGs can help diagnose heart attacks, irregular heartbeats (arrhythmias), and other heart problems. They can also assess the overall health of the heart, monitor the effectiveness of treatments, and evaluate how well implanted devices like pacemakers are working. When it's used: ECGs are used in various settings, including hospitals, clinics, and ambulances. Doctors may order an ECG if a patient experiences symptoms like chest pain, shortness of breath, dizziness, or palpitations. Types of ECGs: There are different types of ECGs, including resting ECGs (performed while lying down), stress or exercise ECGs (performed during physical activity), and ambulatory ECGs (monitored over a longer period, often at home).