In today's world, data management plays a key role in smart healthcare applications.However, data availability, trustworthiness, confidentiality, and security are the major issues faced by current healthcare data management systems. The modern healthcare systems manage Electronic Medical Records (EMR) using a centralized manner, which increases the single point of failure in the event of a natural catastrophe. In this paper, a new robust Blockchain-based Medical Cloud (BC-MedCl) framework has been proposed to provide secure EMR sharing between patient and doctor. Primarily, Internet of Things (IoT) devices will gather the health-related data of the patient periodically.The proposed framework then stores the encrypted EMRs in cloud storage while their correlating hash values are placed into the blockchain. Finally, a decentralized selective smart contract-based access control mechanism is developed to enhance the security of the proposed system. The prototype file-sharing performance of the proposed architecture has been evaluated using the Ethereum platform. The performance results manifest that the proposed blockchain framework is more effective to handle EMR in the real-time healthcare system with a superior accuracy ratio of 98.7% and a lesser latency ratio of 25% as compared with the existing systems.