← Back to home

medX

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

Screenshots

medX screenshot 1
medX screenshot 2
medX screenshot 3
medX screenshot 4
medX screenshot 5
medX screenshot 6

Problem Statement

medX: Product OverviewPatient OnboardingPatients create and manage profiles using Smart Accounts (Alchemy).Provides a secure, decentralized identity for interaction with healthcare services.Doctors/Healthcare Providers OnboardingIn addition to generating Smart Accounts, World ID verification is conducted.Ensures the authenticity and credibility of healthcare professionals within the medX ecosystem.Appointment SchedulingPatients 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 ExaminationDoctors conduct patient assessments and, if necessary, connect patients to healthcare providers for further evaluation or treatment.Record Creation and AttestationHealthcare 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 ManagementDoctors process medical records and generate prescriptions.Prescriptions are attested on-chain using EAS with the support of SendUserOps and gas sponsorship.Prescription RedemptionPatients redeem prescriptions by paying dues using SendUserOps.Gas sponsorship covers transaction fees, making the process cost-effective and straightforward.

Solution

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 UsedBackend: Node.jsWhat 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.jsWhat 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 RouterWhat 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 VerificationWhat 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 TechnologiesAlchemyWhy 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.BlockscoutWhy 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 CeloWhy it’s important: By deploying contracts on these blockchains, medX can operate on multiple networks, ensuring scalability, efficiency, and security.Hacky Solutions and Notable MentionsCustom Cross-Chain LogicWe 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 ChainlinkWe 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 OptimizationWe 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 IntegrationVerifying 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 RecordsWe used EAS's private data schema to generate zkProofs, ensuring that patient records maintain privacy while securely storing medical data on-chain.

Hackathon

Superhack 2024

2024

Prizes

  • 🏆

    Use Blockscout Block Explorer!

    Blockscout

  • 🏆

    Best Real World Use Cases for Attestations1st place

    EAS

  • 🏆

    Pool Prize

    Worldcoin

  • 🏆

    Best use of Chainlink CCIP

    Chainlink

Contributors