project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4
project screenshot 5
project screenshot 6

medX

MedX leverages blockchain to secure medical records and streamline prescription processes, ensuring privacy and efficiency in healthcare management.

medX

Created At

Superhack 2024

Winner of

Blockscout - Use Blockscout Block Explorer!

Prize Pool

EAS - Best Real World Use Cases for Attestations 1st place

Worldcoin - Pool Prize

Prize Pool

Chainlink - Best use of Chainlink CCIP

Project Description

medX: Product Overview

  • Patient Onboarding

    • Patients create and manage profiles using Smart Accounts (Alchemy).
    • Provides a secure, decentralized identity for interaction with healthcare services.
  • Doctors/Healthcare Providers Onboarding

    • In addition to generating Smart Accounts, World ID verification is conducted.
    • Ensures the authenticity and credibility of healthcare professionals within the medX ecosystem.
  • Appointment Scheduling

    • Patients schedule appointments with doctors on their preferred blockchain.
    • Payment is made on the patient's chosen chain, and doctors receive payment on their preferred chain using the CCIP MultiHop router.
  • Medical Examination

    • Doctors conduct patient assessments and, if necessary, connect patients to healthcare providers for further evaluation or treatment.
  • Record Creation and Attestation

    • Healthcare providers create medical records for patients.
    • Records are attested on-chain using Ethereum Account Service (EAS), supported by Alchemy's SendUserOps and gas sponsorship.
  • Prescription Management

    • Doctors process medical records and generate prescriptions.
    • Prescriptions are attested on-chain using EAS with the support of SendUserOps and gas sponsorship.
  • Prescription Redemption

    • Patients redeem prescriptions by paying dues using SendUserOps.
    • Gas sponsorship covers transaction fees, making the process cost-effective and straightforward.

How it's Made

Building medX was all about bringing together the right technologies and tools to create a smooth, decentralized healthcare experience. Here's a straightforward look at how we did it:

Technologies and Tools Used

  • Backend: Node.js

    • What it does: Handles all the server-side logic, APIs, and interactions with the blockchain.
    • How we used it: We utilized Node.js to manage the backend, ensuring efficient handling of requests, data processing, and secure communication with the blockchain.
  • Frontend: Next.js

    • What it does: Powers the user interface, allowing users to interact with medX in a smooth and responsive way.
    • How we used it: Next.js was chosen for its server-side rendering capabilities, making the frontend fast, scalable, and SEO-friendly.
  • Smart Accounts (Alchemy)

    • What it does: Patients and healthcare providers create and manage their profiles securely, without needing centralized systems.
    • How we used it: We used Alchemy’s tools to make the process of setting up and managing accounts easy and secure.
  • CCIP MultiHop Router

    • What it does: Allows patients to pay on one blockchain, and doctors to receive the payment on another.
    • How we used it: We created custom code that routes payments through the CCIP MultiHop router, making sure transactions work smoothly, even if they're happening on different blockchains.
  • Ethereum Account Service (EAS)

    • What it does: Keeps medical records and prescriptions safe on the blockchain.
    • How we used it: We utilized EAS's private data schema to generate relevant zkProofs, ensuring that patient records maintain privacy while securely storing medical data on-chain.
  • SendUserOps and Gas Sponsorship (Alchemy)

    • What it does: Simplifies transactions and covers gas fees (the cost of transactions on the blockchain).
    • How we used it: We used this to make sure users don’t have to worry about transaction costs, making the platform more user-friendly.
  • World ID Verification

    • What it does: Verifies the identity of healthcare providers.
    • How we used it: When doctors and healthcare providers join the platform, we make sure they are who they say they are using World ID verification.

Partner Technologies

  • Alchemy

    • Why it’s important: Alchemy provided the tools that made account management and transaction handling easier, allowing us to focus on building the core features of medX.
  • CCIP (Cross-Chain Interoperability Protocol)

    • Why it’s important: This allowed us to create a system where payments can happen across different blockchains, making it easier for users to transact in the cryptocurrency they prefer.
  • Blockscout

    • Why it’s important: We used Blockscout to verify payments, ensuring that all transactions on the platform are transparent and secure.
  • Contracts on Base, Optimism, and Celo

    • Why it’s important: By deploying contracts on these blockchains, medX can operate on multiple networks, ensuring scalability, efficiency, and security.

Hacky Solutions and Notable Mentions

  • Custom Cross-Chain Logic

    • We created custom logic to handle payments that move across different blockchains, making sure transactions don’t fail or get delayed.
  • Creating the CCIP MultiHop Router for Chainlink

    • We were directly involved in developing the CCIP MultiHop router, a key feature that enables seamless cross-chain payments, ensuring that users can transact on their preferred blockchains without issues.
  • Gas Optimization

    • We worked hard to minimize transaction costs while keeping the platform easy to use, making sure users don’t get stuck with high fees.
  • World ID Integration

    • Verifying the identities of healthcare providers was crucial. We integrated World ID to make sure that only verified professionals are part of medX, building trust within the platform.
  • zkProof for Privacy in Medical Records

    • We used EAS's private data schema to generate zkProofs, ensuring that patient records maintain privacy while securely storing medical data on-chain.
background image mobile

Join the mailing list

Get the latest news and updates