The Case Based Reasoning (CBR) method is used in an expert system to diagnose this disease by utilizing knowledge from previous cases. Public awareness of the symptoms of a heart attack and speed of getting help is the key to minimizing the number of deaths and disabilities due to heart disease. This application uses experience from previously diagnosed cases of heart disease as a reference base. This application can help people recognize early symptoms of stomach and heart disease earlier. For doctors, this system functions as an experienced assistant, helping to lighten the workload by analyzing symptoms reported by patients. With this heart and stomach disease detection application, it is hoped that it can make a positive contribution in supporting health services in areas with limited resources. This application is designed to make it easier for specialist doctors and the public to diagnose patients by providing consistent and reliable results.