An Intelligent Web-Based Medical Management and Prescription Recommendation System Using Flask, MySQL, and Machine Learning

Authors

  • Patange S. P
  • Bhadugale O. U
  • Bagwan S. F
  • Naladwade A. S

Keywords:

Emergency services management, Flask, Healthcare informatics, Machine learning, Medical management system, MySQL, Prescription recommendation, Role-based access control

Abstract

The healthcare sector continues to struggle with coordinating appointment scheduling, prescription management, patient feedback, and emergency-service delivery across disconnected, often manual, workflows. Addressing these issues, this study reports on the formulation, construction, and testing of an intelligent medical management system, a Flask-based web application supported by a MySQL database that brings together the four main users (patient, doctor, druggist, and administrator) in one single, secure, and role-based platform. The system is equipped with a supervised machine-learning component that suggests medications and personalised diet plans based on patient-reported symptoms as well as historical prescription data. Beyond that, the system has modules for appointment scheduling, prescription tracking, emergency-resource management, and centralised feedback handling. The system’s architecture is explained with the help of use-case activity sequence, data-flow, and deployment diagrams, and the system’s implementation is assessed via unit integration system, security, and user-acceptance testing, plus quantitative performance benchmarking and a comparative analysis of machine-learning models for the prescription recommendation task. The experimental evidence shows that the system developed is capable of matching the recommendation accuracy of baseline classifiers, while at the same time it greatly decreases administrative workload against traditional, isolated medical-record systems.

References

B. G. Mohammed and D. S. Hasan, “Smart healthcare monitoring system using IoT,” International Journal of Interactive Mobile Technologies (iJIM), vol. 17, no. 1, pp. 141–152, Jan. 2023.

N. Kirilov, “Capture of real-time data from electronic health records: scenarios and solutions,” mHealth, vol. 10, no. 14, Apr. 2024.

S. Agrawal, “Online healthcare online doctor appointment booking system,” International Journal of Scientific Research in Engineering and Management, vol. 6, no. 4, Apr. 2022.

B. Manjulatha and S. Pabboju, “A survey on health care data using machine learning algorithms,” Research Square, Mar. 2020.

Flask Documentation, “Flask Web Development.”

MySQL Documentation, “MySQL Reference Manual.”

M. Grinberg, Flask Web Development, 2nd ed. Sebastopol, CA, USA: O'Reilly Media, 2018.

R. Sendelj and I. Ognjanovic, “Cybersecurity challenges in healthcare,” Studies in Health Technology and Informatics, vol. 300, no. 1, pp. 190–202, Oct. 2022.

R. Kumar and S. Hariharasitaraman, “Blockchain for healthcare data security in the Metaverse: A comprehensive study,” in Applying Metaverse Technologies to Human-Computer Interaction for Healthcare, B. Sundaravadivazhagan, S. Balasubramaniam, P. Raj, and K. Shantha Kumari, Eds. Boca Raton, FL, USA: CRC Press, 2025, pp. 99–120.

M. Vejdani, M. Varmaghani, M. Meraji, J. Jamali, E. Hooshmand and A. Vafaee-Najar, “Electronic prescription system requirements: a scoping review,” BMC Medical Informatics and Decision Making, vol. 22, Sep. 2022.

M. Bajramagic et al., “Artificial intelligence-driven clinical decision support systems to assist healthcare professionals and people with diabetes in Europe at the point of care: a Delphi-based consensus roadmap,” Diabetologia, vol. 69, pp. 259–273, Nov. 2025.

Python Software Foundation, “Python Language Reference.”

S. Hijazi, N. Obeid, and K. E. Sabri, “On the logical foundation of a personalized medical prescription system,” IEEE Access, vol. 8, pp. 6471–6483, 2020.

Y. Mao and L. Zhang, “Optimization of the medical service consultation system based on the artificial intelligence of the Internet of Things,” IEEE Access, vol. 9, pp. 98261–98274, 2021.

L. N. Mahdy, K. A. Ezzat and Q. Tan, “Smart ECG Holter monitoring system using smartphone,” 2018 IEEE International Conference on Internet of Things and Intelligence System (IOTAIS), Bali, Indonesia, 2018, pp. 80–84.

S. Chaudhari and T. Barot, “Artificial intelligence in medical prescription: Revolution, risks and future aspects,” Asian Journal of Biological and Life Sciences, vol. 14, no. 3, pp. 541–546, Jan. 2026.

R. Rabiei, W.-C. Hsu, P. Bastani, S. Almasi, S. Mortezaei, and S. Dehghan, “Transition toward smart hospitals: A scoping review of features, technologies, and challenges,” Health Science Reports, vol. 8, no. 12, Nov. 2025.

H. Askr, E. Elgeldawi, H. A. Ella, Y. A. M. M. Elshaier, M. M. Gomaa and A. E. Hassanien, “Deep learning in drug discovery: an integrative review and future challenges,” Artificial Intelligence Review, vol. 56, pp. 5975–6037, Nov. 2022.

M. R. R. Akash, Yousuf and K. Shikder, “IoT based real time health monitoring system,” 2020 Research, Innovation, Knowledge Management and Technology Application for Business Sustainability (INBUSH), Greater Noida, India, 2020, pp. 167–171.

J. K. Adeniyi et al., “A blockchain-based smart healthcare system for data protection,” iScience, vol. 28, no. 4, Apr. 2025.

P. Zhao, I. Yoo, J. Lavoie, B. J. Lavoie, and E. Simoes, “Web-based medical appointment systems: A systematic review,” Journal of Medical Internet Research, vol. 19, no. 4, Apr. 2017.

L. Tudor Car et al., “Conversational agents in health care: Scoping review and conceptual analysis,” Journal of Medical Internet Research, vol. 22, no. 8, Aug. 2020.

A. A. Alarood, M. Faheem, M. A. Al‐Khasawneh, A. I. A. Alzahrani and A. A. Alshdadi, “Secure medical image transmission using deep neural network in e‐health applications,” Healthcare Technology Letters, vol. 10, no. 4, pp. 87–98, Jul. 2023.

L. Albesher and R. Alfayez, “An observational study on flask web framework questions on stack overflow (SO),” IET Software, vol. 2024, no. 1, Dec. 2024.

NumPy Developers, “NumPy User Guide.”

W. McKinney, Python for data analysis, 3rd ed. Sebastopol, CA, USA: O'Reilly Media, 2022.

S. Maqbool, M. Waseem Iqbal, M. Raza Naqvi, K. Sarmad Arif, M. Ahmed and M. Arif, “IoT based remote patient monitoring system,” 2020 International Conference on Decision Aid Sciences and Application (DASA), Sakheer, Bahrain, 2020, pp. 1255–1260.

S. Chumble, I. Fatima N, and G. Dilip, “Medicine recommendation system,” International Journal of Advanced Research in Computer and Communication Engineering, vol. 14, no. 14, Nov. 2025.

A. K. Arumugam, “Software testing techniques new trends,” International Journal of Engineering Research and Technology, vol. 8, no. 12, Jan. 2020.

Open Web Application Security Project (OWASP), “Security Testing Guide.”

C. Abreu, C. Bédard, J.-C. Lourme, and B. Piro, “Wearable sensors for health monitoring,” Biosensors, vol. 16, no. 2, pp. 93–93, Feb. 2026.

Published

2026-07-07