can you mention one way of how it can be diagnosed?
Tests like electrocardiograms (ECGs), blood tests and coronary angiography help with the diagnosis.
Myocardial infarction
 A number of tests are useful to help with diagnosis, including electrocardiograms (ECGs), blood tests and coronary angiography.
myocardial infarction leads to impairment of ventricular function because The heart cannot effectively pump as a result of the infraction. what exactly is this infraction? A myocardial infarction (MI), also known as a heart attack, occurs when blood flow decreases or stops to a part of the heart, causing damage to the heart muscle. is it painful? Chest pain and heartburn like symptoms are common. what are its kinds? There are five types of MI based on international consensus in 2012.
wiki:8737036
Myocardial infarction [SEP] Introduction
In a STEMI, treatments attempt to restore blood flow to the heart and include percutaneous coronary intervention (PCI), where the arteries are pushed open and may be stented, or thrombolysis, where the blockage is removed using medications. People who have a non-ST elevation myocardial infarction (NSTEMI) are often managed with the blood thinner heparin, with the additional use of PCI in those at high risk. In people with blockages of multiple coronary arteries and diabetes, coronary artery bypass surgery (CABG) may be recommended rather than angioplasty. After an MI, lifestyle modifications, along with long-term treatment with aspirin, beta blockers and statins, are typically recommended.