This is a Next.js project bootstrapped with create-next-app.
A comprehensive emergency medical intake system with blockchain-based verification using the VerifiableIntakeProtocol smart contract.
- 🏥 Voice-Activated Triage: AI-powered voice interface for rapid patient intake
- 📊 Real-time Vital Monitoring: Track and display patient vitals
- 🔒 Blockchain Verification: Immutable report storage using smart contracts
- 🎯 AI-Powered Analysis: Gemini AI integration for clinical decision support
- 📝 Report Generation: Automated medical report generation with verification
This project uses the VerifiableIntakeProtocol smart contract for secure, immutable storage of medical report hashes on the blockchain. See BLOCKCHAIN_INTEGRATION.md for detailed documentation.
npm install
# or
yarn installCopy the example environment file and fill in your values:
cp .env.example .env.localRequired variables:
NEXT_PUBLIC_VERIFIABLE_INTAKE_CONTRACT_ADDRESS- Your deployed contract addressNEXT_PUBLIC_VERIFIABLE_INTAKE_RPC_URL- Blockchain RPC endpointVERIFIABLE_INTAKE_PRIVATE_KEY- Private key for transactions (server-side only)
npm run dev
# or
yarn devOpen http://localhost:3000 with your browser to see the result.
Install Hardhat and dependencies:
npm install --save-dev hardhat @nomicfoundation/hardhat-toolbox @openzeppelin/contractsnpx hardhat run scripts/deploy-verifiable-intake.ts --network sepolianpx hardhat verify --network sepolia <CONTRACT_ADDRESS> "<ADMIN_ADDRESS>"See BLOCKCHAIN_INTEGRATION.md for complete deployment instructions.
emi/
├── src/
│ ├── app/ # Next.js app router
│ ├── components/ # React components
│ │ └── emi/ # EMI-specific components
│ ├── contracts/ # Solidity smart contracts
│ │ └── VerifiableIntakeProtocol.sol
│ ├── hooks/ # React hooks
│ └── lib/ # Utility libraries
│ ├── kairo.ts # Blockchain integration
│ ├── gemini.ts # AI integration
│ └── ...
├── scripts/ # Deployment scripts
├── public/ # Static assets
└── hardhat.config.ts # Hardhat configuration
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.