General information only. It does not replace advice from a health professional. For chest pain that does not go away, fainting or sudden breathlessness, call emergency services.

What it is
A heart attack code (in Spain, Código Infarto or Código IAM; in English-speaking countries usually called a STEMI network or primary PCI pathway) is an organised emergency care system. It links the emergency telephone number (112 in Europe), ambulance crews, primary care centres and hospitals with a cardiac catheterisation laboratory so that a blocked coronary artery can be reopened as quickly as possible in people with the most serious type of heart attack: ST-segment elevation myocardial infarction (STEMI).
In a STEMI, a clot completely blocks a coronary artery and part of the heart muscle is starved of oxygen. Muscle cells begin to die after 20-30 minutes, and the damage spreads over the following hours from the inner layer of the wall outwards. The sooner blood flow is restored (what cardiologists call reperfusion), the more muscle is saved, the less heart failure is left behind and the lower the death rate. The motto is "time is muscle".
The idea behind the code is simple: the patient should go straight to the hospital that can treat them, with no detours, and the team should already be waiting. Before these networks existed, many people went first to a hospital without a catheter lab, waited for tests and lost decisive hours.
You can read more about the condition itself in heart attack.
When it is triggered: recognising a heart attack
The first link in the chain is the person themselves or whoever is with them. The typical symptom is pain or pressure in the centre of the chest that does not ease (in a heart attack it usually lasts more than 15-20 minutes, but do not wait: if it lasts more than 5 minutes, call 112), which does not change with breathing or movement and often spreads to the left arm, neck, jaw or back, with cold sweat, nausea or breathlessness. In women, older people and people with diabetes it may be less typical: extreme tiredness, shortness of breath, stomach discomfort or back pain. See how do I recognise a heart attack?.
Warning signs: if you have chest pain lasting more than a few minutes, especially with cold sweat, nausea, breathlessness or light-headedness, call 112 in Europe, or your local emergency number, straight away (999 in the UK, 911 in the USA). Do not wait to see if it passes, do not phone your GP first and do not drive yourself or go by car to hospital: the ambulance can make the diagnosis, treat you on the way and defibrillate you if your heart stops.
The biggest delay in a heart attack is usually not in hospital but at home: the time between the start of symptoms and the call for help. Many people wait for hours because they think it is indigestion or do not want to "make a fuss".
Step by step: what happens when you call
1. The call
The emergency call handler asks a few quick questions (age, symptoms, when they began, whether the person is conscious and breathing) and, if a heart attack is suspected, dispatches an advanced life support ambulance (in Spain, often with a doctor and a nurse) or the nearest available unit. While it is on the way, you will be told to:
- Help the person sit or lie in a comfortable position and stop any exertion.
- Unlock the front door and have their list of medicines and medical reports to hand.
- In many cases, chew an aspirin if they are not allergic and have no other contraindication. Do this only if the call handler or a doctor tells you to.
- If the person has been prescribed glyceryl trinitrate (GTN) spray or tablets, use it as they were instructed.
2. An ECG within 10 minutes
On arrival, the crew records a 12-lead electrocardiogram. The 2023 European Society of Cardiology (ESC) guidelines on acute coronary syndromes require it to be recorded and interpreted within 10 minutes of first medical contact. The ECG shows whether there is ST-segment elevation, the "signature" of a closed artery.
If the ECG confirms it, the doctor or paramedic activates the code: they alert the coordination centre and the receiving hospital, and in many regions transmit the ECG electronically to the on-call cardiologist, who reads it in real time.
3. Treatment in the ambulance
During transfer the crew:
- Monitors the heart rhythm continuously with the defibrillator ready, because dangerous arrhythmias such as ventricular fibrillation are most common in the first hours.
- Inserts a drip and gives aspirin, an anticoagulant (such as heparin) and pain relief. Depending on the protocol, a second antiplatelet drug may be given.
- Gives oxygen only if oxygen saturation is low (below 90%); otherwise it brings no benefit.
- Takes the patient straight to the catheter lab, bypassing the emergency department whenever possible.
4. In hospital: primary angioplasty
In the catheter lab, the interventional cardiologist passes a catheter through the artery at the wrist (radial artery) or the groin, performs a coronary angiogram to find the blockage, crosses the clot with a fine wire, opens it with a balloon and leaves a stent. This is primary angioplasty (primary percutaneous coronary intervention, PCI). It takes about 30-60 minutes, under local anaesthetic, with the patient awake.
Afterwards, the patient spends a few days in the coronary care unit and on the ward. If all goes well, discharge often comes after 3-5 days.
The times that matter
| Step | Target (ESC 2023) |
|---|---|
| First medical contact → diagnostic ECG | ≤ 10 minutes |
| Diagnosis → wire across the artery, if the patient arrives at a PCI hospital | ≤ 60 minutes |
| Diagnosis → wire across the artery, if transferred from another centre | ≤ 90 minutes |
| Limit for choosing primary angioplasty | ≤ 120 minutes from diagnosis |
| If 120 minutes cannot be met: diagnosis → start of thrombolysis | ≤ 10 minutes |
| After successful thrombolysis: coronary angiogram | Between 2 and 24 hours |
Primary angioplasty is the preferred strategy if it can be performed within 120 minutes of the ECG diagnosis, and it is indicated within the first 12 hours after symptoms begin. Beyond 12 hours it is still done if pain persists or there is electrical or haemodynamic instability or shock.
When you cannot get there in time: thrombolysis
In rural areas, on islands or far from a PCI hospital, transfer may take more than two hours. In that case thrombolysis (fibrinolysis) is given: a drug injected into a vein, such as tenecteplase as a single bolus, which dissolves the clot. It can be given in the ambulance itself (pre-hospital thrombolysis) and works best the earlier it is given, especially within 2-3 hours of symptom onset. In people over 75 a half dose is used to reduce the risk of brain haemorrhage (STREAM trial, 2013).
After thrombolysis the patient is always transferred to a hospital with a catheter lab:
- If it does not work (pain continues or the ST segment does not fall by at least half after 60-90 minutes), urgent rescue angioplasty is performed.
- If it works, a coronary angiogram is done within 2-24 hours (pharmaco-invasive strategy).
The main risk of thrombolysis is bleeding: brain haemorrhage occurs in about 0.5-1% of treated patients, more often in older people, low-weight women and people with high blood pressure. This is why there are contraindications (recent stroke, recent major surgery, active bleeding, among others).
Angioplasty versus thrombolysis
In the meta-analysis by Keeley and colleagues (Lancet, 2003), which pooled 23 trials with about 7,700 patients, primary angioplasty reduced, compared with thrombolysis:
| Short-term outcome | Angioplasty | Thrombolysis |
|---|---|---|
| Death | 7% | 9% |
| Re-infarction | 3% | 7% |
| Stroke | 1% | 2% |
This is why angioplasty is the first choice, as long as it can be done in time. Rapid thrombolysis is better than very late angioplasty.
How it is organised in Spain and elsewhere
In Spain, heart attack care is run by each autonomous community, and each has its own network, often with its own name. The Ischaemic Heart Disease Strategy of the Spanish National Health System (Ministry of Health, 2006, updated 2009) encouraged every region to organise primary angioplasty networks, and the European Stent for Life initiative and the Spanish Society of Cardiology (SEC) promoted their expansion. Today every region has such a programme. Some examples:
- Galicia: the PROGALIAM programme, running since 2005, was one of the pioneers.
- Catalonia: the Codi IAM has operated since 2009, covering the whole territory 24 hours a day, coordinated by the regional emergency medical service (SEM) with a network of PCI hospitals.
- Madrid: the Código Infarto Madrid, coordinated by the SUMMA 112 and SAMUR-Protección Civil emergency services, running since 2013.
- The other regions (Murcia, Navarre, Andalusia, Valencia, the Basque Country, Castile and León, Aragon, Asturias, the Canary and Balearic Islands and the rest) have their own networks, organised according to their geography. On islands and in sparsely populated areas, pre-hospital thrombolysis and helicopter transfer play a larger role.
The Interventional Cardiology Association of the SEC keeps a registry of the Código Infarto networks, which allows times and outcomes to be compared between regions. Its analyses show that most people with STEMI are now treated with primary angioplasty, that there are differences between regions in care times, and that women and older people take longer to seek help and to be treated.
In the UK, the NHS moved to a national primary PCI model in the late 2000s, with ambulances taking patients directly to heart attack centres; outcomes are audited by the Myocardial Ischaemia National Audit Project (MINAP). In the USA, the American Heart Association's Mission: Lifeline programme supports regional STEMI systems.
Results
- Regional networks have greatly increased the use of primary angioplasty and have been associated with lower mortality from STEMI. In Catalonia, studies published after Codi IAM began showed more patients reperfused, shorter times and lower mortality than before the network.
- In current Spanish and European registries, 30-day mortality from STEMI treated within a network is around 5-8%, compared with 15-20% a few decades ago. Most deaths occur in patients who arrive in shock or after a cardiac arrest.
- Every 30 minutes of delay in reperfusion is associated with higher mortality (De Luca and colleagues, Circulation, 2004, in patients treated with primary angioplasty).
The link with most room for improvement is the call for help: the more people call early, and travel by ambulance, the better the results.
What to do if you are a bystander
- Call 112 in Europe, or your local emergency number. Say clearly: "I think it is a heart attack." Give the exact address.
- Stop the person exerting themselves: help them sit or lie down and loosen tight clothing.
- Follow the call handler's instructions: they will tell you whether the person should take aspirin or their GTN.
- Do not drive them unless the emergency service tells you to: if their heart stops on the way, you will not be able to help.
- If they become unresponsive and are not breathing normally, it is a cardiac arrest: tell the call handler, start cardiopulmonary resuscitation (hard, fast compressions in the centre of the chest) and send someone for an automated external defibrillator (AED) if there is one nearby. The call handler will guide you over the phone.
- Have their medical reports and medicines ready and note the time the symptoms started.
Learning CPR is one of the best things you can do for others: see learning CPR.
After the heart attack
The code ends with reperfusion, but care continues. At discharge, almost everyone takes dual antiplatelet therapy (usually for 12 months), high-dose statins and, depending on the case, beta blockers or other medicines. Taking part in a cardiac rehabilitation programme is strongly recommended: it reduces cardiovascular death and readmissions. Controlling risk factors matters too. See life after a heart attack.
Important: the heart attack code was designed for STEMI. Heart attacks without ST elevation (NSTEMI) are also emergencies, but are managed in hospital differently: the angiogram is performed within hours or days depending on risk. In both cases the rule is the same: if chest pain does not go away, call the emergency number.
Frequently asked questions
- Can I drive myself to A&E if the hospital is close? It is better to call an ambulance. The crew records the ECG at home, alerts the right hospital and brings a defibrillator.
- What if I call and it was not a heart attack? That is fine. Emergency teams would rather have a hundred false alarms than one heart attack that arrives too late.
- Will I need open-heart surgery? Almost never in the acute phase: angioplasty is done through a needle puncture at the wrist. Only a minority later need bypass surgery.
Sources
- Byrne RA, Rossello X, Coughlan JJ, et al. 2023 ESC Guidelines for the management of acute coronary syndromes. Eur Heart J. 2023;44(38):3720-3826. doi:10.1093/eurheartj/ehad191.
- Keeley EC, Boura JA, Grines CL. Primary angioplasty versus intravenous thrombolytic therapy for acute myocardial infarction: a quantitative review of 23 randomised trials. Lancet. 2003;361:13-20.
- Armstrong PW, Gershlick AH, Goldstein P, et al. Fibrinolysis or primary PCI in ST-segment elevation myocardial infarction (STREAM). N Engl J Med. 2013;368:1379-87.
- De Luca G, Suryapranata H, Ottervanger JP, Antman EM. Time delay to treatment and mortality in primary angioplasty for acute myocardial infarction: every minute of delay counts. Circulation. 2004;109:1223-5.
- Spanish Ministry of Health. Estrategia en Cardiopatía Isquémica del Sistema Nacional de Salud. Madrid; 2006 (updated 2009). sanidad.gob.es
- Spanish Society of Cardiology, Interventional Cardiology Association. Código Infarto network registry. Rev Esp Cardiol / REC Interv Cardiol (periodic publications).
- Gómez-Hospital JA, Dallaglio PD, Sánchez-Salado JC, et al. Impact on delay times and characteristics of patients undergoing primary percutaneous coronary intervention in the southern metropolitan area of Barcelona after implementation of the Infarction Code program. Rev Esp Cardiol. 2012;65:911-8.
- MedlinePlus. Heart attack.
- NHS. Heart attack: treatment.