A heart attack is a medical emergency. The first few minutes are very important for keeping the person alive. Some of the damage from the heart attack can be repaired if the person gets treatment during the first hour of the attack.