A significant challenge in the digital healthcare environment is protecting patient privacy and security while allowing for successful utilization of patient data for clinical and research analysis. This study presents a blockchain-based system that allows patients to safely upload their medical data by means of homomorphic encryption. The technology permits academics and medical experts to perform operations on encrypted data with explicit patient consent, ensuring confidentiality and patient control. The structure keeps a tamper-proof record of all data access done by the patients. Disease tracking, predictive modeling, clinical trials, precision medicine, and public health research are the applications supported by this system's transformative potential for public health and social well-being. These tokens can then be utilized or exchanged for patient health insurance savings, reduced prescription costs, or other healthcare benefits, making the healthcare sector more accessible and advantageous. The integration of these cryptographic homomorphic techniques with blockchain technology provides a strong way for safeguarding and upholding patients' confidential data, promoting trust in healthcare data sharing analysis.