The inspiration for ChainHealth stems from the growing need to address data integrity and privacy concerns in the healthcare industry. Recognizing the potential of blockchain technology and Chainlink's decentralized Oracle network we were motivated to develop a solution that leverages these tools to validate patient data and enhance data security. By combining the power of Chainlink oracles and the interoperability standards of FHIR resources, ChainHealth aims to revolutionize healthcare data management, fostering trust, privacy, and efficiency. The project seeks to empower healthcare professionals and researchers with a robust system that ensures the authenticity, accuracy, and confidentiality of patient data, paving the way for innovative healthcare applications and enabling valuable insights while upholding the highest standards of data protection. Through this university project, we strive to contribute to the advancement of secure healthcare systems and inspire future developments in the intersection of blockchain, oracles, and healthcare.

Data Validation: ChainHealth leverages Chainlink oracles to validate Fast Healthcare Interoperability Resources (FHIR) data, ensuring correctness, adherence to standards, and data authenticity.

Data Privacy and Security: With deidentification techniques and consent mechanisms enforced through smart contracts, ChainHealth safeguards patient privacy and complies with regulatory requirements, while still enabling research and analysis.

Interoperability: ChainHealth's standardized smart contract-based Electronic Health Record (EHR) solution promotes seamless data exchange and collaboration among different healthcare providers, improving patient care and outcomes.

Address-Based Authentication: By associating data additions with unique addresses of verified healthcare providers, ChainHealth ensures data authenticity and prevents unauthorized or fraudulent data from entering the system.

Trust and Transparency: Built on blockchain technology, ChainHealth ensures transparent and immutable record-keeping, fostering trust among healthcare providers, patients, and researchers with tamper-resistant data integrity.

ChainHealth revolutionizes healthcare data management, providing a secure, interoperable, and trust-enhancing solution. With accurate data validation, controlled access, and seamless collaboration, it drives improvements in healthcare outcomes, research, and patient care.

What it does

Smart Contract that uses ChainLink Request

The flow of operations within ChainHealth smart contract and its interaction using Chainlink API are as provided,

  1. The smart contract calls the ChainHealth validation API to validate healthcare data using ChainLink
  2. The ChainHealth API verifies data deidentification and ensures it conforms to the FHIR standard.
  3. The validation API responds to the smart contract with the validation status and relevant data.
  4. Validated data is stored in the smart contract using a Content Identifier (cid).
    • Invalid data is not stored, maintaining data correctness and integrity.

By integrating the ChainHealth validation API into the smart contract, we establish a robust system that enforces data validation and integrity, ensuring that only authorized and accurate healthcare information is stored and accessible. ChainHealth's solution offers a transformative approach to enhance data accuracy, privacy, and trust in the healthcare industry.

Integration of smart contract

By utilizing the ChainHealth smart contract, healthcare systems can seamlessly integrate and leverage the power of the Fast Healthcare Interoperability Resources (FHIR) standard. This integration opens up a world of possibilities for healthcare providers, researchers, and patients alike.

With the FHIR standard as the foundation, the ChainHealth smart contract provides a streamlined and standardized approach to storing and exchanging health information. It eliminates the need for complex data mappings or custom interfaces, as FHIR resources are readily understood and supported by a wide range of healthcare systems.

To demonstrate the power and practicality of the ChainHealth solution, we have developed a web-based clinical system accompanied by a patient dashboard mobile app. These tools effectively address the challenges of data accessibility, visualization, and ownership in the healthcare landscape.

The web clinical system serves as a centralized hub for healthcare providers, allowing them to effortlessly load and access patient information. By integrating the ChainHealth smart contract, the clinical system eliminates concerns about data fragmentation or lack of comprehensive patient records. Healthcare providers can now retrieve a patient's health data from the ChainHealth network, regardless of which hospital or healthcare facility generated the information. This consolidation of data empowers healthcare professionals to have a holistic view of the patient's health status, history, and treatments, leading to more informed clinical decision-making.

The patient dashboard mobile app, on the other hand, places data ownership and control in the hands of the patients themselves. With this app, patients can securely access and manage their own health information, eliminating the need to rely on centralized sources or contact multiple hospitals for their records. The mobile app leverages the decentralized nature of the ChainHealth solution, allowing patients to authenticate their identity and retrieve their health data directly from the blockchain. This empowers patients to actively participate in their healthcare journey, track their progress, and make informed decisions about their well-being.

By providing a user-friendly and intuitive interface, the web clinical system and patient dashboard mobile app enable seamless navigation and visualization of health data. Healthcare providers can access comprehensive patient profiles, view medical records, track vital signs, and monitor treatment plans. Meanwhile, patients can effortlessly view their health information, including test results, medication history, and appointment schedules, fostering a sense of empowerment and engagement in their own care.

The combination of the web clinical system and patient dashboard mobile app showcases the true potential of the ChainHealth solution. It revolutionizes data accessibility, visualization, and ownership in healthcare. The integration of these tools ensures that healthcare providers have a comprehensive view of patient health information, while patients have convenient access to their own data. This not only improves the efficiency and quality of care delivery but also enhances patient satisfaction and involvement in their own healthcare journey.


Make sure when using ChainHealth ensure this endpoint is giving a response, as free their vercel will time out. Try calling this link below until it response,

     "type": "Immunization"

How we built it

Fantom Blockchain (Testnet)

Post storage data

  • IPFS


  • Framework: Next.js, React
  • UI: Chakra UI

Accomplishments that we're proud of

In our project, we developed a fully fleshed-out decentralized application within a span of around one month. This was a challenging but achievable process that required us to hone our technical skills in blockchain development, smart contract programming, and user interface design. We learned a lot about decentralized networks and problem-solving during the project, which was a great learning experience.

What we learned

Participating in this hackathon gave me an incredible opportunity to dive into the world of Chainlink technology and smart contracts. It was my first time utilizing Chainlink, and the experience was truly valuable. I gained a wealth of knowledge in working with decentralized Oracle networks, specifically in the context of data feed and validation for our project's focus on security. Throughout the process, I learned the importance of relying on reliable and trusted data sources and the significance of robust validation mechanisms to maintain data integrity and accuracy. Chainlink's flexibility and versatility allowed me to seamlessly integrate external APIs, like creating an FHIR resource API, to validate patient data effectively. Additionally, I realized the crucial role that smart contracts play in enforcing data access controls and consent mechanisms, prioritizing patient privacy and regulatory compliance. By integrating Chainlink oracles into ChainHealth, it established a transparent and auditable framework that boosted trust for both patients and healthcare providers. Overall, my experience with Chainlink has broadened my perspective on secure decentralized networks, and their transformative potential in revolutionizing healthcare systems for the betterment of patients and providers alike.

What's next for ChainHealth

Some potential improvements to consider for ChainHealth could include:

  • Enhanced Data Validation: Continuously refine and expand the validation capabilities of ChainLink oracles to cover a broader range of data quality checks, ensuring the accuracy, consistency, and completeness of patient data.
  • Advanced Privacy Preservation: Implement advanced privacy-preserving techniques such as differential privacy or secure multi-party computation to further protect patient information while enabling data analysis and research.
  • Interoperability Standards: Explore the integration of additional interoperability standards beyond FHIR, such as HL7 or DICOM, to support seamless data exchange and integration with a wider range of clinical systems and healthcare providers.
  • Analytics and Insights: Develop advanced analytics modules within ChainHealth to enable data-driven insights and decision support for healthcare providers and researchers, facilitating population health management, disease surveillance, and treatment effectiveness evaluation.
  • Patient Engagement: Incorporate patient engagement features, such as secure patient portals or mobile applications, allowing patients to access and control their own health data, provide consent preferences, and participate in research studies or clinical trials.
  • User Interface Refinement: Continuously refine the user interface of the clinical system to ensure optimal user experience, simplify workflows, and provide intuitive data visualization and navigation for healthcare professionals.
  • Integration with Emerging Technologies: Explore integration with emerging technologies like artificial intelligence (AI) and machine learning (ML) to enable predictive analytics, automated data validation, or decision support systems within ChainHealth.

These improvements can help further enhance the functionality, security, usability, and scalability of ChainHealth, supporting its mission to revolutionize healthcare data management and facilitate improved patient care, research, and collaboration.

Built With

  • anyapi
  • chainlink
  • ipfs
  • next.js
  • react
Share this project: