seetadev / stark-schedule

Web3 tools for patients to enable management of diabetes easily by keeping a track of blood sugar along with meals and exercise using Starknet, Voyager, Dynamic SDKs and Starknet ecosystem tools.
5 stars 5 forks source link

[DMP 2025]: STRK Schedule - Blockchain-Enabled Diabetes Management for Government Healthcare Systems #3

Open seetadev opened 3 weeks ago

seetadev commented 3 weeks ago

Description

STRK Schedule is a Web3-powered solution tailored for government healthcare systems to improve the management of diabetes through secure, transparent, and efficient tracking of patient health data. By utilizing Starknet, Voyager, and NFTs, this platform offers a decentralized approach to managing critical health metrics like blood sugar levels, medication schedules, physical activity, and meals.

The platform not only enables patients to monitor and manage their condition in real time but also allows for secure sharing of health data across healthcare providers, insurers, and public health agencies. This creates an integrated, blockchain-based healthcare ecosystem that enhances both individual care and broader public health management.

Key Benefits for Government Healthcare Systems:

STRK Schedule empowers government agencies to provide personalized, proactive care for diabetes patients, driving better health outcomes and fostering a more sustainable, data-driven healthcare system.

Goals & Mid-Point Milestone

Goals

Setup/Installation

  1. Prerequisites

    • Ensure you have the following tools installed:
      • Node.js
      • Yarn(For managing project dependencies)
      • Docker (For local development and testing environments)
      • Git (For version control)
      • Metamask(For connecting to the blockchain)
  2. Clone the Repository First, clone the project repository to your local machine:

    git clone https://github.com/seetadev/stark-schedule.git
    cd stark-schedule
  3. Install Dependencies Install all required dependencies for the project using Yarn:

    yarn install
  4. Configure the Environment

    • Ensure your environment variables are correctly set up:
      • Create a .env file in the root directory.
      • Add the following environment variables:
        REACT_APP_INFURA_PROJECT_ID=<Your Infura Project ID>
        REACT_APP_VOYAGER_API_URL=https://sepolia.voyager.online
        REACT_APP_STARKNET_NETWORK=https://testnet.starknet.io
    • If you need any additional keys for APIs (Voyager, Starknet), ensure they are correctly stored in the .env file.
  5. Run the Local Development Server

    • Start the local development server:
      yarn start

      This will launch the application in your default browser.

  6. Docker Setup (Optional for Local Testing) If you wish to run the setup in a containerized environment using Docker:

    • Build the Docker image:
      docker build -t stark-schedule .
    • Run the Docker container:
      docker run -p 3000:3000 stark-schedule
    • Your application will be accessible at http://localhost:3000.
  7. Access the DApp

    • Open the web browser, and access the DApp via http://localhost:3000 for local testing, or deploy it to your preferred cloud service for live production.
  8. Testing

    • To run the tests:
      yarn test

      This will run all the unit tests and output the results.

  9. Deployment

    • Once everything is set up and tested, deploy the application to a preferred service such as Netlify, Vercel, or any service that supports React-based applications.

Additional Resources

Expected Outcome

The final product, STRK Schedule, is a decentralized application (dApp) aimed at helping patients with diabetes manage and track their health metrics, including blood sugar levels, medication schedules, exercise, and meal planning, all on the blockchain. It integrates Web3 tools and Starknet to provide a secure, transparent, and efficient way to monitor and share medical data while ensuring privacy and incentivizing good health practices.

Key Features:

  1. Medication Tracking and Logging:

    • Patients will have a comprehensive, on-chain log of their medications.
    • Users can securely add and edit details such as dosage, time, prescribing physician, side effects, refill numbers, and pharmacy contact details.
    • The medication log will be organized in a monthly calendar format, allowing easy tracking of daily medication schedules.
  2. Blood Sugar Monitoring:

    • The Blood Sugar Log module will allow patients to record their blood sugar levels on-chain.
    • The user interface will be simple and intuitive, enabling quick data entry and easy monitoring of blood sugar levels over time.
    • Graphs and charts will display historical blood sugar data for better tracking and insights.
  3. Appointment Management:

    • Users can add and manage their medical appointments, notes, and visit histories.
    • The system will provide reminders and track upcoming medical visits, helping patients stay organized and proactive about their health.
    • Doctors and medical professionals can securely access these records to provide better treatment and follow-up.
  4. Exercise and Meal Tracking:

    • The platform will allow patients to log their physical activities and meal plans.
    • Patients can track time spent on exercise and monitor their meal plans on a weekly basis.
    • This module will provide actionable insights and health recommendations to encourage healthier living.
  5. NFT Minting and Medical Incident Verification:

    • Each verified medical incident (e.g., diagnosis, prescriptions) will be minted as an NFT on the Voyager platform, securely storing the incident data along with an image and insurance metadata.
    • These NFTs will be used for identity verification and to calculate a diabetes score, enabling personalized treatment plans and insurance adjustments based on patient risk.
  6. DAO Participation:

    • Patients can opt to join a decentralized autonomous organization (DAO) where they can participate in governance and decision-making related to medical service providers and care.
    • DAO members will be able to vote on medical service proposals using gasless votes stored on Starknet, and rewards will be distributed based on participation and risk metrics.
    • The DAO smart contract will use the medical data and NFT metadata to adjust user fees and rewards, ensuring that users are rewarded for healthy behaviors and proactive management of their diabetes.

User Interface:

The user interface of STRK Schedule will be simple, user-friendly, and intuitive:

Performance Expectations:

Conclusion:

The expected outcome is a highly efficient, secure, and scalable system that empowers diabetes patients to manage their condition effectively while providing tools for medical professionals and insurers to offer personalized care. The decentralized nature of the platform, with smart contracts and NFTs, ensures transparency, trust, and incentivizes proactive healthcare behaviors.

This system will not only improve the quality of care for diabetes patients but also contribute to the larger Web3 and healthcare ecosystems, promoting the integration of blockchain technology in daily health management.

Acceptance Criteria

  1. Functionality Criteria:

    • Medication Tracking:

      • The system must allow patients to securely add, edit, and view details of their medications, including dosage, time, prescribing physician, side effects, refill numbers, and pharmacy details.
      • The monthly calendar view must be available to organize medication schedules.
      • The data must be stored securely on-chain and accessible via the Starknet network.
    • Blood Sugar Tracking:

      • Patients must be able to log blood sugar levels easily through the Blood Sugar Log module.
      • The system should display trends over time with graphs or charts to help patients track their progress.
      • Blood sugar data must be stored securely on-chain and should be viewable at any time.
    • Appointment Management:

      • Patients must be able to add medical appointments and visit histories.
      • The system must send reminders for upcoming appointments, and allow for the addition of notes related to medical visits.
      • The system must allow doctors and medical professionals access to these records securely for better follow-up care.
    • Exercise and Meal Tracking:

      • Patients must be able to log physical activities and meal plans for the week.
      • The system must provide a summary of the time spent on physical activities and meal plans over time.
    • NFT Minting and Verification:

      • The system must be able to mint verified medical incident NFTs on the Voyager platform.
      • NFTs should store essential data like an image, insurance metadata, and a diabetes score for the patient.
      • NFT data must be stored securely on the blockchain with proper metadata.
    • DAO Participation:

      • The DAO must allow patients to opt-in for governance and participate in decisions related to medical service providers and care.
      • The system must use the metadata from NFTs to calculate user fees based on risk.
      • DAO participants should be able to vote on medical service proposals with gasless voting using Starknet’s technology.
      • Rewards should be distributed quarterly through an airdrop based on DAO participation.
  2. Security Criteria:

    • All medical data (medications, blood sugar logs, appointments, etc.) must be securely stored using encryption.
    • All data and transactions must be verified through Starknet’s zero-knowledge proof (ZKP) technology.
    • User interactions with the platform (e.g., adding medical data, minting NFTs, voting in the DAO) must be cryptographically secured.
    • Patient privacy must be maintained, with only authorized parties able to view specific medical data.
  3. Performance Criteria:

    • The platform must be fast and responsive, with quick load times for viewing medical logs and health data.
    • Transactions (e.g., minting NFTs, voting, recording medical logs) should be processed efficiently on Starknet’s Layer-2 network with low gas costs.
    • The application should be able to scale to handle large numbers of users without significant delays or failures.
  4. Usability Criteria:

    • The user interface (UI) should be intuitive, allowing patients to easily add, edit, and view their medical data.
    • Users should be able to interact with the platform with minimal Web3 knowledge (e.g., wallet setup, blockchain interaction).
    • The app should be accessible across different devices (mobile, desktop) and should be compatible with major Web3 wallets like Argent.
    • The platform should provide automatic reminders for medication schedules, appointments, and physical activities.
  5. Interoperability Criteria:

    • The platform must be compatible with common Web3 wallets such as Argent, allowing for seamless payments and NFT interactions.
    • The system must work efficiently across Starknet and other blockchain platforms, ensuring data is accessible and secure on both Layer-2 and Layer-1 networks.
    • Users must be able to interact with the dApp on multiple blockchains if necessary, supporting broader Web3 ecosystem compatibility.
  6. Compliance Criteria:

    • The platform must comply with applicable data privacy and healthcare regulations (such as HIPAA or GDPR) to ensure patient data is protected and managed responsibly.
    • The NFT minting and DAO voting processes should comply with Web3 governance principles and regulations regarding healthcare data.
  7. Testing Criteria:

    • Functional testing must demonstrate that all modules (medication log, blood sugar log, appointment scheduling, exercise/meal tracking) work as expected.
    • Security testing must ensure that all data is properly encrypted and that patient privacy is maintained at all stages of data handling.
    • Performance testing should verify that the platform handles a high volume of transactions without significant latency or errors.
  8. Deployment Criteria:

    • The platform must be deployed on the Starknet mainnet with full functionality.
    • The system should be ready for public access, with a stable version available for patients to start managing their diabetes on-chain.
    • Proper documentation and guides should be available for users to understand how to interact with the dApp.

Once all these criteria are met, the STRK Schedule platform will be considered successful and ready for further enhancements, with the goal of improving the daily management of diabetes for patients in a secure, transparent, and decentralized manner.

Implementation Details

  1. Blockchain and Layer 2 Technologies:

    • Starknet: We will utilize Starknet, a decentralized Layer 2 scaling solution for Ethereum, powered by zero-knowledge rollups (zk-rollups). Starknet will be used to store all critical medical data and allow the platform to scale efficiently.
      • StarkEx: StarkEx will be used for scalability and faster transactions, ensuring that patient data, medication logs, and NFTs are handled with low gas costs and high efficiency.
      • Starknet Smart Contracts: Smart contracts will be developed on Starknet for recording medication schedules, voting on the DAO, minting NFTs for medical incidents, and managing patient interaction with the platform. These contracts will handle transaction validation, NFT minting, and DAO functionality.
      • zk-Rollups: zk-Rollups will ensure that the platform operates in a scalable and cost-efficient manner while providing cryptographic proofs of transactions to guarantee privacy and data integrity.
  2. NFT Minting and Verification:

    • Voyager API: Voyager will be used to verify and monitor smart contract transactions related to medical incidents, NFTs, and DAO voting. This will enable real-time tracking of medical incidents and related activities on Starknet.
    • NFT Minting: Verified medical incidents and patient records will be minted as NFTs on Starknet. These NFTs will include essential metadata like medical images, insurance data, and a calculated diabetes score for each patient. NFTs will be used to store this data securely, allowing patients to prove their medical history and treatment.
  3. DAO and Voting Mechanism:

    • DAO Implementation: The DAO will be developed using Starknet and will allow patients to opt-in and participate in decision-making related to medical service providers, treatments, and proposals for care. Patients' risk scores will be calculated based on their medical data stored in NFTs, which will determine the charges associated with their care.
    • Gasless Voting: Voting for medical service providers and other decisions within the DAO will be gasless, using Starknet’s zk-rollups to process votes without the need for paying transaction fees. Votes will be stored on-chain, and the most recent vote will reference the prior one, ensuring transparency and traceability.
  4. Security and Privacy:

    • Zero-Knowledge Proofs (ZKPs): The application will leverage Starknet’s ZKPs for secure and privacy-preserving transactions. ZKPs will ensure that all sensitive patient data (such as medication logs, medical appointments, and blood sugar levels) is kept confidential while still enabling on-chain validation.
    • Argent Wallet Integration: The platform will integrate with Argent wallet, which supports Starknet’s Layer 2 transactions, zero-knowledge proofs, and cryptographic signing. This will enable seamless, secure payments for medical services and minting of NFTs across multiple blockchain networks.
    • Encryption: All medical data will be encrypted using the latest cryptographic algorithms to protect patient privacy and ensure compliance with healthcare data regulations like HIPAA and GDPR.
  5. Web3 Ecosystem Tools:

    • Dynamic SDK: Dynamic SDK will be integrated to facilitate the onboarding of Web2 users into the Web3 ecosystem, allowing them to interact with the platform and manage their data without needing to understand the complexities of blockchain technologies.
    • Herodotus Storage Proofs: Herodotus’ API will be used to prove the ownership and authenticity of medical incident NFTs held by patients. This will ensure that medical data is verifiable and stored securely, providing full transparency within the healthcare ecosystem.
  6. Patient and Data Management:

    • Medication Log: The application will have a dedicated medication log module, which will allow patients to add, track, and update their medications. This will be done through a user-friendly interface, with fields for medication name, dosage, time, and prescribing physician. This data will be stored securely on-chain.
    • Blood Sugar Log: A blood sugar monitoring module will allow patients to log their blood sugar levels over time. The platform will generate graphs and trends, making it easy for patients to track their condition.
    • Appointments & Notes: Patients will be able to add their medical appointments, notes, and medical visits directly into the platform. This will help healthcare providers track and manage patient care more effectively.
  7. Low Code/No Code Analytics:

    • HerodotusXLS: The platform will integrate HerodotusXLS for low-code data visualization and analytics. This tool will allow users to generate reports, graphs, and charts for analyzing trends in medication, blood sugar levels, and physical activity, making it easier to interpret health data.
    • Personalized Insights: Patients will receive personalized insights based on their data, helping them better manage their diabetes and improve their health outcomes.
  8. User Interface (UI)/User Experience (UX):

    • Responsive PWA: The platform will be developed as a Progressive Web Application (PWA), ensuring accessibility across multiple devices, including smartphones and desktop computers. This approach will ensure that patients can access and manage their health data anywhere, anytime.
    • Intuitive Interface: The UI will be designed to be user-friendly, focusing on ease of use for patients who may not be familiar with blockchain technology. The system will guide patients through the process of adding medications, logging blood sugar levels, and joining the DAO.
  9. Deployment and Scalability:

    • Deployment on Starknet Mainnet: Once the application is developed and tested, it will be deployed on the Starknet mainnet for public use. This ensures the platform operates in a decentralized and secure environment, with the ability to scale as needed.
    • Interoperability: The platform will support interoperability with other blockchain ecosystems, ensuring patients’ data and NFTs are accessible across multiple networks, enhancing the platform's usability and reach.

Mockups/Wireframes

Please visit: https://drive.google.com/drive/u/1/folders/1KGqDxn5kmyq7sf5P4zylN_zWQZMC6v7m

Product Name

STRK Schedule - Blockchain-Enabled Diabetes Management for Government Healthcare Systems

Organisation Name

NSUT in collaboration with C4GT, SEETA and AIC

Domain

⁠Healthcare

Tech Skills Needed

Artificial Intelligence, Chart.js, Computer Vision, Database, Express.js, JavaScript, Ionic

Mentor(s)

@seetadev @aspiringsecurity @aspiringdevapps

Manu Sheel Gupta;

Dr. MPS Bhatia;

Deepti Gupta (SAP Appgyer guidance and SAP BTP integrations) for utility government organizations in India.

Category

Database, CI/CD, Beginner Friendly, Backend, Accessibility, Analytics

anisharma07 commented 3 weeks ago

Interesting Project. I would Love to Contribute!

Arpitkandwal commented 3 weeks ago

Hey @seetadev , The project seems very interesting. I want to know do we(contributors) have to implement features right now before the proposal? or if our proposal select we will work on this?

deepikAnaikk commented 2 weeks ago

Hi @seetadev,

I’m really interested in the Blockchain-Enabled Diabetes Management for Government Healthcare Systems project. It’s a highly impactful initiative, and I’d love to contribute.

With my experience in JavaScript, Express.js, database management, and computer vision, I’m excited about leveraging blockchain for secure diabetes management and helping improve government healthcare systems.

Looking forward to contributing and collaborating with the team. Please let me know how I can get started!

Thanks in advance!

anisharma07 commented 2 weeks ago

Hello @seetadev , I've been exploring this project recently. But I couldn't find the code for app shown in the screenshot in drive link. Also, do we have to build app from scratch or do we have to improve an existing project?.. And, Project will use ionic with react framework right? .. I have also started designing a mockup based on the content provided to better understand the project (link).

Shruti0460 commented 1 week ago

Hi @seetadev,

I'm very interested in contributing to this Blockchain-Enabled Diabetes Management project.

techySPHINX commented 1 week ago

Hi @seetadev,,

I’m Jagan Kumar Hotta, a Software Engineer with a solid foundation in full-stack development and growing expertise in the Web3 tech stack. Highly motivated to deepen my skills through code-driven problem solving, I am particularly focused on leveraging blockchain to drive innovation in decentralized healthcare systems.


🎯 Goals


🛠️ Project Implementation Strategy

STRK Schedule will merge Starknet’s speed, NFTs’ permanence, and DAO logic into a HIPAA-compliant, patient-centric diabetes platform.


📅 Phase-Wise Development Plan

Phase Timeline What I’ll Do
🏗️ 1. Setup Infrastructure Week 1-2 Scaffold backend, smart contract skeletons, and Dockerized environments.
🩺 2. Build Health Modules Week 3-6 Implement sugar tracking, medication logs, and appointment APIs.
🧬 3. Integrate Blockchain Week 7-8 Deploy NFT minting and DAO contracts for verifiable medical records and governance.
🔐 4. Security & ZK Testing Week 8-9 Encrypt data, validate contracts, and test ZKPs across modules.
🔑 5. Wallet & Auth UX Week 9-10 Connect Argent Wallet and enable frictionless, gasless interactions.
🎨 6. Polish UI & Dashboards Week 10-11 Refine frontend with PWA support and data visualizations using HerodotusXLS.
🚀 7. Deploy & Deliver Week 12 Push to Starknet mainnet with full documentation and user guides.
🔄 8. Support & Scale Ongoing Maintain, monitor, and expand features based on DAO/user feedback.

Let’s revolutionize public healthcare with secure, transparent, decentralized tech.

Best Regards

Jagan Kumar Hotta Email : jaganhotta357@outlook.com Linkedin: https://www.linkedin.com/in/jagan-kumar-hotta-502a76270/

Vaishno17 commented 1 week ago

@seetadev I would Loved to contribute for this project..