Internet of Medical Things (IoMT) is an extended genre of Internet of Things (IoT) where the Things collaborate to provide remote patient health monitoring, also known as the Internet of Health (IoH). Smartphones and IoMTs' are expected to maintain a secure and trusted confidential patient-records exchange while managing the patient remotely. Healthcare organizations deploy Healthcare Smartphone Networks (HSN) for confidential patient data collection and sharing among smartphone users and IoMT nodes. However, the attackers gain access to confidential patient data via compromised/malicious IoMT nodes from the HSN. Additionally, attackers can compromise the entire network via the compromised nodes. This article proposes a Hyperledger blockchain-based technique to identify the compromised IoMT nodes and safeguard sensitive patient records. Furthermore, the paper proposes a Clustered Hierarchical Trust Management System (CHTMS) to block malicious nodes. In addition, the proposal employs Elliptic Curve Cryptography (ECC) to protect sensitive health records. Similarly, the proposed approach is resilient against denial of service, eclipse attacks, and terminal device failure. Finally, the evaluation results show that integrating blockchains into the HSN system improved the detection performance compared to the existing state-of-the-art. Therefore, the simulation results indicate better security and reliability when compared to conventional databases.